[GRASS-SVN] r44024 - grass/trunk/lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Oct 24 06:40:55 EDT 2010
Author: martinl
Date: 2010-10-24 03:40:55 -0700 (Sun, 24 Oct 2010)
New Revision: 44024
Modified:
grass/trunk/lib/python/raster.py
grass/trunk/lib/python/vector.py
Log:
avoid gettext warnings
Modified: grass/trunk/lib/python/raster.py
===================================================================
--- grass/trunk/lib/python/raster.py 2010-10-24 10:37:48 UTC (rev 44023)
+++ grass/trunk/lib/python/raster.py 2010-10-24 10:40:55 UTC (rev 44024)
@@ -47,8 +47,8 @@
run_command('r.support', map = map, history = os.environ['CMDLINE'])
return True
- warning(_("Unable to write history for <%s>. "
- "Raster map <%s> not found in current mapset." % (map, map)))
+ warning(_("Unable to write history for <%(map)s>. "
+ "Raster map <%(map)s> not found in current mapset." % { 'map' : map, 'map' : map}))
return False
# run "r.info -rgstmpud ..." and parse output
Modified: grass/trunk/lib/python/vector.py
===================================================================
--- grass/trunk/lib/python/vector.py 2010-10-24 10:37:48 UTC (rev 44023)
+++ grass/trunk/lib/python/vector.py 2010-10-24 10:40:55 UTC (rev 44024)
@@ -183,7 +183,8 @@
try:
key = vector_db(map = map)[layer]['key']
except KeyError:
- error(_('Missing layer %d in vector map <%s>') % (layer, map))
+ error(_('Missing layer %(layer)d in vector map <%(map)s>') % \
+ { 'layer' : layer, 'map' : map })
return { 'columns' : [], 'values' : {} }
if kwargs.has_key('columns'):
More information about the grass-commit
mailing list