Skip to content

Commit 9af3c49

Browse files
committedOct 1, 2018
another adaption for ts2appinfo
1 parent bb0c629 commit 9af3c49

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎scripts/ts2appinfo.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@
9696

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

101105
elif line.startswith(prefix + "["):
102106
skip = True

0 commit comments

Comments
 (0)
Please sign in to comment.