From 4107aceab1d22cc4614afaa3d0779d4aee3469b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sat, 20 Feb 2021 17:49:03 +0300 Subject: Translated to Russian and Spanish Translated all templates so that the site is available in Russian and Spanish once more. I am still not committed to write/translate everything in three different languages, but there have been some things that I've been meaning to write in Russian. --- templates/page.html | 52 ++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 40 insertions(+), 12 deletions(-) (limited to 'templates/page.html') diff --git a/templates/page.html b/templates/page.html index a442437..06dca0b 100644 --- a/templates/page.html +++ b/templates/page.html @@ -9,18 +9,46 @@ {% endif %} {% endblock %} {% block header %} -

{{ page.title }}

-

Published {{ page.date | date(format="%b %d, %Y - %H:%M UTC") }} on - {% if page.permalink is containing("weblog") %} - Yaroslav's weblog

- {% elif page.permalink is containing("food") %} - Yaroslav's recipe book

- {% endif %} - {% if page.updated %} -

Last edited {{ page.updated | date(format="%b %d, %Y - %H:%M UTC") }}

- {% endif %} +

{{ page.title }}

+

+ {{ trans(key="published", lang=lang) }} + {{ page.date | date(format="%Y-%m-%d %H:%M UTC") }} + {{ trans(key="published_on", lang=lang) }} + {% if page.permalink is containing("weblog") %} + + {{ trans(key="weblog_title", lang=lang) }} + + {% elif page.permalink is containing("food") %} + + {{ trans(key="recipes_title", lang=lang) }} +

+ {% endif %} +

+{% if page.updated %} +

+ {{ trans(key="edited", lang=lang) }} + {{ page.updated | date(format="%Y-%m-%d %H:%M UTC") }} +

+{% endif %} +{% if page.translations | length > 1 %} +{% for trans in page.translations %} +{% if trans.lang != lang %} +{% if trans.lang == "ru" %} +

+ Доступно на русском: {{ trans.title }} +

+{% elif trans.lang == "es" %} +

+ Disponible en español: {{ trans.title }} +

+{% else %} +

+ Available in English: {{ trans.title }} +

+{% endif %} +{% endif %} +{% endfor %} +{% endif %} {% endblock %} {% block content %}
-- cgit v1.2.3