[PyQt] i18n

Frédéric frederic.mantegazza at gbiloba.org
Thu Feb 12 08:43:09 GMT 2009


Le 11/2/2009, "Frédéric" <frederic.mantegazza at gbiloba.org> a écrit:

>Does anybody could point me on example how to use i18n in PyQt?
>
>Riverbank documentation says that one should not use tr() method, but
>instead QtCore.QCoreApplication.translate(). As the object must be
>passed to this method, this not improves the readability :o/
>
>Are there some tips, for example, to bind the _() method I use with
>gettext and PyGTK? Something to help me migrate my code without having
>to modify it everywhere...

Thank you all for your help.

I think I will switch to tr() method (and translate() one if needed), as
I don't want to hack pylupdate4...


--
   Frédéric



More information about the PyQt mailing list