Prechádzať zdrojové kódy

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á 10 rokov pred
rodič
commit
ae1c7ea1d5
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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', '') !=  '':
                     cmd +=  [ '%s=%s' % (p['name'], p['default']) ]
                 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:
                 cmd +=  [ '%s=%s' % (p['name'], p['default']) ]
             elif p.get('value', '') !=  '' and \