diff --git a/CHANGELOG b/CHANGELOG index 04d4b51488aeb8a8d8034b0fdb6b16d3950bc973..12ff2671220dd6e5232ff086e3b4060618c58dfb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +mkdocs-material-1.12.2 (2017-10-26) + + * Added Italian, Norwegian, French and Chinese translations + mkdocs-material-1.12.1 (2017-10-22) * Added Polish, Swedish and Spanish translations diff --git a/docs/getting-started.md b/docs/getting-started.md index 18d77521e6b67142bdf4a5ae98eaa46b35e74a50..744628af2dc52c80ea5a773de5d115e689d3c91f 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -379,9 +379,10 @@ automatically included. #### Translations Material for MkDocs supports internationalization (i18n) and provides -translations for all template variables and labels in English `en`, Danish `da`, -German `de`, Polish `pl`, Swedish `sv` and Spanish `es`. Specify the language -with: +translations for all template variables and labels in English `en`, French `fr`, +German `de`, Spanish `es`, Italian `it`, Danish `da`, Polish `pl`, Norwegian +`no`, Swedish `sv`, Chinese (Simplified) `zh` and Chinese (Traditional) +`zh-Hant`. Specify the language with: ``` yaml extra: diff --git a/docs/release-notes.md b/docs/release-notes.md index c858d0594b69236bc129efa9869c9f9d34d2aa1c..134ec9a38ac04771a752d0cc16c10a8b4c68c622 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -12,11 +12,15 @@ To determine the currently installed version, use the following command: ``` sh pip show mkdocs-material | grep -E ^Version -# Version 1.12.1 +# Version 1.12.2 ``` ## Changelog +### 1.12.2 <small>_ October 26, 2017</small> + +* Added Italian, Norwegian, French and Chinese translations + ### 1.12.1 <small>_ October 22, 2017</small> * Added Polish, Swedish and Spanish translations diff --git a/material/base.html b/material/base.html index 249dc20f736916399d01471c1c7d824ecd48d2cb..d46ef09242806485a6af76f0356c6e5a2f237cf6 100644 --- a/material/base.html +++ b/material/base.html @@ -35,7 +35,7 @@ {% else %} <link rel="shortcut icon" href="{{ base_url }}/assets/images/favicon.png"> {% endif %} - <meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-1.12.1"> + <meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-1.12.2"> {% endblock %} {% block htmltitle %} {% if page and page.meta.title %} diff --git a/material/partials/hero.html b/material/partials/hero.html new file mode 100644 index 0000000000000000000000000000000000000000..fab364441fe143e598add4336bc88de60f186ed0 --- /dev/null +++ b/material/partials/hero.html @@ -0,0 +1,2 @@ +<div class="md-hero"> +</div> diff --git a/material/partials/language/fr.html b/material/partials/language/fr.html new file mode 100644 index 0000000000000000000000000000000000000000..87d7faa99fd2100f2c784ceb7f59c6598ba71f64 --- /dev/null +++ b/material/partials/language/fr.html @@ -0,0 +1,18 @@ +{% macro t(key) %}{{ { + "language": "fr", + "clipboard.copy": "Copier dans le presse-papier", + "clipboard.copied": "Copié dans le presse-papier", + "edit.link.title": "Editer cette page", + "footer.previous": "Précédent", + "footer.next": "Suivant", + "meta.comments": "Commentaires", + "meta.source": "Source", + "search.placeholder": "Rechercher", + "search.result.placeholder": "Taper pour démarrer la recherche", + "search.result.none": "Aucun document trouvé", + "search.result.one": "1 document trouvé", + "search.result.other": "# documents trouvés", + "search.tokenizer": "[\s\-]+", + "source.link.title": "Aller au dépôt", + "toc.title": "Table des matières" +}[key] }}{% endmacro %} diff --git a/material/partials/language/it.html b/material/partials/language/it.html new file mode 100644 index 0000000000000000000000000000000000000000..d9fe6fe745be83be155c96999250cbfc8c254751 --- /dev/null +++ b/material/partials/language/it.html @@ -0,0 +1,18 @@ +{% macro t(key) %}{{ { + "language": "it", + "clipboard.copy": "Copia", + "clipboard.copied": "Copiato", + "edit.link.title": "Modifica", + "footer.previous": "Precedente", + "footer.next": "Prossimo", + "meta.comments": "Commenti", + "meta.source": "Sorgente", + "search.placeholder": "Cerca", + "search.result.placeholder": "Scrivi per iniziare a cercare", + "search.result.none": "Nessun documento trovato", + "search.result.one": "1 documento trovato", + "search.result.other": "# documenti trovati", + "search.tokenizer": "[\s\-]+", + "source.link.title": "Apri repository", + "toc.title": "Indice" +}[key] }}{% endmacro %} diff --git a/material/partials/language/no.html b/material/partials/language/no.html new file mode 100644 index 0000000000000000000000000000000000000000..63484a9726bb7b96e35b4e03e85c90649e51586c --- /dev/null +++ b/material/partials/language/no.html @@ -0,0 +1,18 @@ +{% macro t(key) %}{{ { + "language": "no", + "clipboard.copy": "Kopier til utklippstavlen", + "clipboard.copied": "Kopiert til utklippstavlen", + "edit.link.title": "Rediger denne siden", + "footer.previous": "Forrige", + "footer.next": "Neste", + "meta.comments": "Kommentarer", + "meta.source": "Kilde", + "search.placeholder": "Søk", + "search.result.placeholder": "Skriv søkeord", + "search.result.none": "Ingen treff", + "search.result.one": "1 treff", + "search.result.other": "# treff", + "search.tokenizer": "[\s\-]+", + "source.link.title": "Gå til kilde", + "toc.title": "Innholdsfortegnelse" +}[key] }}{% endmacro %} diff --git a/material/partials/language/zh-Hant.html b/material/partials/language/zh-Hant.html new file mode 100644 index 0000000000000000000000000000000000000000..f13eca9be8e212c0ea9e94d511c31f558a501747 --- /dev/null +++ b/material/partials/language/zh-Hant.html @@ -0,0 +1,18 @@ +{% macro t(key) %}{{ { + "language": "zh-Hant", + "clipboard.copy": "拷貝", + "clipboard.copied": "已拷貝", + "edit.link.title": "編輯此頁", + "footer.previous": "前進", + "footer.next": "後退", + "meta.comments": "評論", + "meta.source": "來源", + "search.placeholder": "搜尋", + "search.result.placeholder": "鍵入以開始檢索", + "search.result.none": "沒有找到符合條件的結果", + "search.result.one": "找到 1 个符合條件的結果", + "search.result.other": "# 個符合條件的結果", + "search.tokenizer": "[\,\。]+", + "source.link.title": "前往 Github 倉庫", + "toc.title": "目錄" +}[key] }}{% endmacro %} diff --git a/material/partials/language/zh.html b/material/partials/language/zh.html new file mode 100644 index 0000000000000000000000000000000000000000..84c77d43c8e33d771910b043762e5e8d4b0aae21 --- /dev/null +++ b/material/partials/language/zh.html @@ -0,0 +1,18 @@ +{% macro t(key) %}{{ { + "language": "zh", + "clipboard.copy": "复制", + "clipboard.copied": "已复制", + "edit.link.title": "编辑此页", + "footer.previous": "后退", + "footer.next": "前进", + "meta.comments": "评论", + "meta.source": "来源", + "search.placeholder": "搜索", + "search.result.placeholder": "键入以开始搜索", + "search.result.none": "没有找到符合条件的结果", + "search.result.one": "找到 1 个符合条件的结果", + "search.result.other": "# 个符合条件的结果", + "search.tokenizer": "[\,\。]+", + "source.link.title": "前往 Github 仓库", + "toc.title": "目录" +}[key] }}{% endmacro %} diff --git a/package.json b/package.json index f9d3ec7754124a5b3ce013faf9eae2c523303418..a1a7df3e220912cccacc844f356bc66e5196f549 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mkdocs-material", - "version": "1.12.1", + "version": "1.12.2", "description": "A Material Design theme for MkDocs", "keywords": [ "mkdocs",