Added Serbian and Serbo-Croatian translations

This commit is contained in:
squidfunk 2018-08-04 20:35:14 +02:00
parent 159575bbe9
commit fd75fa8eb7
16 changed files with 144 additions and 3904 deletions

View File

@ -1,6 +1,7 @@
mkdocs-material-3.0.0 (2018-08-xx)
* Upgraded MkDocs to 1.0
* Added Serbian and Serbo-Croatian translations
mkdocs-material-2.9.4 (2018-07-29)

View File

@ -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 29
designed to serve your project documentation in a user-friendly way in 31
languages with optimal readability.
* Easily customizable primary and accent color, fonts, favicon and logo;

View File

@ -348,9 +348,15 @@ translations for all template variables and labels in the following languages:
</tr>
<tr>
<td><code>ru</code> / Russian</td>
<td><code>sr</code> / Serbian</td>
<td><code>sr</code> / Serbo-Croatian</td>
<td><code>sk</code> / Slovak</td>
</tr>
<tr>
<td><code>es</code> / Spanish</td>
<td><code>sv</code> / Swedish</td>
<td><code>tr</code> / Turkish</td>
<td><code>uk</code> / Ukrainian</td>
</tr>
<tr>
<td colspan="2">
@ -361,10 +367,8 @@ translations for all template variables and labels in the following languages:
</td>
</tr>
<tr>
<td><code>tr</code> / Turkish</td>
<td><code>uk</code> / Ukrainian</td>
<td><code>vi</code> / Vietnamese</td>
<td align="right">
<td colspan="3" align="right">
<a href="http://bit.ly/2EbzFc8">Submit a new language</a>
</td>
</tr>

View File

@ -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 29
designed to serve your project documentation in a user-friendly way in 31
languages with optimal readability.
* Easily customizable primary and accent color, fonts, favicon and logo;

View File

