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.

compilemessages: Weblate's Language-Team uses <>.

Alex Vandiver4c2cf4dca8b5
diff --git a/zerver/management/commands/compilemessages.py b/zerver/management/commands/compilemessages.py
index f58687bd95a..f8682e196a2 100644
--- a/zerver/management/commands/compilemessages.py
+++ b/zerver/management/commands/compilemessages.py
@@ -68,7 +68,7 @@ class Command(compilemessages.Command):
def get_name_from_po_file(self, po_filename: str, locale: str) -> str:
try:
team = polib.pofile(po_filename).metadata["Language-Team"]
- return team[: team.rindex(" (")]
+ return team[: team.rindex(" <")]
except (KeyError, ValueError):
raise Exception(f"Unknown language {locale}")