mirror of
https://github.com/qgis/QGIS.git
synced 2025-06-20 00:03:07 -04:00
another adaption for ts2appinfo
This commit is contained in:
parent
bb0c629355
commit
9af3c49651
@ -96,7 +96,11 @@ for line in lines:
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user