aboutsummaryrefslogtreecommitdiff
path: root/templates/404.html
diff options
context:
space:
mode:
authorGleb Chipiga2024-08-11 00:25:31 +0500
committerGleb Chipiga2024-08-11 00:25:31 +0500
commit85c175777a211611ff783d86f1543faaf2e82f0c (patch)
tree4872b12314f6039209830930bf7027ed4cc062cb /templates/404.html
parentab91b5c742b65826407cb2c6695a07947f88df28 (diff)
downloadabridge-85c175777a211611ff783d86f1543faaf2e82f0c.tar.gz
abridge-85c175777a211611ff783d86f1543faaf2e82f0c.tar.bz2
abridge-85c175777a211611ff783d86f1543faaf2e82f0c.zip
Fix 404 page translation
Diffstat (limited to 'templates/404.html')
-rw-r--r--templates/404.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/404.html b/templates/404.html
index 40fb731..8c42866 100644
--- a/templates/404.html
+++ b/templates/404.html
@@ -32,5 +32,8 @@
<p>{{ macros::translate(key="404_not_found", default="404_not_found", i18n=i18n_404) }}{{ macros::translate(key="full_stop", default=".", i18n=i18n_404) }} {% if config.build_search_index %}{{ macros::translate(key="404_try_search", default="Try searching or", i18n=i18n_404) }}{% endif %} <a href="{{ config.base_url }}/{{ lcode }}/{%- if uglyurls %}index.html{%- endif %}">{{ macros::translate(key="404_go_home", default="go to homepage", i18n=i18n_404) }}</a>{{ macros::translate(key="full_stop", default=".", i18n=i18n_404) }}</p>
{%- endif -%}
{%- endfor -%}
+ {% if config.default_language != "en" %}
+ <p>{{ macros::translate(key="404_not_found", default="404_not_found", i18n=i18n) }}{{ macros::translate(key="full_stop", default=".", i18n=i18n) }} {% if config.build_search_index %}{{ macros::translate(key="404_try_search", default="Try searching or", i18n=i18n) }}{% endif %} <a href="{{ config.base_url }}/{%- if uglyurls %}index.html{%- endif %}">{{ macros::translate(key="404_go_home", default="go to homepage", i18n=i18n) }}</a>{{ macros::translate(key="full_stop", default=".", i18n=i18n) }}</p>
+ {% endif %}
</div>
{%- endblock content %}