diff --git a/CHANGELOG b/CHANGELOG index 04d4b5148..12ff26712 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 18d77521e..744628af2 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 c858d0594..134ec9a38 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 _ October 26, 2017 + +* Added Italian, Norwegian, French and Chinese translations + ### 1.12.1 _ October 22, 2017 * Added Polish, Swedish and Spanish translations diff --git a/material/base.html b/material/base.html index 249dc20f7..d46ef0924 100644 --- a/material/base.html +++ b/material/base.html @@ -35,7 +35,7 @@ {% else %} {% endif %} - + {% 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 000000000..fab364441 --- /dev/null +++ b/material/partials/hero.html @@ -0,0 +1,2 @@ +
+
diff --git a/material/partials/language/fr.html b/material/partials/language/fr.html new file mode 100644 index 000000000..87d7faa99 --- /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 000000000..d9fe6fe74 --- /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 000000000..63484a972 --- /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 000000000..f13eca9be --- /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 000000000..84c77d43c --- /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 f9d3ec775..a1a7df3e2 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",