Explorar o código

wxGUI: import gettext in globalvar module (related to https://trac.osgeo.org/grass/changeset/31642)
[merge devbr6, r31644]


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31645 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa %!s(int64=17) %!d(string=hai) anos
pai
achega
791e6554f3
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      gui/wxpython/gui_modules/globalvar.py

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

@@ -20,6 +20,10 @@ import os
 import sys
 import locale
 
+### i18N
+import gettext
+gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
+
 def CheckForWx():
     """Try to import wx module and check its version"""
     majorVersion = 2.8