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.

models: Add translation tags to ROLE_ID_TO_NAME_MAP.

Tim Abbott19b1ef62d244
diff --git a/zerver/models.py b/zerver/models.py
index abf3304a7a9..ae3beef179b 100644
--- a/zerver/models.py
+++ b/zerver/models.py
@@ -1125,10 +1125,10 @@ class UserProfile(AbstractBaseUser, PermissionsMixin):
)
ROLE_ID_TO_NAME_MAP = {
- ROLE_REALM_OWNER: "Realm owner",
- ROLE_REALM_ADMINISTRATOR: "Realm adminstrator",
- ROLE_MEMBER: "Member",
- ROLE_GUEST: "Guest"
+ ROLE_REALM_OWNER: _("Organization owner"),
+ ROLE_REALM_ADMINISTRATOR: _("Organization adminstrator"),
+ ROLE_MEMBER: _("Member"),
+ ROLE_GUEST: _("Guest"),
}
def get_role_name(self) -> str: