[GRASS-SVN] r64834 - grass/trunk/lib/python/script

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 11 01:50:02 PDT 2015


Author: glynn
Date: 2015-03-11 01:50:02 -0700 (Wed, 11 Mar 2015)
New Revision: 64834

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


Modified: grass/trunk/lib/python/script/core.py
===================================================================
--- grass/trunk/lib/python/script/core.py	2015-03-10 17:54:38 UTC (rev 64833)
+++ grass/trunk/lib/python/script/core.py	2015-03-11 08:50:02 UTC (rev 64834)
@@ -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