mirror of
https://github.com/NetworkCats/rustyip.git
synced 2026-11-19 00:17:15 +00:00
Replace all {{ t_field_name }} template variables with {{ "msgid"|t(locale) }}
filter calls across all 6 template files. This works with the #[askama::filter_fn]
defined in handlers/html.rs, which calls i18n::translate() directly.
Templates updated: index.html, error_alert.html, error_page.html,
_footer.html, _footer_lang.html, _search_form.html
8 lines
481 B
HTML
8 lines
481 B
HTML
<div class="footer-lang">
|
|
<label for="lang-select" class="sr-only">{{ "Language"|t(locale) }}</label>
|
|
<select id="lang-select" class="lang-select" autocomplete="off" onchange="if(this.value){var u=new(window.URL)(this.value,window.location.origin);u.search=window.location.search;window.location.href=u.href}">
|
|
{% for l in all_locales %}
|
|
<option value="/{{ l.tag() }}"{% if *l == locale %} selected{% endif %}>{{ l.name() }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div> |