浏览代码

wxGUI: fix displaying translated 'required' string (to German) in modules' status bar (merge from trunk, https://trac.osgeo.org/grass/changeset/61704)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@61811 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 年之前
父节点
当前提交
b0a711fed6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 \