From 3132cee3dd6f7de3206ca7babde9a1a4f27fa053 Mon Sep 17 00:00:00 2001 From: squidfunk <martin.donath@squidfunk.com> 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 1ce890d9..cef8ea28 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 4774c440..db5827ce 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 331b66d1..04744f71 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 c62553f5..d7c6252a 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 <small>_ January 25, 2018</small> + +* Added Ukrainian translations + ### 2.5.2 <small>_ January 22, 2018</small> * Added default search language mappings for all localizations diff --git a/material/base.html b/material/base.html index 255ad140..3c6ff0b4 100644 --- a/material/base.html +++ b/material/base.html @@ -34,7 +34,7 @@ <meta name="lang:{{ key }}" content="{{ lang.t(key) }}"> {% endfor %} <link rel="shortcut icon" href="{{ base_url }}/{{ config.theme.favicon }}"> - <meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-2.5.2"> + <meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-2.5.3"> {% 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 00000000..4585f00f --- /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 9e9587e8..6769e5da 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 00000000..298afeef --- /dev/null +++ b/src/partials/language/uk.html @@ -0,0 +1,43 @@ +<!-- + Copyright (c) 2016-2018 Martin Donath <martin.donath@squidfunk.com> + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. +--> + +<!-- Translation: Ukrainian --> +{% 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 %} -- GitLab