From 105232b9edcb3c39862d7205e18c0fd2baaa06ec Mon Sep 17 00:00:00 2001 From: southerntofu Date: Tue, 2 Feb 2021 20:01:02 +0100 Subject: [PATCH] Don't display translation for the current language --- templates/widgets.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/widgets.html b/templates/widgets.html index 898562c..e879fee 100644 --- a/templates/widgets.html +++ b/templates/widgets.html @@ -61,7 +61,7 @@ Separate entries with a thematic break: {%- endmacro i18n_url -%} {% macro translations(translations) %} -({{ lang }}) {% for t in translations %}{{ t.lang }}{% endfor %} +({{ lang }}){% for t in translations %}{% if lang != t.lang %} {{ t.lang }}{% endif %}{% endfor %} {% endmacro translations %} {%- macro strip_lang_from_path(path, lang) -%}