[GRASS-dev] Re: [GRASS-SVN] r34771 - in grass/trunk/gui/wxpython: gui_modules xml

Hi,

2008/12/7 <svn_grass@osgeo.org>:

Author: glynn
Date: 2008-12-07 02:16:10 -0500 (Sun, 07 Dec 2008)
New Revision: 34771

Added:
  grass/trunk/gui/wxpython/xml/menudata.xml
Modified:
  grass/trunk/gui/wxpython/gui_modules/menudata.py
Log:
Convert menu data to XML

Thanks for converting menu data into XML! I just wonder how to localize it...

Martin

PS: Sorry to all for today's mess in SVN (trunk/devbr6 -> menudata.*)!

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Martin Landa wrote:

> Added:
> grass/trunk/gui/wxpython/xml/menudata.xml
> Modified:
> grass/trunk/gui/wxpython/gui_modules/menudata.py
> Log:
> Convert menu data to XML

Thanks for converting menu data into XML! I just wonder how to localize it...

The code in menudata.py which reads the XML passes the various fields
through the _(...) function, so the existing translations should be
used.

In terms of obtaining the strings to create the .pot files, I'll add
some code to generate a dummy .py file for use by gettext.

--
Glynn Clements <glynn@gclements.plus.com>