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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jul 29 14:02:25 EDT 2011


Author: glynn
Date: 2011-07-29 11:02:25 -0700 (Fri, 29 Jul 2011)
New Revision: 47310

Modified:
   grass/trunk/lib/python/array.py
   grass/trunk/lib/python/core.py
   grass/trunk/lib/python/db.py
   grass/trunk/lib/python/raster.py
   grass/trunk/lib/python/vector.py
Log:
Fix gettext usage in Python scripting library


Modified: grass/trunk/lib/python/array.py
===================================================================
--- grass/trunk/lib/python/array.py	2011-07-29 17:47:35 UTC (rev 47309)
+++ grass/trunk/lib/python/array.py	2011-07-29 18:02:25 UTC (rev 47310)
@@ -24,10 +24,6 @@
 
 import core as grass
 
-# i18N
-import gettext
-gettext.install('grasslibs', os.path.join(os.getenv("GISBASE"), 'locale'), unicode = True)
-
 class array(numpy.memmap):
     def __new__(cls, dtype = numpy.double):
         """!Define new numpy array

Modified: grass/trunk/lib/python/core.py
===================================================================
--- grass/trunk/lib/python/core.py	2011-07-29 17:47:35 UTC (rev 47309)
+++ grass/trunk/lib/python/core.py	2011-07-29 18:02:25 UTC (rev 47310)
@@ -35,7 +35,7 @@
 
 # i18N
 import gettext
-gettext.install('grasslibs', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
+gettext.install('grasslibs', os.path.join(os.getenv("GISBASE"), 'locale'))
 
 # subprocess wrapper that uses shell on Windows
 

Modified: grass/trunk/lib/python/db.py
===================================================================
--- grass/trunk/lib/python/db.py	2011-07-29 17:47:35 UTC (rev 47309)
+++ grass/trunk/lib/python/db.py	2011-07-29 18:02:25 UTC (rev 47310)
@@ -26,10 +26,6 @@
 
 from core import *
 
-# i18N
-import gettext
-gettext.install('grasslibs', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
-
 def db_describe(table, **args):
     """!Return the list of columns for a database table
     (interface to `db.describe -c'). Example:

Modified: grass/trunk/lib/python/raster.py
===================================================================
--- grass/trunk/lib/python/raster.py	2011-07-29 17:47:35 UTC (rev 47309)
+++ grass/trunk/lib/python/raster.py	2011-07-29 18:02:25 UTC (rev 47310)
@@ -27,10 +27,6 @@
 
 from core import *
 
-# i18N
-import gettext
-gettext.install('grasslibs', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
-
 # add raster history
 
 def raster_history(map):

Modified: grass/trunk/lib/python/vector.py
===================================================================
--- grass/trunk/lib/python/vector.py	2011-07-29 17:47:35 UTC (rev 47309)
+++ grass/trunk/lib/python/vector.py	2011-07-29 18:02:25 UTC (rev 47310)
@@ -28,10 +28,6 @@
 
 from core import *
 
-# i18N
-import gettext
-gettext.install('grasslibs', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
-
 # run "v.db.connect -g ..." and parse output
 
 def vector_db(map, **args):



More information about the grass-commit mailing list