Skip to content

Commit

Permalink
another adaption for ts2appinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Oct 1, 2018
1 parent bb0c629 commit 9af3c49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/ts2appinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@

t = line.strip()[len(prefix) + 1:]
for lang in strings[t]:
f.write("{}[{}]={}\n".format(prefix, lang, strings[t][lang].decode("utf-8")))
l = "{}[{}]={}\n".format(prefix, lang, strings[t][lang])
try:
f.write(l.decode("utf-8"))
except AttributeError:
f.write(l)

elif line.startswith(prefix + "["):
skip = True
Expand Down

0 comments on commit 9af3c49

Please sign in to comment.