From cb8dc451a83840f4f0a88ee0362d14b50fdf50bb Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Fri, 18 Jul 2025 04:33:52 +0000 Subject: [PATCH] compilemessages: Weblate's Language-Team uses <>. (cherry picked from commit 4c2cf4dca8b5d85820fa218636d8b8a36fcbc9e0) --- zerver/management/commands/compilemessages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/management/commands/compilemessages.py b/zerver/management/commands/compilemessages.py index 9314c238a9..fbd5e43123 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}")