[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] pylupdate4 vs QButtonBox
From:       Juergen Urner <jUrner () arcor ! de>
Date:       2007-08-20 9:57:28
Message-ID: 46C96588.2020702 () arcor ! de
[Download RAW message or body]


David wrote:
> Create a translator, load the translation, then "install" it so that the
> application can use it:
>
>   translator = QTranslator()
>   translator.load(translations_path + "qt_"+QLocale.system().name())
>   app.installTranslator(translator)
>
> You can locate the translations that were installed alongside Qt by querying
> the QLibraryInfo class:
>
>   translations_path = QLibraryInfo.location(QLibraryInfo.TranslationsPath)
>
> That way, you don't have to hard code the path.
>
> David

Thanks David. I completely missed QLibraryInfo(...) and already wondered
if I had to find out where Qt stores its translation files on my disk by 
hand.


Jürgen



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic