From 4eb74193351c2639eea37f40b8216e55bfbc3d7c Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 13 Jun 2017 11:54:28 +0100 Subject: [PATCH] Don't put in spurious newline --- scripts/copy-i18n.py | 7 ++++--- src/i18n/strings/pt.json | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/copy-i18n.py b/scripts/copy-i18n.py index c3b8d6072e..07b1271239 100755 --- a/scripts/copy-i18n.py +++ b/scripts/copy-i18n.py @@ -38,9 +38,10 @@ with open(dstpath) as ifp: elif strippedline.endswith(','): ofp.write(line) else: - ofp.write(' '+strippedline) - ofp.write(",\n") - toAddStr = json.dumps(toAdd, indent=4, separators=(',', ': '), ensure_ascii=False, encoding="utf8")[1:-1] + ofp.write(' '+strippedline+',') + toAddStr = json.dumps(toAdd, indent=4, separators=(',', ': '), ensure_ascii=False, encoding="utf8").strip("{}\n") + ofp.write("\n") ofp.write(toAddStr.encode('utf8')) + ofp.write("\n") os.rename(tmppath, dstpath) diff --git a/src/i18n/strings/pt.json b/src/i18n/strings/pt.json index 356aab5e02..a8dd8758d4 100644 --- a/src/i18n/strings/pt.json +++ b/src/i18n/strings/pt.json @@ -872,7 +872,6 @@ "You have disabled URL previews by default.": "Você desabilitou pré-visualizações de links por padrão.", "You have enabled URL previews by default.": "Você habilitou pré-visualizações de links por padrão.", "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.", - "You have been banned from %(roomName)s by %(userName)s.": "Você foi expulso(a) da sala %(roomName)s por %(userName)s.", "Send anyway": "Enviar de qualquer maneira", "This room": "Esta sala",