فهرست منبع

added missing gettext support

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41077 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 15 سال پیش
والد
کامیت
19d2c4616f
3فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 2 0
      gui/wxpython/gui_modules/location_wizard.py
  2. 4 0
      gui/wxpython/gui_modules/preferences.py
  3. 3 0
      gui/wxpython/gui_modules/render.py

+ 2 - 0
gui/wxpython/gui_modules/location_wizard.py

@@ -2788,6 +2788,8 @@ class SelectTransformDialog(wx.Dialog):
         return self.transnum
 
 if __name__ == "__main__":
+    import gettext
+    gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
     app = wx.PySimpleApp()
     # gWizard = LocationWizard(None, "")
     gWizard = RegionDef(None)

+ 4 - 0
gui/wxpython/gui_modules/preferences.py

@@ -30,6 +30,10 @@ try:
 except ImportError:
     havePwd = False
 
+### i18N
+import gettext
+gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
+
 import wx
 import wx.lib.filebrowsebutton as filebrowse
 import wx.lib.colourselect as csel

+ 3 - 0
gui/wxpython/gui_modules/render.py

@@ -1328,6 +1328,9 @@ if __name__ == "__main__":
     Usage: display=Render()
     """
 
+    import gettext
+    gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
+
     print "Initializing..."
     os.system("g.region -d")