[GRASS-SVN] r38364 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jul 11 05:27:38 EDT 2009
Author: martinl
Date: 2009-07-11 05:27:37 -0400 (Sat, 11 Jul 2009)
New Revision: 38364
Modified:
grass/trunk/gui/wxpython/gui_modules/menuform.py
grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
Log:
fix gettext warnings
Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py 2009-07-11 08:39:18 UTC (rev 38363)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py 2009-07-11 09:27:37 UTC (rev 38364)
@@ -365,8 +365,8 @@
pass
if raiseError:
- raise ValueError, _("Parameter element '%s' not found: '%s'") % \
- (element, value)
+ raise ValueError, _("Parameter element '%(element)s' not found: '%(value)s'") % \
+ { 'element' : element, 'value' : value }
else:
return None
Modified: grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py 2009-07-11 08:39:18 UTC (rev 38363)
+++ grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py 2009-07-11 09:27:37 UTC (rev 38364)
@@ -108,8 +108,9 @@
Map=self.Map, auimgr=self.auimgr)
# title
- self.mapdisplay.SetTitle(_("GRASS GIS Map Display: %d - Location: %s") % \
- (self.disp_idx + 1, grass.gisenv()["LOCATION_NAME"]))
+ self.mapdisplay.SetTitle(_("GRASS GIS Map Display: %(id)d - Location: %(loc)s") % \
+ { 'id' : self.disp_idx + 1,
+ 'loc' : grass.gisenv()["LOCATION_NAME"] })
# show new display
if kargs['showMapDisplay'] is True:
More information about the grass-commit
mailing list