From 3132cee3dd6f7de3206ca7babde9a1a4f27fa053 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Thu, 25 Jan 2018 19:29:56 +0100 Subject: [PATCH] Added Ukrainian translations --- CHANGELOG | 4 +++ docs/getting-started.md | 4 +-- docs/index.md | 2 +- docs/release-notes.md | 6 ++++- material/base.html | 2 +- material/partials/language/uk.html | 20 ++++++++++++++ package.json | 2 +- src/partials/language/uk.html | 43 ++++++++++++++++++++++++++++++ 8 files changed, 77 insertions(+), 6 deletions(-) create mode 100644 material/partials/language/uk.html create mode 100644 src/partials/language/uk.html diff --git a/CHANGELOG b/CHANGELOG index 1ce890d9a..cef8ea28c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +mkdocs-material-2.5.3 (2017-01-25) + + * Added Ukrainian translations + mkdocs-material-2.5.2 (2017-01-22) * Added default search language mappings for all localizations diff --git a/docs/getting-started.md b/docs/getting-started.md index 4774c4402..db5827ce5 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -305,8 +305,8 @@ Material for MkDocs supports internationalization (i18n) and provides translations for all template variables and labels in English `en`, French `fr`, German `de`, Spanish `es`, Italian `it`, Danish `da`, Portugese `pt`, Polish `pl`, Norwegian `no`, Dutch `nl`, Swedish `sv`, Korean `kr`, -Russian `ru`, Japanese `ja`, Chinese (Simplified) `zh` and Chinese (Traditional) -`zh-Hant`. Specify the language with: +Russian `ru`, Ukranian `uk`, Japanese `ja`, Chinese (Simplified) `zh` and +Chinese (Traditional) `zh-Hant`. Specify the language with: ``` yaml theme: diff --git a/docs/index.md b/docs/index.md index 331b66d10..04744f719 100644 --- a/docs/index.md +++ b/docs/index.md @@ -29,7 +29,7 @@ theme: ## What to expect * Responsive design and fluid layout for all kinds of screens and devices, - designed to serve your project documentation in a user-friendly way in 17 + designed to serve your project documentation in a user-friendly way in 18 languages with optimal readability. * Easily customizable primary and accent color, fonts, favicon and logo; diff --git a/docs/release-notes.md b/docs/release-notes.md index c62553f5b..d7c6252a5 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -12,7 +12,7 @@ To determine the currently installed version, use the following command: ``` sh pip show mkdocs-material | grep -E ^Version -# Version 2.5.2 +# Version 2.5.3 ``` ### Material 1.x to 2.x @@ -38,6 +38,10 @@ pip show mkdocs-material | grep -E ^Version ## Changelog +### 2.5.3 _ January 25, 2018 + +* Added Ukrainian translations + ### 2.5.2 _ January 22, 2018 * Added default search language mappings for all localizations diff --git a/material/base.html b/material/base.html index 255ad140b..3c6ff0b4c 100644 --- a/material/base.html +++ b/material/base.html @@ -34,7 +34,7 @@ {% endfor %} - + {% endblock %} {% block htmltitle %} {% if page and page.meta and page.meta.title %} diff --git a/material/partials/language/uk.html b/material/partials/language/uk.html new file mode 100644 index 000000000..4585f00ff --- /dev/null +++ b/material/partials/language/uk.html @@ -0,0 +1,20 @@ +{% macro t(key) %}{{ { + "language": "uk", + "clipboard.copy": "Скопіювати в буфер", + "clipboard.copied": "Скопійовано в буфер", + "edit.link.title": "Редагувати сторінку", + "footer.previous": "Назад", + "footer.next": "Вперед", + "meta.comments": "Коментарі", + "meta.source": "Вихідний код", + "search.language": "ru", + "search.placeholder": "Пошук", + "search.result.placeholder": "Розпочніть писати для пошуку", + "search.result.none": "Збігів не знайдено", + "search.result.one": "Знайдено 1 збіг", + "search.result.other": "Знайдено # збігів", + "search.tokenizer": "[\s\-]+", + "skip.link.title": "Перейти до змісту", + "source.link.title": "Перейти до репозиторію", + "toc.title": "Зміст" +}[key] }}{% endmacro %} diff --git a/package.json b/package.json index 9e9587e8b..6769e5dab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mkdocs-material", - "version": "2.5.2", + "version": "2.5.3", "description": "A Material Design theme for MkDocs", "keywords": [ "mkdocs", diff --git a/src/partials/language/uk.html b/src/partials/language/uk.html new file mode 100644 index 000000000..298afeefa --- /dev/null +++ b/src/partials/language/uk.html @@ -0,0 +1,43 @@ + + + +{% macro t(key) %}{{ { + "language": "uk", + "clipboard.copy": "Скопіювати в буфер", + "clipboard.copied": "Скопійовано в буфер", + "edit.link.title": "Редагувати сторінку", + "footer.previous": "Назад", + "footer.next": "Вперед", + "meta.comments": "Коментарі", + "meta.source": "Вихідний код", + "search.language": "ru", + "search.placeholder": "Пошук", + "search.result.placeholder": "Розпочніть писати для пошуку", + "search.result.none": "Збігів не знайдено", + "search.result.one": "Знайдено 1 збіг", + "search.result.other": "Знайдено # збігів", + "search.tokenizer": "[\s\-]+", + "skip.link.title": "Перейти до змісту", + "source.link.title": "Перейти до репозиторію", + "toc.title": "Зміст" +}[key] }}{% endmacro %}