#879: Add a "change language" option in GRASS GUI
--------------------------+-------------------------------------------------
Reporter: antoniorocha | Owner: grass-dev@lists.osgeo.org
Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: unspecified
Keywords: | Platform: Unspecified
Cpu: Unspecified |
--------------------------+-------------------------------------------------
Instead of changing GRASS language in init.bat files (or other), the user
would change its language without quitting GRASS session.
Hamish comment was:
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?
> Instead of changing GRASS language in init.bat files (or other), the
user would change its language without quitting GRASS session.
Is there some reason why GRASS shouldn't just use the same locale settings
as every other application?
Currently, this doesn't work on Windows, as localisation relies upon the
LANG/LC_* environment variables being set, and Windows doesn't set those,
so init.bat needs the fix proposed [http://lists.osgeo.org/pipermail/
grass-dev/2010-January/048065.html here] or something similar.
This should probably be closed as "invalid" once someone opens a bug
report for LANG not being set on Windows.
Replying to [comment:1 glynn]:
>
> Is there some reason why GRASS shouldn't just use the same locale
settings as every other application?
>
Ability to switch application language instead of changing whole work
environment language is a nice feature. I use it quite often for QGIS and
KDE applications (bug reports, testing l18n regressions etc.). Not
everyone is capable of changing system-wide locale settings (read -
restricted user rights on shared computers) also "export LANG" is not an
lamer friendly way how to do this.
Replying to [comment:1 glynn]:
> Is there some reason why GRASS shouldn't just use the same locale
settings as every other application?
Yes: If I am visiting for example Japan/China/Brasil/... I am not
necessarily
able to understand the local language, i.e. use the localized menus of the
PC
provided to me.
> Currently, this doesn't work on Windows, as localisation relies upon the
LANG/LC_* environment variables being set, and Windows doesn't set those,
so init.bat needs the fix proposed [http://lists.osgeo.org/pipermail/
grass-dev/2010-January/048065.html here] or something similar.
>
> This should probably be closed as "invalid" once someone opens a bug
report for LANG not being set on Windows.
If it is better to have a separate bug report for this, let's do it. But
it won't change
the need for a solution.
#879: Add a "change language" option in GRASS GUI
--------------------------+-------------------------------------------------
Reporter: antoniorocha | Owner: lucadelu
Type: enhancement | Status: new
Priority: major | Milestone: 6.4.3
Component: Translations | Version: svn-releasebranch64
Keywords: wxGUI, i18n | Platform: All
Cpu: All |
--------------------------+-------------------------------------------------
Comment(by lucadelu):
Replying to [comment:9 lucadelu]:
> Committed as r49670 with "LANGUAGE" variable added.
>
> TODO: replace locales in combobox, reduce list to only installed locales
some improvement of this commit was done by MartinL in r49910, someone has
an idea how to reduce list to only installed locales?
#879: Add a "change language" option in GRASS GUI
--------------------------+-------------------------------------------------
Reporter: antoniorocha | Owner: lucadelu
Type: enhancement | Status: new
Priority: major | Milestone: 6.4.4
Component: Translations | Version: svn-releasebranch64
Keywords: wxGUI, i18n | Platform: All
Cpu: All |
--------------------------+-------------------------------------------------
Comment(by marisn):
Replying to [comment:13 martinl]:
> Update: changing language settings from wxGUI should work in 6.4.3. It
still requires GRASS restart even in GRASS 7. Moving milestone to 6.4.4.
It could be possible to try to reset active WXGUI instance language
instantly, still it's not possible to change parent process environment
and thus anything not inheriting environment from WXGUI AFTER language
change will still be in previous language. Save, restart cycle ensures
that GRASS gets the new language and probably locale too, from the start
and thus whole GRASS session has correct LANG and other parameters (CLI,
all WXGUI instances etc.). Hope that clears a bit.
Language switching is working in 7. As GRASS 6 should be feature frozen,
moving milestone and closing as implemented. Issues with its
implementation in GRASS 7 should be tracked in separate tickets.