[i18n] Multilang. app in Python (English, French, German)?
fgeiger at datec.at
Sun Jul 18 14:19:01 CEST 2004
Thank you, Michel and Vincent,
I went for the gettext module - a very comfortable way to manage multilang
"F. GEIGER" <f.geiger at vol.at> schrieb im Newsbeitrag
news:cd6hpd$ute$1 at newshispeed.ch...
> Is there a way to do this in a professional manner?
> For now I only can think of having all strings in a file, read them into
> a dict at startup and then access them like so:
> print str(MyTextDict('e', "errorOnDbStore"))
> print str(MyTextDict('f', MyTextDict._ErrorKey_ErrorOnDbStore))
> Is it this or is there a "more Pythonic" way?
> Kind regards
> Franz GEIGER
> P.S.: I'm on Windows and use wxPython for the GUI part. I intend to be
> able to select the language in an INI file before starting the app.
More information about the Python-list