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: Remove custom _plural handling.

Anders Kaseorg2c3787196da6
diff --git a/zerver/management/commands/makemessages.py b/zerver/management/commands/makemessages.py
index cfe45cc6c67..6e5fe59ac09 100644
--- a/zerver/management/commands/makemessages.py
+++ b/zerver/management/commands/makemessages.py
@@ -266,13 +266,6 @@ class Command(makemessages.Command):
else:
new_strings[k] = old_strings.get(k, "")
- plurals = {k: v for k, v in old_strings.items() if k.endswith("_plural")}
- for plural_key, value in plurals.items():
- components = plural_key.split("_")
- singular_key = "_".join(components[:-1])
- if singular_key in new_strings:
- new_strings[plural_key] = value
-
return new_strings
def write_translation_strings(self, translation_strings: List[str]) -> None: