Pārlūkot izejas kodu

avoid gettext warnings

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41827 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 gadi atpakaļ
vecāks
revīzija
d00f59cb00

+ 4 - 4
gui/wxpython/gui_modules/prompt.py

@@ -389,11 +389,11 @@ class TextCtrlAutoComplete(wx.ComboBox, listmix.ColumnSorterMixin):
                 if self._module and '=' not in cmd[-1]:
                     message = ''
                     if cmd[-1][0] == '-': # flag
-                        message = _("Warning: flag <%s> not found in '%s'") % \
-                            (cmd[-1][1:], self._module.name)
+                        message = _("Warning: flag <%(flag)s> not found in '%(module)s'") % \
+                            { 'flag' : cmd[-1][1:], 'module' : self._module.name }
                     else: # option
-                        message = _("Warning: option <%s> not found in '%s'") % \
-                            (cmd[-1], self._module.name)
+                        message = _("Warning: option <%(param)s> not found in '%(module)s'") % \
+                            { 'param' : cmd[-1], 'module' : self._module.name }
                     self.statusbar.SetStatusText(message)
         
         if self._module and len(cmd[-1]) == 2 and cmd[-1][-2] == '=':

+ 2 - 2
gui/wxpython/gui_modules/render.py

@@ -442,8 +442,8 @@ class Map(object):
         try:
             windfile = open (filename, "r")
         except IOError, e:
-            sys.exit(_("Error: Unable to open '%s'. Reason: %s. wxGUI exited.\n") % \
-                         filename, e)
+            sys.exit(_("Error: Unable to open '%(file)s'. Reason: %(ret)s. wxGUI exited.\n") % \
+                         { 'file' : filename, 'ret' : e})
         
         for line in windfile.readlines():
             line = line.strip()