From f5d32f6032ea172d0f1076b1fa04c96c9205285b Mon Sep 17 00:00:00 2001 From: Jieiku Date: Tue, 26 Sep 2023 18:46:53 -0700 Subject: i18n translation system refactor --- templates/categories/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/categories/list.html') diff --git a/templates/categories/list.html b/templates/categories/list.html index 641fcc4..506613c 100644 --- a/templates/categories/list.html +++ b/templates/categories/list.html @@ -20,7 +20,7 @@ {%- block content %}
-

{{ terms | length }} {%- if lang != config.default_language %} {{ trans(key="Categories" | safe, lang=lang) }} {% else %} Categories {% endif %}

+

{{ terms | length }} {{ macros::translate(key="Categories", default="Categories", i18n=i18n) }}

{% for term in terms %} [{{ term.name }}]{{ term.pages | length }} {% endfor %}

{%- for term in terms %} -- cgit v1.3.1