From df0578d2485f79c22da6ad828844f4d6dbabe78c Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Wed, 7 Apr 2021 18:18:15 +0530 Subject: [PATCH 1/4] feat: Show language switcher for guest users on navbar --- frappe/templates/base.html | 31 ++++++++++++++++ frappe/templates/includes/navbar/navbar.html | 3 ++ .../includes/navbar/navbar_items.html | 8 ++--- frappe/translate.py | 36 ++++++++++++++----- 4 files changed, 66 insertions(+), 12 deletions(-) diff --git a/frappe/templates/base.html b/frappe/templates/base.html index c092e76485..ec78050e53 100644 --- a/frappe/templates/base.html +++ b/frappe/templates/base.html @@ -110,5 +110,36 @@ {%- endblock %} {%- block body_include %}{{ body_include or "" }}{% endblock -%} + diff --git a/frappe/templates/includes/navbar/navbar.html b/frappe/templates/includes/navbar/navbar.html index 3ae0aef164..7856413602 100644 --- a/frappe/templates/includes/navbar/navbar.html +++ b/frappe/templates/includes/navbar/navbar.html @@ -21,5 +21,8 @@ +
+ +
diff --git a/frappe/templates/includes/navbar/navbar_items.html b/frappe/templates/includes/navbar/navbar_items.html index 99b7b3aec4..34cc24fe1a 100644 --- a/frappe/templates/includes/navbar/navbar_items.html +++ b/frappe/templates/includes/navbar/navbar_items.html @@ -7,7 +7,7 @@