Redo the translation system (steal from tabi)

This commit is contained in:
daudix
2024-06-20 08:42:24 +03:00
parent 8ae127d4ce
commit 40b1895618
18 changed files with 403 additions and 232 deletions

View File

@ -1,8 +1,10 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ trans(key="tags", lang=lang) }}</h1>
<small>{{ terms | length }} {{ trans(key="tags_in_total", lang=lang) }}</small>
{% set number_of_tags = terms | length %}
<h1>{{ macros_translate::translate(key="tags", default="Tags", language_strings=language_strings) }}</h1>
<small>{{ terms | length }} {{ macros_translate::translate(key="tags_in_total", number=number_of_tags, default="$NUMBER tags in total", language_strings=language_strings) }}
</small>
<br />
<ul class="tags">
{% for tag in terms %}