فهرست منبع

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
         #