mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
compilemessages: Weblate's Language-Team uses <>.
(cherry picked from commit 4c2cf4dca8)
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user