From fe42b2f7e1fde44dfee85a37059c19fd0809330d Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 26 Oct 2018 13:15:41 +0200 Subject: [PATCH] Prepare 3.0.6 release --- CHANGELOG | 3 +- README.md | 2 +- docs/getting-started.md | 5 ++++ docs/index.md | 2 +- material/base.html | 2 +- material/partials/language/zh-TW.html | 20 +++++++++++++ package.json | 2 +- src/partials/language/zh-TW.html | 43 +++++++++++++++++++++++++++ 8 files changed, 74 insertions(+), 5 deletions(-) create mode 100644 material/partials/language/zh-TW.html create mode 100644 src/partials/language/zh-TW.html diff --git a/CHANGELOG b/CHANGELOG index 996210601..10f203f3e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,6 @@ -mkdocs-material-3.x.x (2018-xx-xx) +mkdocs-material-3.0.6 (2018-10-26) + * Added Taiwanese translations * Fixed #906: JavaScript code blocks evaluated in search results mkdocs-material-3.0.5 (2018-10-23) diff --git a/README.md b/README.md index d4e727621..7d5f98b24 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,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 33 + designed to serve your project documentation in a user-friendly way in 34 languages with optimal readability. * Easily customizable primary and accent color, fonts, favicon and logo; diff --git a/docs/getting-started.md b/docs/getting-started.md index 71ea08541..1e3c87a43 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -367,8 +367,13 @@ translations for all template variables and labels in the following languages: + + zh-TW / Chinese (Taiwanese) + tr / Turkish uk / Ukrainian + + vi / Vietnamese Submit a new language diff --git a/docs/index.md b/docs/index.md index 43cf0fe09..624ffff92 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 33 + designed to serve your project documentation in a user-friendly way in 34 languages with optimal readability. * Easily customizable primary and accent color, fonts, favicon and logo; diff --git a/material/base.html b/material/base.html index 2dc3f22b0..cd135ac06 100644 --- a/material/base.html +++ b/material/base.html @@ -36,7 +36,7 @@ {% endfor %} - + {% endblock %} {% block htmltitle %} {% if page and page.meta and page.meta.title %} diff --git a/material/partials/language/zh-TW.html b/material/partials/language/zh-TW.html new file mode 100644 index 000000000..63e1b1c88 --- /dev/null +++ b/material/partials/language/zh-TW.html @@ -0,0 +1,20 @@ +{% macro t(key) %}{{ { + "language": "zh-Hant", + "clipboard.copy": "複製", + "clipboard.copied": "已複製", + "edit.link.title": "編輯此頁", + "footer.previous": "上一頁", + "footer.next": "下一頁", + "meta.comments": "留言", + "meta.source": "來源", + "search.language": "jp", + "search.placeholder": "搜尋", + "search.result.placeholder": "打字進行搜尋", + "search.result.none": "沒有符合的項目", + "search.result.one": "找到 1 個符合的項目", + "search.result.other": "找到 # 個符合的項目", + "search.tokenizer": "[\,\。]+", + "skip.link.title": "跳轉到", + "source.link.title": "前往倉庫", + "toc.title": "本頁目錄" +}[key] }}{% endmacro %} diff --git a/package.json b/package.json index 08022e8e1..30a41c58b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mkdocs-material", - "version": "3.0.5", + "version": "3.0.6", "description": "A Material Design theme for MkDocs", "keywords": [ "mkdocs", diff --git a/src/partials/language/zh-TW.html b/src/partials/language/zh-TW.html new file mode 100644 index 000000000..50348a568 --- /dev/null +++ b/src/partials/language/zh-TW.html @@ -0,0 +1,43 @@ + + + +{% macro t(key) %}{{ { + "language": "zh-Hant", + "clipboard.copy": "複製", + "clipboard.copied": "已複製", + "edit.link.title": "編輯此頁", + "footer.previous": "上一頁", + "footer.next": "下一頁", + "meta.comments": "留言", + "meta.source": "來源", + "search.language": "jp", + "search.placeholder": "搜尋", + "search.result.placeholder": "打字進行搜尋", + "search.result.none": "沒有符合的項目", + "search.result.one": "找到 1 個符合的項目", + "search.result.other": "找到 # 個符合的項目", + "search.tokenizer": "[\,\。]+", + "skip.link.title": "跳轉到", + "source.link.title": "前往倉庫", + "toc.title": "本頁目錄" +}[key] }}{% endmacro %}