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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 15 01:49:59 EST 2009


Author: neteler
Date: 2009-11-15 01:49:59 -0500 (Sun, 15 Nov 2009)
New Revision: 39735

Modified:
   grass/trunk/gui/wxpython/gis_set.py
Log:
fixed locale switch for startup screen

Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py	2009-11-15 06:49:19 UTC (rev 39734)
+++ grass/trunk/gui/wxpython/gis_set.py	2009-11-15 06:49:59 UTC (rev 39735)
@@ -28,6 +28,7 @@
 
 ### i18N
 import gettext
+gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
 
 from gui_modules import globalvar
 if not os.getenv("GRASS_WXBUNDLED"):
@@ -63,6 +64,10 @@
 
         self.panel = wx.Panel(parent=self, id=wx.ID_ANY)
 
+        # i18N
+        import gettext
+        gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
+
         #
         # graphical elements
         #



More information about the grass-commit mailing list