@ -1,20 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="352" height="448"
viewBox="0 0 352 448" id="__bitbucket">
<path fill="currentColor" d="M203.75 214.75q2 15.75-12.625 25.25t-27.875
1.5q-9.75-4.25-13.375-14.5t-0.125-20.5 13-14.5q9-4.5 18.125-3t16 8.875
6.875 16.875zM231.5 209.5q-3.5-26.75-28.25-41t-49.25-3.25q-15.75
7-25.125 22.125t-8.625 32.375q1 22.75 19.375 38.75t41.375 14q22.75-2
38-21t12.5-42zM291.25
74q-5-6.75-14-11.125t-14.5-5.5-17.75-3.125q-72.75-11.75-141.5 0.5-10.75
1.75-16.5 3t-13.75 5.5-12.5 10.75q7.5 7 19 11.375t18.375 5.5 21.875
2.875q57 7.25 112 0.25 15.75-2 22.375-3t18.125-5.375 18.75-11.625zM305.5
332.75q-2 6.5-3.875 19.125t-3.5 21-7.125 17.5-14.5 14.125q-21.5
12-47.375 17.875t-50.5 5.5-50.375-4.625q-11.5-2-20.375-4.5t-19.125-6.75-18.25-10.875-13-15.375q-6.25-24-14.25-73l1.5-4
4.5-2.25q55.75 37 126.625 37t126.875-37q5.25 1.5 6 5.75t-1.25 11.25-2
9.25zM350.75 92.5q-6.5 41.75-27.75 163.75-1.25 7.5-6.75 14t-10.875
10-13.625 7.75q-63 31.5-152.5
22-62-6.75-98.5-34.75-3.75-3-6.375-6.625t-4.25-8.75-2.25-8.5-1.5-9.875-1.375-8.75q-2.25-12.5-6.625-37.5t-7-40.375-5.875-36.875-5.5-39.5q0.75-6.5
4.375-12.125t7.875-9.375 11.25-7.5 11.5-5.625 12-4.625q31.25-11.5
78.25-16 94.75-9.25 169 12.5 38.75 11.5 53.75 30.5 4 5 4.125
12.75t-1.375 13.5z" />
</svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -1,18 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="416" height="448"
viewBox="0 0 416 448" id="__github">
<path fill="currentColor" d="M160 304q0 10-3.125 20.5t-10.75 19-18.125
8.5-18.125-8.5-10.75-19-3.125-20.5 3.125-20.5 10.75-19 18.125-8.5
18.125 8.5 10.75 19 3.125 20.5zM320 304q0 10-3.125 20.5t-10.75
19-18.125 8.5-18.125-8.5-10.75-19-3.125-20.5 3.125-20.5 10.75-19
18.125-8.5 18.125 8.5 10.75 19 3.125 20.5zM360
304q0-30-17.25-51t-46.75-21q-10.25 0-48.75 5.25-17.75 2.75-39.25
2.75t-39.25-2.75q-38-5.25-48.75-5.25-29.5 0-46.75 21t-17.25 51q0 22 8
38.375t20.25 25.75 30.5 15 35 7.375 37.25 1.75h42q20.5 0
37.25-1.75t35-7.375 30.5-15 20.25-25.75 8-38.375zM416 260q0 51.75-15.25
82.75-9.5 19.25-26.375 33.25t-35.25 21.5-42.5 11.875-42.875 5.5-41.75
1.125q-19.5 0-35.5-0.75t-36.875-3.125-38.125-7.5-34.25-12.875-30.25-20.25-21.5-28.75q-15.5-30.75-15.5-82.75
0-59.25 34-99-6.75-20.5-6.75-42.5 0-29 12.75-54.5 27 0 47.5 9.875t47.25
30.875q36.75-8.75 77.25-8.75 37 0 70 8 26.25-20.5
46.75-30.25t47.25-9.75q12.75 25.5 12.75 54.5 0 21.75-6.75 42 34 40 34
99.5z" />
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -1,38 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500"
viewBox="0 0 500 500" id="__gitlab">
<g transform="translate(156.197863, 1.160267)">
<path fill="currentColor"
d="M93.667,473.347L93.667,473.347l90.684-279.097H2.983L93.667,
473.347L93.667,473.347z" />
</g>
<g transform="translate(28.531199, 1.160800)" opacity="0.7">
<path fill="currentColor"
d="M221.333,473.345L130.649,194.25H3.557L221.333,473.345L221.333,
473.345z" />
</g>
<g transform="translate(0.088533, 0.255867)" opacity="0.5">
<path fill="currentColor"
d="M32,195.155L32,195.155L4.441,279.97c-2.513,7.735,0.24,16.21,6.821,
20.99l238.514,173.29 L32,195.155L32,195.155z" />
</g>
<g transform="translate(29.421866, 280.255593)">
<path fill="currentColor"
d="M2.667-84.844h127.092L75.14-252.942c-2.811-8.649-15.047-8.649-17.856,
0L2.667-84.844 L2.667-84.844z" />
</g>
<g transform="translate(247.197860, 1.160800)" opacity="0.7">
<path fill="currentColor"
d="M2.667,473.345L93.351,194.25h127.092L2.667,473.345L2.667,
473.345z" />
</g>
<g transform="translate(246.307061, 0.255867)" opacity="0.5">
<path fill="currentColor"
d="M221.334,195.155L221.334,195.155l27.559,84.815c2.514,7.735-0.24,
16.21-6.821,20.99 L3.557,474.25L221.334,195.155L221.334,195.155z" />
</g>
<g transform="translate(336.973725, 280.255593)">
<path fill="currentColor"
d="M130.667-84.844H3.575l54.618-168.098c2.811-8.649,15.047-8.649,
17.856,0L130.667-84.844 L130.667-84.844z" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.6 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -177,11 +177,11 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ '/assets/javascripts/application.5c3774b5.js' | url }}"></script>
<script src="{{ 'assets/javascripts/application.5c3774b5.js' | url }}"></script>
{% if lang.t("search.language") != "en" %}
{% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %}
{% set path = "/assets/javascripts/lunr/" %}
{% set path = "assets/javascripts/lunr/" %}
<script src="{{ path ~ 'lunr.stemmer.support.js' | url }}"></script>
{% for language in languages | map("trim") %}
{% if language != "en" %}

