diff --git a/templates/zerver/accounts_home.html b/templates/zerver/accounts_home.html index be95e9038f..8644f6c72f 100644 --- a/templates/zerver/accounts_home.html +++ b/templates/zerver/accounts_home.html @@ -25,7 +25,7 @@ page can be easily identified in it's respective JavaScript file -->
- {% trans %}New members cannot currently join {{ realm_name }} because all Zulip Cloud licenses are in use.{% endtrans %} + {% trans %}New members cannot currently join {{ realm_name }} because all Zulip Cloud licenses are in use.{% endtrans %}
{{ _("Please contact the person who invited you and ask them to increase the number of licenses, then try again.") }} diff --git a/templates/zerver/register.html b/templates/zerver/register.html index 851af234a9..fd8316d48a 100644 --- a/templates/zerver/register.html +++ b/templates/zerver/register.html @@ -73,7 +73,7 @@ Form is validated both client-side using jquery-validation (see signup.js) and s
{% trans %} You've successfully unsubscribed from Zulip {{ subscription_type }} emails for - {{ realm_name }}. + {{ realm_name }}. {% endtrans %}
@@ -26,7 +26,7 @@{% trans %} You can undo this change or review your preferences in your - notification settings. + notification settings. {% endtrans %}
{% endif %} diff --git a/zerver/context_processors.py b/zerver/context_processors.py index 45ac6e81fd..1c93ce2ffb 100644 --- a/zerver/context_processors.py +++ b/zerver/context_processors.py @@ -118,11 +118,11 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]: realm = get_realm_from_request(request) if realm is None: - realm_uri = settings.ROOT_DOMAIN_URI + realm_url = settings.ROOT_DOMAIN_URI realm_name = None realm_icon = None else: - realm_uri = realm.url + realm_url = realm.url realm_name = realm.name realm_icon = get_realm_icon_url(realm) @@ -190,8 +190,7 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]: "only_sso": settings.ONLY_SSO, "external_host": settings.EXTERNAL_HOST, "external_url_scheme": settings.EXTERNAL_URI_SCHEME, - "realm_uri": realm_uri, - "realm_url": realm_uri, + "realm_url": realm_url, "realm_name": realm_name, "realm_icon": realm_icon, "root_domain_url": settings.ROOT_DOMAIN_URI, @@ -218,9 +217,9 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]: "corporate_enabled": corporate_enabled, } - context["PAGE_METADATA_URL"] = f"{realm_uri}{request.path}" + context["PAGE_METADATA_URL"] = f"{realm_url}{request.path}" if realm is not None and realm.icon_source == realm.ICON_UPLOADED: - context["PAGE_METADATA_IMAGE"] = urljoin(realm_uri, realm_icon) + context["PAGE_METADATA_IMAGE"] = urljoin(realm_url, realm_icon) return context