mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Fix scripts/reconvert_l10n.py's encodings on Windows
This commit is contained in:
parent
cea0cdae8f
commit
3968d13df9
|
@ -8,7 +8,7 @@ JSON_KEY_TR="tr"
|
||||||
JSON_KEY_CO="context"
|
JSON_KEY_CO="context"
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
po = polib.pofile(open(sys.argv[1]).read())
|
po = polib.pofile(open(sys.argv[1], encoding='utf-8').read())
|
||||||
translations = []
|
translations = []
|
||||||
|
|
||||||
for entry in po:
|
for entry in po:
|
||||||
|
@ -24,7 +24,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
json.dump(
|
json.dump(
|
||||||
result,
|
result,
|
||||||
open(sys.argv[1] + '.json', 'w'),
|
open(sys.argv[1] + '.json', 'w', encoding='utf-8'),
|
||||||
ensure_ascii=False,
|
ensure_ascii=False,
|
||||||
indent="\t",
|
indent="\t",
|
||||||
separators=(',', ': '),
|
separators=(',', ': '),
|
||||||
|
|
Loading…
Reference in a new issue