Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compilemessages: Normalize language names to NFC.
Anders Kaseorg14b7d097a0e1
diff --git a/zerver/management/commands/compilemessages.py b/zerver/management/commands/compilemessages.pyindex d9b09a3cc10..4f4d2122fdb 100644--- a/zerver/management/commands/compilemessages.py+++ b/zerver/management/commands/compilemessages.py@@ -1,6 +1,7 @@import jsonimport osimport re+import unicodedatafrom subprocess import CalledProcessError, check_outputfrom typing import Any, Dict, List@@ -129,8 +130,8 @@ class Command(compilemessages.Command):with override_language(code):name_local = _(name)- info["name"] = name- info["name_local"] = name_local+ info["name"] = unicodedata.normalize("NFC", name)+ info["name_local"] = unicodedata.normalize("NFC", name_local)info["code"] = codeinfo["locale"] = localeinfo["percent_translated"] = percentage