[GRASS-dev] Re: [GRASS-SVN] r40421 -
grass/branches/develbranch_6/gui/wxpython
Glynn Clements
glynn at gclements.plus.com
Fri Jan 15 01:07:54 EST 2010
Markus Neteler wrote:
> I am speaking about "Quit" and "Help" in the entrance page and the
> module dialog buttons.
>
> I have used strace and it does not open any wxpython locale file
> (other JA files yes).
> Apparently the same problem applies - wxstd.mo not considered?
It appears that wxPython's NLS needs to be explicitly initialised by
creating a wx.Locale() object[1], and this isn't happening.
http://wiki.wxpython.org/Internationalization
http://docs.wxwidgets.org/stable/wx_wxlocale.html
[1] You don't need to *do* anything with the object; simply creating
it makes it active:
The call of this function has several global side effects
which you should understand: first of all, the application
locale is changed - note that this will affect many of
standard C library functions such as printf() or strftime().
Second, this wxLocale object becomes the new current global
locale for the application and so all subsequent calls to
wxGetTranslation() will try to translate the messages using
the message catalogs for this locale.
I'm guessing that we may need to explicitly revert e.g. LC_NUMERIC to
avoid writing files with a comma as the decimal separator.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list