소스 검색

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 년 전
부모
커밋
ae1c7ea1d5
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 \