[PyQt] Re: Internationalization and PyQt
Thorsten Kampe
thorsten at thorstenkampe.de
Sun Oct 5 17:12:20 BST 2008
* Giovanni Bajo (Sun, 05 Oct 2008 12:46:15 +0200)
> On sab, 2008-10-04 at 20:31 +0200, Thorsten Kampe wrote:
> > So why does my code (that does not query the locale and choose the
> > right tranlation file according to the locale) work?
>
> Why it should not? QTranslator.load() takes care of embedding the
> locale name into the filename by itself (see the documentation).
If the author of a PyQt book writes code that explicitly queries the
locale and uses that to load the actual translation then this should be
reason enough to believe that QTranslator doesn't.
Thorsten
More information about the PyQt
mailing list