diff options
| -rw-r--r-- | i18n/ru.toml | 32 | ||||
| -rw-r--r-- | templates/index.html | 4 | ||||
| -rw-r--r-- | templates/page.html | 4 |
3 files changed, 37 insertions, 3 deletions
diff --git a/i18n/ru.toml b/i18n/ru.toml new file mode 100644 index 0000000..23b1704 --- /dev/null +++ b/i18n/ru.toml @@ -0,0 +1,32 @@ +language_name = "Русский" # Shown in language picker for multi-language sites. +date_locale = "ru_RU" +full_stop = "." # Used at the end of a sentence. + +# Menu items should match the names in config.extra.menu +Blog = "Блог" +About = "Обо мне" +Posts = "Посты" +Tags = "Метки" +Categories = "Категории" +Contact = "Контакты" +Privacy = "Конфиденциальность" +Sitemap = "Карта сайта" + +Search = "Поиск" +Updated = "Изменено" +Index = "Содержание" +Recent = "Последнее" +Powered_by = "Работает на" +and = "и" +more = "больше" # "...more" read more links +series_parts = "Серия" # $NUMBER_OF_PARTS Part Series : 10 Part Series + +### © $CURRENT_YEAR $SITE_TITLE • Website content is licensed <a rel="noopener" target="_blank" href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>. +copyright_override = '© $CURRENT_YEAR $SITE_TITLE • Контент размещен на условиях <a rel="noopener" target="_blank" href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.' + +### Page not found, maybe moved or not in this language +404_not_found = "Страница не найдена, может быть перемещена или не на этом языке" +### Try searching or +404_try_search = "Попробуйте поиск или" +### go to homepage +404_go_home = "перейти на главную" diff --git a/templates/index.html b/templates/index.html index 802f328..2c9fdfb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -51,7 +51,9 @@ This Template can also be used directly for the index eg: example.com/ or as the {{ page.content | striptags | truncate(length=150) | safe }} {%- elif page.extra.static_thumbnail %} {%- endif %} - <a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">...more</a> + <a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}"> + ...{{ macros::translate(key="more", default="more", i18n=i18n) }} + </a> </div> {%- if config.extra.meta_index.position %} {%- if config.extra.meta_index.position == "bottom" or config.extra.meta_index.position == "both" %} diff --git a/templates/page.html b/templates/page.html index e2a807c..24c628a 100644 --- a/templates/page.html +++ b/templates/page.html @@ -117,7 +117,7 @@ {# Hides the next couple of pages if the current section is more than 3 away from start #} {%- if current_section_index > 3 %} <details> - <summary>More...</summary> + <summary>{{ macros::translate(key="more", default="more", i18n=i18n) | title }}...</summary> </details> <div class="hidden_li"> {%- for inner in sorted_array | slice(start=1, end=(current_section_index - 2)) %} @@ -156,7 +156,7 @@ {%- if current_section_index < num_pages - 4 %} <details> - <summary>More...</summary> + <summary>{{ macros::translate(key="more", default="more", i18n=i18n) | title }}...</summary> </details> <div class="hidden_li"> {%- for inner in sorted_array | slice(start=(current_section_index + 3), end=(num_pages - 1)) %} |
