mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Modify script to accept tabs in language files
This commit is contained in:
parent
7021a1c632
commit
32701175e9
|
@ -52,7 +52,7 @@ def parse_source():
|
|||
return l10n
|
||||
|
||||
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):
|
||||
outputfilename += '.po'
|
||||
|
|
Loading…
Reference in a new issue