[PyQt] Internationalisation process help

kib2 kib2 at free.fr
Thu Oct 18 20:10:23 BST 2007

Andreas Pakulat a écrit :
> On 18.10.07 20:42:44, kib2 wrote:
>> Hi,
>> I'm trying to understand the internationalisation process in a PyQt4 app.
>> From my main ui file (in French), I've got a ts one with pylupdate4, then 
>> translated it to binaries in qm format.
>> The resulting file is named 'em.qm' and is in my main app directory.
>> But it does not seems to translate anything. I must miss something, but what ?
> Did you already look into the Qt documentation
> (doc.trolltech.com/4.3/i18n.html)? After extracting the .ts file you
> need to open it in linguist and translate all the entries, then let it
> build a .qm file and load that file. Only then your app is translated.
> i18n doesn't work automatically ;)
Sorry, I forgot to tell you that I already translated the file manually 
(no need to use Qlinguist because there's only 5 ou 6 entries).
> Andreas


More information about the PyQt mailing list