Modify script to accept tabs in language files

This commit is contained in:
Jordy Ruiz 2018-12-03 18:21:08 +01:00
parent 7021a1c632
commit 32701175e9

View file

@ -52,7 +52,7 @@ def parse_source():
return l10n return l10n
def load_languagefile(filename): def load_languagefile(filename):
return json.load(open(filename)) return json.load(open(filename), strict=False) # accept \t tabs
def write_languagefile(outputfilename, l10n_src, old_l10n_data): def write_languagefile(outputfilename, l10n_src, old_l10n_data):
outputfilename += '.po' outputfilename += '.po'