Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

makemessages: Annihilate opposing \\n kludges.

Anders Kaseorgd0c13736c72b
diff --git a/zerver/management/commands/makemessages.py b/zerver/management/commands/makemessages.py
index 4fa5af8cb9d..4cd0fb2fba4 100644
--- a/zerver/management/commands/makemessages.py
+++ b/zerver/management/commands/makemessages.py
@@ -169,7 +169,6 @@ class Command(makemessages.Command):
for match in regex.findall(data):
match = match.strip()
match = " ".join(line.strip() for line in match.splitlines())
- match = match.replace("\n", "\\n")
translation_strings.append(match)
return translation_strings
@@ -247,7 +246,6 @@ class Command(makemessages.Command):
"""
new_strings = {} # Dict[str, str]
for k in translation_strings:
- k = k.replace("\\n", "\n")
if locale == "en":
# For English language, translation is equal to the key.
new_strings[k] = old_strings.get(k, k)