Explorar el Código

fix displaying translated 'required' string (to German) in modules' status bar

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61704 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová hace 10 años
padre
commit
ae1c7ea1d5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/python/script/task.py

+ 1 - 1
lib/python/script/task.py

@@ -228,7 +228,7 @@ class grassTask:
                 if p.get('default', '') !=  '':
                 if p.get('default', '') !=  '':
                     cmd +=  [ '%s=%s' % (p['name'], p['default']) ]
                     cmd +=  [ '%s=%s' % (p['name'], p['default']) ]
                 elif ignoreErrors and not suppress_required and not ignoreRequired:
                 elif ignoreErrors and not suppress_required and not ignoreRequired:
-                    cmd +=  [ '%s=%s' % (p['name'], _('<required>')) ]
+                    cmd += [('%s=%s' % (p['name'], _('<required>'))).decode('utf-8')]
             elif p.get('value', '') ==  '' and p.get('default', '') != '' and not ignoreDefault:
             elif p.get('value', '') ==  '' and p.get('default', '') != '' and not ignoreDefault:
                 cmd +=  [ '%s=%s' % (p['name'], p['default']) ]
                 cmd +=  [ '%s=%s' % (p['name'], p['default']) ]
             elif p.get('value', '') !=  '' and \
             elif p.get('value', '') !=  '' and \