Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 431b482

Browse files
committed
Don't put in spurious newline
1 parent aab8723 commit 431b482

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/copy-i18n.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@
3838
elif strippedline.endswith(','):
3939
ofp.write(line)
4040
else:
41-
ofp.write(' '+strippedline)
42-
ofp.write(",\n")
43-
toAddStr = json.dumps(toAdd, indent=4, separators=(',', ': '), ensure_ascii=False, encoding="utf8")[1:-1]
41+
ofp.write(' '+strippedline+',')
42+
toAddStr = json.dumps(toAdd, indent=4, separators=(',', ': '), ensure_ascii=False, encoding="utf8").strip("{}\n")
43+
ofp.write("\n")
4444
ofp.write(toAddStr.encode('utf8'))
45+
ofp.write("\n")
4546

4647
os.rename(tmppath, dstpath)

src/i18n/strings/pt.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,6 @@
876876
"You have <a>disabled</a> URL previews by default.": "Você <a>desabilitou</a> pré-visualizações de links por padrão.",
877877
"You have <a>enabled</a> URL previews by default.": "Você <a>habilitou</a> pré-visualizações de links por padrão.",
878878
"You have entered an invalid contact. Try using their Matrix ID or email address.": "Você inseriu um contato inválido. Tente usar o ID Matrix ou endereço de e-mail da pessoa que está buscando.",
879-
880879
"You have been banned from %(roomName)s by %(userName)s.": "Você foi expulso(a) da sala %(roomName)s por %(userName)s.",
881880
"Send anyway": "Enviar de qualquer maneira",
882881
"This room": "Esta sala",

0 commit comments

Comments
 (0)