[GRASS-SVN] r39734 - grass/branches/develbranch_6/gui/wxpython

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


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

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

Modified: grass/branches/develbranch_6/gui/wxpython/gis_set.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gis_set.py	2009-11-15 06:49:13 UTC (rev 39733)
+++ grass/branches/develbranch_6/gui/wxpython/gis_set.py	2009-11-15 06:49:19 UTC (rev 39734)
@@ -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