summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-31 20:02:11 +0100
committerChristian Grothoff <christian@grothoff.org>2020-10-31 20:02:11 +0100
commit06e8dc517d55690a672d4f32452b34297adb5b0a (patch)
tree2a64dfda2cd1563eec9af71921048f87dd998ad8
parent02ab90f3f74a29d36be6db068ad15f8f1262d264 (diff)
downloadwww-06e8dc517d55690a672d4f32452b34297adb5b0a.tar.gz
www-06e8dc517d55690a672d4f32452b34297adb5b0a.tar.bz2
www-06e8dc517d55690a672d4f32452b34297adb5b0a.zip
only show languages other than the currently selected one
-rw-r--r--common/navigation.j2.inc6
-rw-r--r--locale/messages.pot2
2 files changed, 7 insertions, 1 deletions
diff --git a/common/navigation.j2.inc b/common/navigation.j2.inc
index 70431e6..c56f8d1 100644
--- a/common/navigation.j2.inc
+++ b/common/navigation.j2.inc
@@ -39,9 +39,15 @@
{{ lang_full }} [{{ lang }}]
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
+ {% if lang != 'en' %}
<li><a class="dropdown-item" href="{{ self_localized('en') }}">English [en]</a></li>
+ {% endif %}
+ {% if lang != 'de' %}
<li><a class="dropdown-item" href="{{ self_localized('de') }}">Deutsch [de]</a></li>
+ {% endif %}
+ {% if lang != 'es' %}
<li><a class="dropdown-item" href="{{ self_localized('es') }}">Espa&ntilde;ol [es]</a></li>
+ {% endif %}
<!--
<li><a class="dropdown-item" href="{{ self_localized('fr') }}">Fran&ccedil;ais [fr]</a></li>
<li><a class="dropdown-item" href="{{ self_localized('it') }}">Italiano [it]</a></li>
diff --git a/locale/messages.pot b/locale/messages.pot
index a0abb4a..6581795 100644
--- a/locale/messages.pot
+++ b/locale/messages.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2020-10-30 09:26+0100\n"
+"POT-Creation-Date: 2020-10-31 20:01+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"