[GRASS-user] Changing language in GRASS Interface/GUI

Markus Neteler neteler at osgeo.org
Fri Jan 15 19:58:17 EST 2010

2010/1/16 Hamish <hamish_b at yahoo.com>:
> António:
>> I would like to know if it's possible to have a
>> script/function GRASS interface in order to change language.
>> Instead of being set in the init.bat, the user would set in
>> the GUI interface (e.g. Wxpython GUI File>Change Language)?
> I would suggest to put it in Config->GRASS working environment->
> I suppose it would have to be a g.gisenv GRASS variable not an
> environment variable to work system-wide. But then we've have to
> add some G_getenv() -> setenv() magic in G_parser() and the start
> of wxgui.py?

AFAIK it would be ideal to read the "LANG" environment variable
and set wx.locale() from that. Perhaps trigger a wxGUI reload
then or tell the user to close/restart the wxGUI to take effect.
Like this switching would be easy.


More information about the grass-user mailing list