[GRASS-SVN] r38608 - grass/trunk/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 3 16:01:34 EDT 2009


Author: martinl
Date: 2009-08-03 16:01:33 -0400 (Mon, 03 Aug 2009)
New Revision: 38608

Modified:
   grass/trunk/lib/python/core.py
Log:
core.py: import gettext


Modified: grass/trunk/lib/python/core.py
===================================================================
--- grass/trunk/lib/python/core.py	2009-08-03 19:49:42 UTC (rev 38607)
+++ grass/trunk/lib/python/core.py	2009-08-03 20:01:33 UTC (rev 38608)
@@ -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