View File

@ -0,0 +1,20 @@
{% macro t(key) %}{{ {
"language": "sh",
"clipboard.copy": "Kopiraj u klipbord",
"clipboard.copied": "Iskopirano u klipbord",
"edit.link.title": "Uredi stranicu",
"footer.previous": "Prethodno",
"footer.next": "Sledeće",
"meta.comments": "Komentari",
"meta.source": "Izvor",
"search.language": "ro",
"search.placeholder": "Pretraga",
"search.result.placeholder": "Unesite pojam pretrage",
"search.result.none": "Ništa nije pronađeno",
"search.result.one": "1 rezultat pretrage",
"search.result.other": "# rezultata pretrage",
"search.tokenizer": "[\s\-]+",
"skip.link.title": "Idi na tekst",
"source.link.title": "Idi u repozitorijum",
"toc.title": "Sadržaj"
}[key] }}{% endmacro %}

View File

@ -0,0 +1,22 @@
{% macro t(key) %}{{ {
"language": "sr",
"clipboard.copy": "Копирај у клипборд",
"clipboard.copied": "Ископирано у клипборд",
"edit.link.title": "Уреди страницу",
"footer.previous": "Претходно",
"footer.next": "Следеће",
"meta.comments": "Коментари",
"meta.source": "Извор",
"search.language": "",
"search.pipeline.stopwords": false,
"search.pipeline.trimmer": false,
"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 %}

View File

@ -322,13 +322,13 @@
<!-- Theme-related JavaScript -->
{% block scripts %}
<script src="{{ '/assets/javascripts/application.js' | url }}"></script>
<script src="{{ 'assets/javascripts/application.js' | url }}"></script>
<!-- Load additional languages for search -->
{% if lang.t("search.language") != "en" %}
{% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %}
{% set path = "/assets/javascripts/lunr/" %}
{% set path = "assets/javascripts/lunr/" %}
<script src="{{ path ~ 'lunr.stemmer.support.js' | url }}"></script>
{% for language in languages | map("trim") %}
{% if language != "en" %}

View File

@ -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.
-->
<!-- Translations: Serbo-Croatian -->
{% macro t(key) %}{{ {
"language": "sh",
"clipboard.copy": "Kopiraj u klipbord",
"clipboard.copied": "Iskopirano u klipbord",
"edit.link.title": "Uredi stranicu",
"footer.previous": "Prethodno",
"footer.next": "Sledeće",
"meta.comments": "Komentari",
"meta.source": "Izvor",
"search.language": "ro",
"search.placeholder": "Pretraga",
"search.result.placeholder": "Unesite pojam pretrage",
"search.result.none": "Ništa nije pronađeno",
"search.result.one": "1 rezultat pretrage",
"search.result.other": "# rezultata pretrage",
"search.tokenizer": "[\s\-]+",
"skip.link.title": "Idi na tekst",
"source.link.title": "Idi u repozitorijum",
"toc.title": "Sadržaj"
}[key] }}{% endmacro %}

View File

@ -0,0 +1,45 @@
<!--
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: Serbian -->
{% macro t(key) %}{{ {
"language": "sr",
"clipboard.copy": "Копирај у клипборд",
"clipboard.copied": "Ископирано у клипборд",
"edit.link.title": "Уреди страницу",
"footer.previous": "Претходно",
"footer.next": "Следеће",
"meta.comments": "Коментари",
"meta.source": "Извор",
"search.language": "",
"search.pipeline.stopwords": false,
"search.pipeline.trimmer": false,
"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 %}