Skip to content

Commit

Permalink
Fixed bug in generating language files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmax committed Feb 19, 2022
1 parent f087feb commit ccbc34b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def make_lng(
if translation is None:
print(f'WARNING: translation for {label} not found in {translation_filename}', file=sys.stderr)
translation = string_def['string']
if isinstance(translation, str):
if not isinstance(translation, str):
if "untranslated" not in translation and "same" not in translation:
print(f'WARNING: status unknown for {label} in {translation_filename}', file=sys.stderr)

Expand Down

0 comments on commit ccbc34b

Please sign in to comment.