Reply
Thread Tools
caco3's Avatar
Posts: 560 | Thanked: 423 times | Joined on May 2010 @ Switzerland
#1
Hi all
I want to make my python application multilingual, so the user can have it in his own language.
AFAIK it works with .po files, how ever I do not yet understand how to do it.
It seems to be possible with gettext (http://docs.python.org/library/gettext.html), but how does it work with my QT user interfaces?
My IDE (Eric) generates python files out of the QT designer files. In there are all strings surrounded with "QtGui.QApplication.translate(...)", ex.
Code:
self.actionHelp.setText(QtGui.QApplication.translate("StartWindow", "Help", None, QtGui.QApplication.UnicodeUTF8))
How do I include those into the translation?
__________________
On N9 check out this:
CacheMe 4 the N9, a geocaching client / MiniBible, a bible viewer / TheWord brings daily bible verses onto your phone / BatteryGraph to monitor the battery drainage / doublepress2unlock to unlock your phone with a double press onto the power button / GPRS Data Usage to monitor your GPRS data usage /
and more...

On N900 check out this: SleepAnalyser to analyse your sleep movements / PasswordMaker a for a password generator
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:56.