diff options
Diffstat (limited to 'gen_web_gettext.py')
-rwxr-xr-x | gen_web_gettext.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gen_web_gettext.py b/gen_web_gettext.py index 80186e938..37ffba71c 100755 --- a/gen_web_gettext.py +++ b/gen_web_gettext.py @@ -60,7 +60,7 @@ def check_missing_markup(js_dir): # Ignore string that contains only digits or specificied strings in skip. if ( not string - or string.split('\'')[1].isdigit() + or string.split("'")[1].isdigit() or any(x in string for x in skip) ): continue @@ -82,7 +82,7 @@ GETTEXT_SUBST_TPL = "GetText.add('{key}','${{escape(_(\"{key}\"))}}')\n" def create_gettext_js(js_dir): - string_re = re.compile('_\\(\'(.*?)\'\\)') + string_re = re.compile("_\\('(.*?)'\\)") strings = {} for root, dnames, files in os.walk(js_dir): for filename in files: |