[GRASS-SVN] r65462 - grass/branches/releasebranch_7_0/lib/python/script

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 14 03:36:59 PDT 2015


Author: martinl
Date: 2015-06-14 03:36:59 -0700 (Sun, 14 Jun 2015)
New Revision: 65462

Modified:
   grass/branches/releasebranch_7_0/lib/python/script/core.py
Log:
Attempt to fix gettext behaviour (issue #2617)
        (merge r64834 from trunk)


Modified: grass/branches/releasebranch_7_0/lib/python/script/core.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/script/core.py	2015-06-14 10:25:16 UTC (rev 65461)
+++ grass/branches/releasebranch_7_0/lib/python/script/core.py	2015-06-14 10:36:59 UTC (rev 65462)
@@ -34,6 +34,8 @@
 # i18N
 import gettext
 gettext.install('grasslibs', os.path.join(os.getenv("GISBASE"), 'locale'))
+import __builtin__
+__builtin__.__dict__['_'] = __builtin__.__dict__['_'].im_self.lgettext
 
 # subprocess wrapper that uses shell on Windows
 



More information about the grass-commit mailing list