[GRASS-SVN] r70818 - in grass/trunk/scripts: d.correlate d.frame d.out.file d.polar d.rast.edit d.rast.leg d.redraw d.shade d.to.rast d.what.rast d.what.vect db.dropcolumn db.droptable db.in.ogr db.out.ogr db.test db.univar g.extension g.extension.all g.manual g.search.modules i.colors.enhance i.image.mosaic i.in.spotvgt i.oif i.pansharpen i.spectral i.tasscap m.proj r.blend r.buffer.lowmem r.fillnulls r.grow r.import r.in.aster r.in.srtm r.in.wms r.mask r.pack r.plane r.reclass.area r.rgb r.shade r.tileset r.unpack r3.in.xyz v.build.all v.centroids v.db.addcolumn v.db.addtable v.db.dropcolumn v.db.droprow v.db.droptable v.db.join v.db.reconnect.all v.db.renamecolumn v.db.univar v.db.update v.dissolve v.import v.in.e00 v.in.geonames v.in.lines v.in.mapgen v.in.wfs v.pack v.rast.stats v.report v.to.lines v.unpack v.what.strds

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 1 03:28:45 PDT 2017


Author: marisn
Date: 2017-04-01 03:28:45 -0700 (Sat, 01 Apr 2017)
New Revision: 70818

Modified:
   grass/trunk/scripts/d.correlate/d.correlate.py
   grass/trunk/scripts/d.frame/d.frame.py
   grass/trunk/scripts/d.out.file/d.out.file.py
   grass/trunk/scripts/d.polar/d.polar.py
   grass/trunk/scripts/d.rast.edit/d.rast.edit.py
   grass/trunk/scripts/d.rast.leg/d.rast.leg.py
   grass/trunk/scripts/d.redraw/d.redraw.py
   grass/trunk/scripts/d.shade/d.shade.py
   grass/trunk/scripts/d.to.rast/d.to.rast.py
   grass/trunk/scripts/d.what.rast/d.what.rast.py
   grass/trunk/scripts/d.what.vect/d.what.vect.py
   grass/trunk/scripts/db.dropcolumn/db.dropcolumn.py
   grass/trunk/scripts/db.droptable/db.droptable.py
   grass/trunk/scripts/db.in.ogr/db.in.ogr.py
   grass/trunk/scripts/db.out.ogr/db.out.ogr.py
   grass/trunk/scripts/db.test/db.test.py
   grass/trunk/scripts/db.univar/db.univar.py
   grass/trunk/scripts/g.extension.all/g.extension.all.py
   grass/trunk/scripts/g.extension/g.extension.py
   grass/trunk/scripts/g.manual/g.manual.py
   grass/trunk/scripts/g.search.modules/g.search.modules.py
   grass/trunk/scripts/i.colors.enhance/i.colors.enhance.py
   grass/trunk/scripts/i.image.mosaic/i.image.mosaic.py
   grass/trunk/scripts/i.in.spotvgt/i.in.spotvgt.py
   grass/trunk/scripts/i.oif/i.oif.py
   grass/trunk/scripts/i.pansharpen/i.pansharpen.py
   grass/trunk/scripts/i.spectral/i.spectral.py
   grass/trunk/scripts/i.tasscap/i.tasscap.py
   grass/trunk/scripts/m.proj/m.proj.py
   grass/trunk/scripts/r.blend/r.blend.py
   grass/trunk/scripts/r.buffer.lowmem/r.buffer.lowmem.py
   grass/trunk/scripts/r.fillnulls/r.fillnulls.py
   grass/trunk/scripts/r.grow/r.grow.py
   grass/trunk/scripts/r.import/r.import.py
   grass/trunk/scripts/r.in.aster/r.in.aster.py
   grass/trunk/scripts/r.in.srtm/r.in.srtm.py
   grass/trunk/scripts/r.in.wms/r.in.wms.py
   grass/trunk/scripts/r.in.wms/wms_base.py
   grass/trunk/scripts/r.in.wms/wms_cap_parsers.py
   grass/trunk/scripts/r.in.wms/wms_drv.py
   grass/trunk/scripts/r.in.wms/wms_gdal_drv.py
   grass/trunk/scripts/r.mask/r.mask.py
   grass/trunk/scripts/r.pack/r.pack.py
   grass/trunk/scripts/r.plane/r.plane.py
   grass/trunk/scripts/r.reclass.area/r.reclass.area.py
   grass/trunk/scripts/r.rgb/r.rgb.py
   grass/trunk/scripts/r.shade/r.shade.py
   grass/trunk/scripts/r.tileset/r.tileset.py
   grass/trunk/scripts/r.unpack/r.unpack.py
   grass/trunk/scripts/r3.in.xyz/r3.in.xyz.py
   grass/trunk/scripts/v.build.all/v.build.all.py
   grass/trunk/scripts/v.centroids/v.centroids.py
   grass/trunk/scripts/v.db.addcolumn/v.db.addcolumn.py
   grass/trunk/scripts/v.db.addtable/v.db.addtable.py
   grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py
   grass/trunk/scripts/v.db.droprow/v.db.droprow.py
   grass/trunk/scripts/v.db.droptable/v.db.droptable.py
   grass/trunk/scripts/v.db.join/v.db.join.py
   grass/trunk/scripts/v.db.reconnect.all/v.db.reconnect.all.py
   grass/trunk/scripts/v.db.renamecolumn/v.db.renamecolumn.py
   grass/trunk/scripts/v.db.univar/v.db.univar.py
   grass/trunk/scripts/v.db.update/v.db.update.py
   grass/trunk/scripts/v.dissolve/v.dissolve.py
   grass/trunk/scripts/v.import/v.import.py
   grass/trunk/scripts/v.in.e00/v.in.e00.py
   grass/trunk/scripts/v.in.geonames/v.in.geonames.py
   grass/trunk/scripts/v.in.lines/v.in.lines.py
   grass/trunk/scripts/v.in.mapgen/v.in.mapgen.py
   grass/trunk/scripts/v.in.wfs/v.in.wfs.py
   grass/trunk/scripts/v.pack/v.pack.py
   grass/trunk/scripts/v.rast.stats/v.rast.stats.py
   grass/trunk/scripts/v.report/v.report.py
   grass/trunk/scripts/v.to.lines/v.to.lines.py
   grass/trunk/scripts/v.unpack/v.unpack.py
   grass/trunk/scripts/v.what.strds/v.what.strds.py
Log:
Install gettext to Python script modules to use translated strings extracted by r70817


Modified: grass/trunk/scripts/d.correlate/d.correlate.py
===================================================================
--- grass/trunk/scripts/d.correlate/d.correlate.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/d.correlate/d.correlate.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -32,6 +32,11 @@
 from grass.script import core as gcore
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
+
 def main():
     layers = options['map'].split(',')
 

Modified: grass/trunk/scripts/d.frame/d.frame.py
===================================================================
--- grass/trunk/scripts/d.frame/d.frame.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/d.frame/d.frame.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -70,6 +70,10 @@
 
 from grass.script.core import parser, read_command, fatal, debug, run_command, gisenv, warning, parse_command
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 # check if monitor is running
 
 

Modified: grass/trunk/scripts/d.out.file/d.out.file.py
===================================================================
--- grass/trunk/scripts/d.out.file/d.out.file.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/d.out.file/d.out.file.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -40,7 +40,12 @@
 
 from grass.script import core as gcore
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     options, flags = gcore.parser()
     gisenv = gcore.gisenv()

Modified: grass/trunk/scripts/d.polar/d.polar.py
===================================================================
--- grass/trunk/scripts/d.polar/d.polar.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/d.polar/d.polar.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -52,7 +52,11 @@
 from grass.script.utils import try_remove, basename
 from grass.script import core as gcore
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def raster_map_required(name):
     if not gcore.find_file(name, 'cell')['file']:
         gcore.fatal(_("Raster map <%s> not found") % name)

Modified: grass/trunk/scripts/d.rast.edit/d.rast.edit.py
===================================================================
--- grass/trunk/scripts/d.rast.edit/d.rast.edit.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/d.rast.edit/d.rast.edit.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -79,6 +79,11 @@
 import atexit
 import grass.script as grass
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 try:
     import wxversion
     wxversion.select(['3.0', '2.8', '2.6'])

Modified: grass/trunk/scripts/d.rast.leg/d.rast.leg.py
===================================================================
--- grass/trunk/scripts/d.rast.leg/d.rast.leg.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/d.rast.leg/d.rast.leg.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -65,7 +65,11 @@
 import os
 import grass.script as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def make_frame(f, b, t, l, r):
     (fl, fr, ft, fb) = f
 

Modified: grass/trunk/scripts/d.redraw/d.redraw.py
===================================================================
--- grass/trunk/scripts/d.redraw/d.redraw.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/d.redraw/d.redraw.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -26,7 +26,11 @@
 from grass.script import core as grass
 from grass.script.utils import split
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     mon = grass.gisenv().get('MONITOR', None)
     if not mon:

Modified: grass/trunk/scripts/d.shade/d.shade.py
===================================================================
--- grass/trunk/scripts/d.shade/d.shade.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/d.shade/d.shade.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -43,7 +43,12 @@
 from grass.script import core as gcore
 from grass.exceptions import CalledModuleError
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     options, unused = gcore.parser()
 

Modified: grass/trunk/scripts/d.to.rast/d.to.rast.py
===================================================================
--- grass/trunk/scripts/d.to.rast/d.to.rast.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/d.to.rast/d.to.rast.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -25,7 +25,12 @@
 
 from grass.script import core as gcore
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     options, flags = gcore.parser()
     gisenv = gcore.gisenv()

Modified: grass/trunk/scripts/d.what.rast/d.what.rast.py
===================================================================
--- grass/trunk/scripts/d.what.rast/d.what.rast.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/d.what.rast/d.what.rast.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -25,7 +25,12 @@
 
 from grass.script import core as gcore
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     options, flags = gcore.parser()
     gisenv = gcore.gisenv()

Modified: grass/trunk/scripts/d.what.vect/d.what.vect.py
===================================================================
--- grass/trunk/scripts/d.what.vect/d.what.vect.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/d.what.vect/d.what.vect.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -25,7 +25,12 @@
 
 from grass.script import core as gcore
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     options, flags = gcore.parser()
     gisenv = gcore.gisenv()

Modified: grass/trunk/scripts/db.dropcolumn/db.dropcolumn.py
===================================================================
--- grass/trunk/scripts/db.dropcolumn/db.dropcolumn.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/db.dropcolumn/db.dropcolumn.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -41,7 +41,12 @@
 from grass.exceptions import CalledModuleError
 import grass.script as gscript
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     table = options['table']
     column = options['column']

Modified: grass/trunk/scripts/db.droptable/db.droptable.py
===================================================================
--- grass/trunk/scripts/db.droptable/db.droptable.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/db.droptable/db.droptable.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -45,7 +45,12 @@
 import sys
 import grass.script as grass
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     table = options['table']
     force = flags['f']

Modified: grass/trunk/scripts/db.in.ogr/db.in.ogr.py
===================================================================
--- grass/trunk/scripts/db.in.ogr/db.in.ogr.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/db.in.ogr/db.in.ogr.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -62,7 +62,12 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     input = options['input']
     db_table = options['db_table']

Modified: grass/trunk/scripts/db.out.ogr/db.out.ogr.py
===================================================================
--- grass/trunk/scripts/db.out.ogr/db.out.ogr.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/db.out.ogr/db.out.ogr.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -60,7 +60,11 @@
 from grass.script import core as gcore
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     input = options['input']
     layer = options['layer']

Modified: grass/trunk/scripts/db.test/db.test.py
===================================================================
--- grass/trunk/scripts/db.test/db.test.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/db.test/db.test.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -33,7 +33,11 @@
 from grass.script import db as grassdb
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     test_file = options['test']
 

Modified: grass/trunk/scripts/db.univar/db.univar.py
===================================================================
--- grass/trunk/scripts/db.univar/db.univar.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/db.univar/db.univar.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -61,7 +61,12 @@
 
 import grass.script as gscript
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def cleanup():
     for ext in ['', '.sort']:
         gscript.try_remove(tmp + ext)

Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/g.extension/g.extension.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -161,6 +161,10 @@
 from grass.script.utils import try_rmdir
 from grass.script import core as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 # temp dir
 REMOVE_TMPDIR = True
 PROXIES = {}

Modified: grass/trunk/scripts/g.extension.all/g.extension.all.py
===================================================================
--- grass/trunk/scripts/g.extension.all/g.extension.all.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/g.extension.all/g.extension.all.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -47,7 +47,11 @@
 import grass.script as gscript
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def get_extensions():
     addon_base = os.getenv('GRASS_ADDON_BASE')
     if not addon_base:

Modified: grass/trunk/scripts/g.manual/g.manual.py
===================================================================
--- grass/trunk/scripts/g.manual/g.manual.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/g.manual/g.manual.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -60,7 +60,11 @@
 from grass.script.utils import basename
 from grass.script import core as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def start_browser(entry):
     if browser and \
        browser not in ('xdg-open', 'start') and \

Modified: grass/trunk/scripts/g.search.modules/g.search.modules.py
===================================================================
--- grass/trunk/scripts/g.search.modules/g.search.modules.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/g.search.modules/g.search.modules.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -68,6 +68,10 @@
 from grass.script.utils import diff_files, try_rmdir
 from grass.script import core as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 try:
     import xml.etree.ElementTree as etree
 except ImportError:

Modified: grass/trunk/scripts/i.colors.enhance/i.colors.enhance.py
===================================================================
--- grass/trunk/scripts/i.colors.enhance/i.colors.enhance.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/i.colors.enhance/i.colors.enhance.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -71,6 +71,11 @@
 
 import grass.script as gscript
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 try:
     # new for python 2.6, in 2.5 it may be easy_install'd.
     import multiprocessing as mp

Modified: grass/trunk/scripts/i.image.mosaic/i.image.mosaic.py
===================================================================
--- grass/trunk/scripts/i.image.mosaic/i.image.mosaic.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/i.image.mosaic/i.image.mosaic.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -36,7 +36,12 @@
 
 import grass.script as gscript
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def copy_colors(fh, map, offset):
     p = gscript.pipe_command('r.colors.out', map=map)
     for line in p.stdout:

Modified: grass/trunk/scripts/i.in.spotvgt/i.in.spotvgt.py
===================================================================
--- grass/trunk/scripts/i.in.spotvgt/i.in.spotvgt.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/i.in.spotvgt/i.in.spotvgt.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -53,7 +53,11 @@
 import grass.script as gscript
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 vrt = """<VRTDataset rasterXSize="$XSIZE" rasterYSize="$YSIZE">
  <SRS>GEOGCS["wgs84",DATUM["WGS_1984",SPHEROID["wgs84",6378137,298.257223563],TOWGS84[0.000,0.000,0.000]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]]</SRS>
    <GeoTransform>$WESTCORNER, $RESOLUTION, 0.0000000000000000e+00, $NORTHCORNER, 0.0000000000000e+00, -$RESOLUTION</GeoTransform>

Modified: grass/trunk/scripts/i.oif/i.oif.py
===================================================================
--- grass/trunk/scripts/i.oif/i.oif.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/i.oif/i.oif.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -45,7 +45,11 @@
 from grass.script.utils import parse_key_val
 from grass.script import core as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def oifcalc(sdev, corr, k1, k2, k3):
     grass.debug(_("Calculating OIF for combination: %s, %s, %s" % (k1, k2,
                                                                    k3)), 1)

Modified: grass/trunk/scripts/i.pansharpen/i.pansharpen.py
===================================================================
--- grass/trunk/scripts/i.pansharpen/i.pansharpen.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/i.pansharpen/i.pansharpen.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -90,7 +90,11 @@
 
 import grass.script as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     if not hasNumPy:
         grass.fatal(_("Required dependency NumPy not found. Exiting."))

Modified: grass/trunk/scripts/i.spectral/i.spectral.py
===================================================================
--- grass/trunk/scripts/i.spectral/i.spectral.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/i.spectral/i.spectral.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -79,7 +79,11 @@
 from grass.script.utils import try_rmdir
 from grass.script import core as gcore
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def cleanup():
     try_rmdir(tmp_dir)
 

Modified: grass/trunk/scripts/i.tasscap/i.tasscap.py
===================================================================
--- grass/trunk/scripts/i.tasscap/i.tasscap.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/i.tasscap/i.tasscap.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -73,6 +73,11 @@
 
 import grass.script as grass
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 # weights for 6 Landsat bands: TM4, TM5, TM7, OLI
 # MODIS: Red, NIR1, Blue, Green, NIR2, SWIR1, SWIR2
 parms = [[(0.3037, 0.2793, 0.4743, 0.5585, 0.5082, 0.1863),  # Landsat TM4

Modified: grass/trunk/scripts/m.proj/m.proj.py
===================================================================
--- grass/trunk/scripts/m.proj/m.proj.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/m.proj/m.proj.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -98,7 +98,11 @@
 from grass.script.utils import separator, parse_key_val
 from grass.script import core as gcore
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 class TrThread(threading.Thread):
 
     def __init__(self, ifs, inf, outf):

Modified: grass/trunk/scripts/r.blend/r.blend.py
===================================================================
--- grass/trunk/scripts/r.blend/r.blend.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.blend/r.blend.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -47,7 +47,11 @@
 import string
 import grass.script as gscript
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     first = options['first']
     second = options['second']

Modified: grass/trunk/scripts/r.buffer.lowmem/r.buffer.lowmem.py
===================================================================
--- grass/trunk/scripts/r.buffer.lowmem/r.buffer.lowmem.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.buffer.lowmem/r.buffer.lowmem.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -47,6 +47,10 @@
 import math
 import grass.script as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 scales = {
     'meters': 1.0,
     'kilometers': 1000.0,

Modified: grass/trunk/scripts/r.fillnulls/r.fillnulls.py
===================================================================
--- grass/trunk/scripts/r.fillnulls/r.fillnulls.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.fillnulls/r.fillnulls.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -103,6 +103,10 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 tmp_rmaps = list()
 tmp_vmaps = list()
 usermask = None

Modified: grass/trunk/scripts/r.grow/r.grow.py
===================================================================
--- grass/trunk/scripts/r.grow/r.grow.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.grow/r.grow.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -67,7 +67,11 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 # what to do in case of user break:
 def cleanup():
     for map in [temp_dist, temp_val]:

Modified: grass/trunk/scripts/r.import/r.import.py
===================================================================
--- grass/trunk/scripts/r.import/r.import.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.import/r.import.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -129,7 +129,11 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 # initialize global vars
 TMPLOC = None
 SRCGISRC = None

Modified: grass/trunk/scripts/r.in.aster/r.in.aster.py
===================================================================
--- grass/trunk/scripts/r.in.aster/r.in.aster.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.in.aster/r.in.aster.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -56,6 +56,10 @@
 import platform
 import grass.script as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 bands = {
     'L1A': {
         '1': "VNIR_Band1:ImageData",

Modified: grass/trunk/scripts/r.in.srtm/r.in.srtm.py
===================================================================
--- grass/trunk/scripts/r.in.srtm/r.in.srtm.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.in.srtm/r.in.srtm.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -113,7 +113,11 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def cleanup():
     if not in_temp:
         return

Modified: grass/trunk/scripts/r.in.wms/r.in.wms.py
===================================================================
--- grass/trunk/scripts/r.in.wms/r.in.wms.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.in.wms/r.in.wms.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -178,7 +178,11 @@
 
 import grass.script as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def GetRegionParams(opt_region):
 
     # set region

Modified: grass/trunk/scripts/r.in.wms/wms_base.py
===================================================================
--- grass/trunk/scripts/r.in.wms/wms_base.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.in.wms/wms_base.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -31,7 +31,11 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 class WMSBase:
 
     def __init__(self):

Modified: grass/trunk/scripts/r.in.wms/wms_cap_parsers.py
===================================================================
--- grass/trunk/scripts/r.in.wms/wms_cap_parsers.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.in.wms/wms_cap_parsers.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -24,7 +24,12 @@
 import xml.etree.ElementTree as etree
 import grass.script as grass
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 class BaseCapabilitiesTree(etree.ElementTree):
 
     def __init__(self, cap_file):

Modified: grass/trunk/scripts/r.in.wms/wms_drv.py
===================================================================
--- grass/trunk/scripts/r.in.wms/wms_drv.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.in.wms/wms_drv.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -19,6 +19,11 @@
 import socket
 import grass.script as grass
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 from time import sleep
 
 try:

Modified: grass/trunk/scripts/r.in.wms/wms_gdal_drv.py
===================================================================
--- grass/trunk/scripts/r.in.wms/wms_gdal_drv.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.in.wms/wms_gdal_drv.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -16,6 +16,10 @@
 import os
 import grass.script as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 try:
     from osgeo import gdal
     from osgeo import gdalconst

Modified: grass/trunk/scripts/r.mask/r.mask.py
===================================================================
--- grass/trunk/scripts/r.mask/r.mask.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.mask/r.mask.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -73,7 +73,11 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def cleanup():
     if tmp:
         grass.run_command('g.remove', flags='f', type='raster',

Modified: grass/trunk/scripts/r.pack/r.pack.py
===================================================================
--- grass/trunk/scripts/r.pack/r.pack.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.pack/r.pack.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -40,7 +40,11 @@
 from grass.script.utils import try_rmdir, try_remove
 from grass.script import core as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def cleanup():
     try_rmdir(tmp)
 

Modified: grass/trunk/scripts/r.plane/r.plane.py
===================================================================
--- grass/trunk/scripts/r.plane/r.plane.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.plane/r.plane.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -66,7 +66,12 @@
 import string
 import grass.script as gscript
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     name = options['output']
     type = options['type']

Modified: grass/trunk/scripts/r.reclass.area/r.reclass.area.py
===================================================================
--- grass/trunk/scripts/r.reclass.area/r.reclass.area.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.reclass.area/r.reclass.area.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -77,6 +77,10 @@
 import atexit
 import grass.script as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 TMPRAST = []
 
 

Modified: grass/trunk/scripts/r.rgb/r.rgb.py
===================================================================
--- grass/trunk/scripts/r.rgb/r.rgb.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.rgb/r.rgb.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -43,7 +43,12 @@
 
 import grass.script as gscript
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     options, unused = gscript.parser()
     input = options['input']

Modified: grass/trunk/scripts/r.shade/r.shade.py
===================================================================
--- grass/trunk/scripts/r.shade/r.shade.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.shade/r.shade.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -67,7 +67,11 @@
 from grass.script import raster as grast
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def remove(maps):
     """Remove raster maps"""
     gcore.run_command('g.remove', flags='f', quiet=True,

Modified: grass/trunk/scripts/r.tileset/r.tileset.py
===================================================================
--- grass/trunk/scripts/r.tileset/r.tileset.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.tileset/r.tileset.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -116,7 +116,12 @@
 from grass.script import core as gcore
 from grass.exceptions import CalledModuleError
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def bboxToPoints(bbox):
     """Make points that are the corners of a bounding box"""
     points = []

Modified: grass/trunk/scripts/r.unpack/r.unpack.py
===================================================================
--- grass/trunk/scripts/r.unpack/r.unpack.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r.unpack/r.unpack.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -44,7 +44,11 @@
 from grass.script.utils import diff_files, try_rmdir
 from grass.script import core as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def cleanup():
     try_rmdir(tmp_dir)
 

Modified: grass/trunk/scripts/r3.in.xyz/r3.in.xyz.py
===================================================================
--- grass/trunk/scripts/r3.in.xyz/r3.in.xyz.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/r3.in.xyz/r3.in.xyz.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -174,7 +174,11 @@
 from grass.script import core as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def cleanup():
     grass.run_command('g.remove', flags='f',
                       type="rast", pattern='tmp.r3xyz.%d.*' % os.getpid(),

Modified: grass/trunk/scripts/v.build.all/v.build.all.py
===================================================================
--- grass/trunk/scripts/v.build.all/v.build.all.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.build.all/v.build.all.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -22,7 +22,12 @@
 from grass.script import core as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     env = grass.gisenv()
     mapset = env['MAPSET']

Modified: grass/trunk/scripts/v.centroids/v.centroids.py
===================================================================
--- grass/trunk/scripts/v.centroids/v.centroids.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.centroids/v.centroids.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -52,7 +52,12 @@
 import sys
 import grass.script as gscript
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     if options['option'] == 'add':
         num_bound = gscript.vector_info_topo(map=options['input'])['boundaries']

Modified: grass/trunk/scripts/v.db.addcolumn/v.db.addcolumn.py
===================================================================
--- grass/trunk/scripts/v.db.addcolumn/v.db.addcolumn.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.db.addcolumn/v.db.addcolumn.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -44,7 +44,11 @@
 import os
 import grass.script as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     map = options['map']
     layer = options['layer']

Modified: grass/trunk/scripts/v.db.addtable/v.db.addtable.py
===================================================================
--- grass/trunk/scripts/v.db.addtable/v.db.addtable.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.db.addtable/v.db.addtable.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -57,7 +57,11 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     vector = options['map']
     table = options['table']

Modified: grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py
===================================================================
--- grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -43,7 +43,11 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     map = options['map']
     layer = options['layer']

Modified: grass/trunk/scripts/v.db.droprow/v.db.droprow.py
===================================================================
--- grass/trunk/scripts/v.db.droprow/v.db.droprow.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.db.droprow/v.db.droprow.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -39,7 +39,12 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     # delete vectors via reverse selection
     try:

Modified: grass/trunk/scripts/v.db.droptable/v.db.droptable.py
===================================================================
--- grass/trunk/scripts/v.db.droptable/v.db.droptable.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.db.droptable/v.db.droptable.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -39,7 +39,11 @@
 import grass.script as gscript
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     force = flags['f']
     map = options['map']

Modified: grass/trunk/scripts/v.db.join/v.db.join.py
===================================================================
--- grass/trunk/scripts/v.db.join/v.db.join.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.db.join/v.db.join.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -61,7 +61,12 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     map = options['map']
     layer = options['layer']

Modified: grass/trunk/scripts/v.db.reconnect.all/v.db.reconnect.all.py
===================================================================
--- grass/trunk/scripts/v.db.reconnect.all/v.db.reconnect.all.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.db.reconnect.all/v.db.reconnect.all.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -56,6 +56,10 @@
 import grass.script as gscript
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 # substitute variables (gisdbase, location_name, mapset)
 
 

Modified: grass/trunk/scripts/v.db.renamecolumn/v.db.renamecolumn.py
===================================================================
--- grass/trunk/scripts/v.db.renamecolumn/v.db.renamecolumn.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.db.renamecolumn/v.db.renamecolumn.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -43,7 +43,11 @@
 import os
 import grass.script as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     map = options['map']
     layer = options['layer']

Modified: grass/trunk/scripts/v.db.univar/v.db.univar.py
===================================================================
--- grass/trunk/scripts/v.db.univar/v.db.univar.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.db.univar/v.db.univar.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -56,7 +56,11 @@
 import grass.script as gscript
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     global tmp
     tmp = gscript.tempfile()

Modified: grass/trunk/scripts/v.db.update/v.db.update.py
===================================================================
--- grass/trunk/scripts/v.db.update/v.db.update.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.db.update/v.db.update.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -54,7 +54,11 @@
 import os
 import grass.script as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     vector = options['map']
     layer = options['layer']

Modified: grass/trunk/scripts/v.dissolve/v.dissolve.py
===================================================================
--- grass/trunk/scripts/v.dissolve/v.dissolve.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.dissolve/v.dissolve.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -40,7 +40,11 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def cleanup():
     nuldev = file(os.devnull, 'w')
     grass.run_command(

Modified: grass/trunk/scripts/v.import/v.import.py
===================================================================
--- grass/trunk/scripts/v.import/v.import.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.import/v.import.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -104,6 +104,10 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 # initialize global vars
 TMPLOC = None
 SRCGISRC = None

Modified: grass/trunk/scripts/v.in.e00/v.in.e00.py
===================================================================
--- grass/trunk/scripts/v.in.e00/v.in.e00.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.in.e00/v.in.e00.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -46,7 +46,11 @@
 from grass.script import core as gcore
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     filename = options['input']
     type = options['type']

Modified: grass/trunk/scripts/v.in.geonames/v.in.geonames.py
===================================================================
--- grass/trunk/scripts/v.in.geonames/v.in.geonames.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.in.geonames/v.in.geonames.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -37,7 +37,11 @@
 import os
 import grass.script as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     infile = options['input']
     outfile = options['output']

Modified: grass/trunk/scripts/v.in.lines/v.in.lines.py
===================================================================
--- grass/trunk/scripts/v.in.lines/v.in.lines.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.in.lines/v.in.lines.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -41,7 +41,11 @@
 from grass.script.utils import separator, try_remove
 from grass.script import core as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def cleanup():
     try_remove(tmp)
 

Modified: grass/trunk/scripts/v.in.mapgen/v.in.mapgen.py
===================================================================
--- grass/trunk/scripts/v.in.mapgen/v.in.mapgen.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.in.mapgen/v.in.mapgen.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -54,7 +54,11 @@
 from grass.script import core as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def cleanup():
     try_remove(tmp)
     try_remove(tmp + '.dig')

Modified: grass/trunk/scripts/v.in.wfs/v.in.wfs.py
===================================================================
--- grass/trunk/scripts/v.in.wfs/v.in.wfs.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.in.wfs/v.in.wfs.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -83,7 +83,11 @@
 except ImportError:
     from urllib.request import urlopen
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     out = options['output']
     wfs_url = options['url']
@@ -100,12 +104,14 @@
     if options['maximum_features']:
         wfs_url += '&MAXFEATURES=' + options['maximum_features']
         if int(options['maximum_features']) < 1:
-            grass.fatal('Invalid maximum number of features')
+            # GTC Invalid WFS maximum features parameter
+            grass.fatal(_("Invalid maximum number of features"))
 
     if options['start_index']:
         wfs_url += '&STARTINDEX=' + options['start_index']
         if int(options['start_index']) < 1:
-            grass.fatal('Features begin with index "1"')
+            # GTC Invalid WFS start index parameter
+            grass.fatal(_('Features begin with index "1"'))
 
     if flags['r']:
         bbox = grass.read_command("g.region", flags='w').split('=')[1]
@@ -119,6 +125,7 @@
 
     grass.debug(wfs_url)
 
+    # GTC Downloading WFS features
     grass.message(_("Retrieving data..."))
     inf = urlopen(wfs_url)
     outf = file(tmpxml, 'wb')
@@ -133,7 +140,7 @@
     if flags['l']:
         import shutil
         if os.path.exists('wms_capabilities.xml'):
-            grass.fatal('A file called "wms_capabilities.xml" already exists here')
+            grass.fatal(_('A file called "wms_capabilities.xml" already exists here'))
         # os.move() might fail if the temp file is on another volume, so we copy instead
         shutil.copy(tmpxml, 'wms_capabilities.xml')
         try_remove(tmpxml)
@@ -142,7 +149,7 @@
     grass.message(_("Importing data..."))
     try:
         grass.run_command('v.in.ogr', flags='o', input=tmpxml, output=out)
-        grass.message(_("Vector points map <%s> imported from WFS.") % out)
+        grass.message(_("Vector map <%s> imported from WFS.") % out)
     except:
         grass.message(_("WFS import failed"))
     finally:

Modified: grass/trunk/scripts/v.pack/v.pack.py
===================================================================
--- grass/trunk/scripts/v.pack/v.pack.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.pack/v.pack.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -43,7 +43,11 @@
 from grass.script import core as grass
 from grass.script import vector as vector
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def cleanup():
     try_rmdir(basedir)
 

Modified: grass/trunk/scripts/v.rast.stats/v.rast.stats.py
===================================================================
--- grass/trunk/scripts/v.rast.stats/v.rast.stats.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.rast.stats/v.rast.stats.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -69,7 +69,11 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def cleanup():
     if rastertmp:
         grass.run_command('g.remove', flags='f', type='raster',

Modified: grass/trunk/scripts/v.report/v.report.py
===================================================================
--- grass/trunk/scripts/v.report/v.report.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.report/v.report.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -47,7 +47,11 @@
 import os
 import grass.script as grass
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def uniq(l):
     result = []
     last = None

Modified: grass/trunk/scripts/v.to.lines/v.to.lines.py
===================================================================
--- grass/trunk/scripts/v.to.lines/v.to.lines.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.to.lines/v.to.lines.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -44,7 +44,11 @@
 from grass.exceptions import CalledModuleError
 import os
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def main():
     # Get the options
     input = options["input"]

Modified: grass/trunk/scripts/v.unpack/v.unpack.py
===================================================================
--- grass/trunk/scripts/v.unpack/v.unpack.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.unpack/v.unpack.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -48,7 +48,11 @@
 from grass.script import db as grassdb
 from grass.exceptions import CalledModuleError
 
+# i18N
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
 
+
 def cleanup():
     try_rmdir(tmp_dir)
 

Modified: grass/trunk/scripts/v.what.strds/v.what.strds.py
===================================================================
--- grass/trunk/scripts/v.what.strds/v.what.strds.py	2017-04-01 09:34:12 UTC (rev 70817)
+++ grass/trunk/scripts/v.what.strds/v.what.strds.py	2017-04-01 10:28:45 UTC (rev 70818)
@@ -52,6 +52,11 @@
 import grass.script as grass
 from grass.exceptions import CalledModuleError
 
+# i18N
+import os
+import gettext
+gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'))
+
 ############################################################################
 
 



More information about the grass-commit mailing list