fix extract-po-string path

This commit is contained in:
Damien Elmes 2020-02-27 17:37:40 +10:00
parent 244326c130
commit da86c27d05

View File

@ -59,7 +59,7 @@ def get_msgstr(entry):
# start by checking the .pot file for the message
base = "i18n/po/desktop"
base = "repo/desktop"
pot = os.path.join(base, "anki.pot")
pot_cat = polib.pofile(pot)
catalogs = []
@ -104,11 +104,9 @@ for (lang, cat) in catalogs:
if translation:
print(f"{lang} had translation {translation}")
to_insert.append((lang, translation))
else:
print(f"{lang} had no translation")
break
plurals = json.load(open("i18n/plurals.json"))
plurals = json.load(open("plurals.json"))
def plural_text(key, lang, translation):