Commit 85c77bb4 authored by Johnny Jazeix's avatar Johnny Jazeix

lang, workaround for not crashing when dataset is not fully translated and not...

lang, workaround for not crashing when dataset is not fully translated and not all words appear in the json file
parent fac01abc
......@@ -37,6 +37,9 @@ if poFile.percent_translated() < 40:
for entry in poFile.translated_entries():
word = entry.msgctxt
data[word] = entry.msgstr
for entry in poFile.untranslated_entries():
word = entry.msgctxt
data[word] = entry.msgstr
with open(jsonFile, "w", encoding='utf-8') as data_file:
json.dump(data, data_file, indent=4, sort_keys=True, ensure_ascii=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment