[GRASS-SVN] r41076 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Feb 18 04:43:14 EST 2010
Author: neteler
Date: 2010-02-18 04:43:13 -0500 (Thu, 18 Feb 2010)
New Revision: 41076
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py
grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
Log:
added missing gettext support
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py 2010-02-18 09:32:52 UTC (rev 41075)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py 2010-02-18 09:43:13 UTC (rev 41076)
@@ -2788,6 +2788,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/develbranch_6/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py 2010-02-18 09:32:52 UTC (rev 41075)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py 2010-02-18 09:43:13 UTC (rev 41076)
@@ -30,6 +30,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/develbranch_6/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py 2010-02-18 09:32:52 UTC (rev 41075)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py 2010-02-18 09:43:13 UTC (rev 41076)
@@ -1345,6 +1345,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")
More information about the grass-commit
mailing list