Translations not activated for wx startup screen?

3 messages Options
Embed this post
Permalink
Markus Neteler

Translations not activated for wx startup screen?

Reply Threaded More More options
Print post
Permalink
Hi,

I have realized (perhaps only on my machine?) that the startup wxGUI
screen is no longer translated when switching the locale except for the
Quit button.

The grasswx_*.po files look ok, I have checked some strings.
Any idea?

Markus
_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
Markus Neteler

Re: Translations not activated for wx startup screen?

Reply Threaded More More options
Print post
Permalink
On Mon, Nov 2, 2009 at 5:14 PM, Markus Neteler <[hidden email]> wrote:
> Hi,
>
> I have realized (perhaps only on my machine?) that the startup wxGUI
> screen is no longer translated when switching the locale except for the
> Quit button.

Found it, there was simply a bug in
gui/wxpython/gis_set.py

I have fixed it now:
r39733 (6.4.svn), r39734 (6.5.svn), 39735 (7.svn)

I wonder if all the GUI code needs to be cluttered with the
import gettext
stuff? A global switch might be nicer...

Markus
_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
Glynn Clements

Re: Re: Translations not activated for wx startup screen?

Reply Threaded More More options
Print post
Permalink

Markus Neteler wrote:

> I wonder if all the GUI code needs to be cluttered with the
> import gettext stuff? A global switch might be nicer...

Can you elaborate?

Each module needs to call gettext.install() in order to add the _()
function to the module's namespace.

However, I have no idea why gis_set.py calls it three times.

--
Glynn Clements <[hidden email]>
_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev