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

Greetings

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)?

Thanks

Best regards,
Antonio Rocha

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4774 (20100115) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

2010/1/15 António Rocha <antonio.rocha@deimos.com.pt>:

Greetings

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 appreciate to have this possibility.

Please file an enhancement request in trac for this.

Markus

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?

Hamish

2010/1/16 Hamish <hamish_b@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.

Markus