[GRASS-SVN] r38942 - grass/branches/releasebranch_6_4/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 2 02:22:24 EDT 2009


Author: martinl
Date: 2009-09-02 02:22:23 -0400 (Wed, 02 Sep 2009)
New Revision: 38942

Modified:
   grass/branches/releasebranch_6_4/lib/python/core.py
Log:
pythonlib: import gettext


Modified: grass/branches/releasebranch_6_4/lib/python/core.py
===================================================================
--- grass/branches/releasebranch_6_4/lib/python/core.py	2009-09-01 19:33:51 UTC (rev 38941)
+++ grass/branches/releasebranch_6_4/lib/python/core.py	2009-09-02 06:22:23 UTC (rev 38942)
@@ -29,6 +29,10 @@
 import atexit
 import subprocess
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
+
 # subprocess wrapper that uses shell on Windows
 
 class Popen(subprocess.Popen):



More information about the grass-commit mailing list