diff --git a/CHANGELOG b/CHANGELOG index 1ce890d9a0ab050a18531139354c67a920b6c2f0..cef8ea28c273b2668efa77c32e0a04b59ef942dd 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 4774c44029b136de5e28a18e486c730b6ff87c95..db5827ce5413d8b1610d17fc545c181aa3996c77 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 331b66d1002f66988198c3083661cd117baa70b2..04744f71901b96c311f09c663024048993b9ea16 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 c62553f5b3e1c09ddffea266d4abe297898530c6..d7c6252a5cf2b632eb8c4111f36b605fb0117723 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 255ad140b74fb267758ba7f07eb90495087f919a..3c6ff0b4caa4171661e604a4b82b43ebfdd31c59 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 0000000000000000000000000000000000000000..4585f00ff8b9ec77510202375097cd9d6360b722 --- /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 9e9587e8b7981eb397d73c890283654c04794ce6..6769e5dab6a5a3ca4a971cbce3619d9b5ca72e28 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 0000000000000000000000000000000000000000..298afeefad74feb9e9896de561f4d3a84f47c34e --- /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 %}