diff --git a/CHANGELOG b/CHANGELOG index 74179514b77acea7ed2051f1cd47d3e3fcf291ed..122e674318237a4ffb14074f69c1a420eb12c791 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +mkdocs-material-2.7.3 (2018-04-26) + + * Added Finnish translations + mkdocs-material-2.7.2 (2018-04-09) * Fixed rendering issue for details on Edge diff --git a/README.md b/README.md index babd4ac3a2e82a7050bc3190f80d74f26863e01d..080de3634aabc916a792e1fe01b49fe5dc905319 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,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 25 + designed to serve your project documentation in a user-friendly way in 26 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 2c1bd85f5900537408e44bc32903344fd284d216..d48c3cdfcc2343b3347ef4e726d6048196e6fdfe 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -324,32 +324,33 @@ translations for all template variables and labels in the following languages: </tr> <tr> <td><code>en</code> / English</td> + <td><code>fi</code> / Finnish</td> <td><code>fr</code> / French</td> - <td><code>fr</code> / Galician</td> - <td><code>de</code> / German</td> + <td><code>gl</code> / Galician</td> </tr> <tr> + <td><code>de</code> / German</td> <td><code>he</code> / Hebrew</td> <td><code>hu</code> / Hungarian</td> <td><code>it</code> / Italian</td> - <td><code>ja</code> / Japanese</td> </tr> <tr> + <td><code>ja</code> / Japanese</td> <td><code>kr</code> / Korean</td> <td><code>no</code> / Norwegian</td> <td><code>fa</code> / Persian</td> - <td><code>pl</code> / Polish</td> </tr> <tr> + <td><code>pl</code> / Polish</td> <td><code>pt</code> / Portugese</td> <td><code>ru</code> / Russian</td> <td><code>es</code> / Spanish</td> - <td><code>sv</code> / Swedish</td> </tr> <tr> + <td><code>sv</code> / Swedish</td> <td><code>tr</code> / Turkish</td> <td><code>uk</code> / Ukrainian</td> - <td colspan="2"><code>vi</code> / Vietnamese</td> + <td><code>vi</code> / Vietnamese</td> </tr> <tr> <td colspan="2"> diff --git a/docs/index.md b/docs/index.md index a461791c95aab4d9575abec6360b17d4bb63e0ed..982ead1c2476f964e17c606e94355490a8b42c73 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 25 + designed to serve your project documentation in a user-friendly way in 26 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 ec904794c4773e72a35d3ddddb64889db065785a..7a236fc3bdc2d6da8faeaccd99732b73b42f2387 100644 --- a/material/base.html +++ b/material/base.html @@ -36,7 +36,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.7.2"> + <meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-2.7.3"> {% endblock %} {% block htmltitle %} {% if page and page.meta and page.meta.title %} diff --git a/material/partials/language/fi.html b/material/partials/language/fi.html new file mode 100644 index 0000000000000000000000000000000000000000..a5e0d6dae1b5b91e303526d9a79166616987d033 --- /dev/null +++ b/material/partials/language/fi.html @@ -0,0 +1,19 @@ +{% macro t(key) %}{{ { + "language": "fi", + "clipboard.copy": "Kopioi leikepöydälle", + "clipboard.copied": "Kopioitu leikepöydälle", + "edit.link.title": "Muokkaa tätä sivua", + "footer.previous": "Edellinen", + "footer.next": "Seuraava", + "meta.comments": "Kommentit", + "meta.source": "Lähdekodi", + "search.language": "fi", + "search.placeholder": "Hae", + "search.result.placeholder": "Kirjoita aloittaaksesi haun", + "search.result.none": "Ei täsmääviä dokumentteja", + "search.result.one": "1 täsmäävä dokumentti", + "search.result.other": "# täsmäävää dokumenttia", + "skip.link.title": "Hyppää sisältöön", + "source.link.title": "Mene repositoryyn", + "toc.title": "Sisällysluettelo" +}[key] }}{% endmacro %} diff --git a/package.json b/package.json index ed23b674d2431fc0d33a29b0eb0f43fbc45ece3c..0ed52a9a21760c218dc7e9e22f7309625b9d694d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mkdocs-material", - "version": "2.7.2", + "version": "2.7.3", "description": "A Material Design theme for MkDocs", "keywords": [ "mkdocs", diff --git a/src/partials/language/fi.html b/src/partials/language/fi.html new file mode 100644 index 0000000000000000000000000000000000000000..a2ab3da289116276fc49b568c0dacffe6f2dbdc0 --- /dev/null +++ b/src/partials/language/fi.html @@ -0,0 +1,42 @@ +<!-- + 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. +--> + +<!-- Translations: Finnish --> +{% macro t(key) %}{{ { + "language": "fi", + "clipboard.copy": "Kopioi leikepöydälle", + "clipboard.copied": "Kopioitu leikepöydälle", + "edit.link.title": "Muokkaa tätä sivua", + "footer.previous": "Edellinen", + "footer.next": "Seuraava", + "meta.comments": "Kommentit", + "meta.source": "Lähdekodi", + "search.language": "fi", + "search.placeholder": "Hae", + "search.result.placeholder": "Kirjoita aloittaaksesi haun", + "search.result.none": "Ei täsmääviä dokumentteja", + "search.result.one": "1 täsmäävä dokumentti", + "search.result.other": "# täsmäävää dokumenttia", + "skip.link.title": "Hyppää sisältöön", + "source.link.title": "Mene repositoryyn", + "toc.title": "Sisällysluettelo" +}[key] }}{% endmacro %}