[GRASS-SVN] r30513 - grass/trunk/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 9 18:57:15 EDT 2008


Author: martinl
Date: 2008-03-09 18:57:15 -0400 (Sun, 09 Mar 2008)
New Revision: 30513

Modified:
   grass/trunk/gui/wxpython/gis_set.py
Log:
wxGUI: i18N enabled for start-up screen

Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py	2008-03-09 22:32:27 UTC (rev 30512)
+++ grass/trunk/gui/wxpython/gis_set.py	2008-03-09 22:57:15 UTC (rev 30513)
@@ -25,8 +25,10 @@
 import glob
 import shutil
 
+### i18N
+import gettext
+
 from gui_modules import utils
-from gui_modules import globalvar
 
 utils.CheckForWx()
 import wx
@@ -34,10 +36,14 @@
 import wx.lib.rcsizer as rcs
 import wx.lib.filebrowsebutton as filebrowse
 
+from gui_modules import globalvar
+
 class GRASSStartup(wx.Frame):
     """GRASS start-up screen"""
     def __init__(self, parent=None, id=wx.ID_ANY, style=wx.DEFAULT_FRAME_STYLE):
 
+        gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
+
         #
         # GRASS variables
         #



More information about the grass-commit mailing list