浏览代码

fixed locale switch for startup screen

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39735 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 15 年之前
父节点
当前提交
027e2830f8
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      gui/wxpython/gis_set.py

+ 5 - 0
gui/wxpython/gis_set.py

@@ -28,6 +28,7 @@ import platform
 
 ### 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 @@ class GRASSStartup(wx.Frame):
 
         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
         #