[GRASS-SVN] r41075 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Feb 18 04:32:53 EST 2010
Author: neteler
Date: 2010-02-18 04:32:52 -0500 (Thu, 18 Feb 2010)
New Revision: 41075
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menudata.py
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/preferences.py
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/render.py
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbox.py
Log:
added missing gettext support
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py 2010-02-18 06:13:56 UTC (rev 41074)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py 2010-02-18 09:32:52 UTC (rev 41075)
@@ -2820,6 +2820,8 @@
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)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menudata.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menudata.py 2010-02-18 06:13:56 UTC (rev 41074)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menudata.py 2010-02-18 09:32:52 UTC (rev 41075)
@@ -72,6 +72,8 @@
if __name__ == "__main__":
import sys
+ import gettext
+ gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
if len(sys.argv) < 2:
sys.exit(1)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/preferences.py 2010-02-18 06:13:56 UTC (rev 41074)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/preferences.py 2010-02-18 09:32:52 UTC (rev 41075)
@@ -29,6 +29,10 @@
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
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/render.py 2010-02-18 06:13:56 UTC (rev 41074)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/render.py 2010-02-18 09:32:52 UTC (rev 41075)
@@ -1317,6 +1317,9 @@
Usage: display=Render()
"""
+ import gettext
+ gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
+
print "Initializing..."
os.system("g.region -d")
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbox.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbox.py 2010-02-18 06:13:56 UTC (rev 41074)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbox.py 2010-02-18 09:32:52 UTC (rev 41075)
@@ -187,6 +187,9 @@
from sys import argv
if __name__ == '__main__':
+ import os,gettext
+ gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
+
if len( argv ) != 2:
print "Usage: %s <toolbox command>" % sys.argv[0]
else:
More information about the grass-commit
mailing list