1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 01:10:58 +01:00

Added translations for skip-to-content link

This commit is contained in:
squidfunk 2018-01-20 11:58:46 +01:00 committed by Martin Donath
parent cb6c3e9541
commit 0edbfdc8aa
24 changed files with 65 additions and 38 deletions

View File

@ -32,14 +32,6 @@ markdown_extensions:
- codehilite - codehilite
``` ```
!!! warning "Migrating from Material 0.2.x"
In 0.2.x the CodeHilite extension was included with
`codehilite(css_class=code)` which switched the CSS class from
`.codehilite` to `.code`. The current version of the theme doesn't require
that and defines styles for the default `.codehilite` class, so the part
`css_class=code` needs to be removed.
[4]: http://pygments.org/languages [4]: http://pygments.org/languages
## Usage ## Usage
@ -115,7 +107,7 @@ Line numbers can be added by enabling the `linenums` flag in your `mkdocs.yml`:
``` yaml ``` yaml
markdown_extensions: markdown_extensions:
- codehilite: - codehilite:
linenums:true linenums:true
``` ```

View File

@ -34,7 +34,7 @@
<meta name="lang:{{ key }}" content="{{ lang.t(key) }}"> <meta name="lang:{{ key }}" content="{{ lang.t(key) }}">
{% endfor %} {% endfor %}
<link rel="shortcut icon" href="{{ base_url }}/{{ config.theme.favicon }}"> <link rel="shortcut icon" href="{{ base_url }}/{{ config.theme.favicon }}">
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-2.5.0"> <meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-2.5.1">
{% endblock %} {% endblock %}
{% block htmltitle %} {% block htmltitle %}
{% if page and page.meta and page.meta.title %} {% if page and page.meta and page.meta.title %}
@ -46,7 +46,7 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.56ee7417.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.aa3de92b.css">
{% if palette.primary or palette.accent %} {% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-palette.792431c1.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-palette.792431c1.css">
{% endif %} {% endif %}

View File

@ -13,6 +13,7 @@
"search.result.one": "1 resultat", "search.result.one": "1 resultat",
"search.result.other": "# resultater", "search.result.other": "# resultater",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Gå til indholdet",
"source.link.title": "Åbn arkiv", "source.link.title": "Åbn arkiv",
"toc.title": "Indholdsfortegnelse" "toc.title": "Indholdsfortegnelse"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -13,6 +13,7 @@
"search.result.one": "1 documento encontrado", "search.result.one": "1 documento encontrado",
"search.result.other": "# documentos encontrados", "search.result.other": "# documentos encontrados",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Saltar a contenido",
"source.link.title": "Ir al repositorio", "source.link.title": "Ir al repositorio",
"toc.title": "Tabla de contenidos" "toc.title": "Tabla de contenidos"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -13,6 +13,7 @@
"search.result.one": "1 documento trovato", "search.result.one": "1 documento trovato",
"search.result.other": "# documenti trovati", "search.result.other": "# documenti trovati",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Vai al contenuto",
"source.link.title": "Apri repository", "source.link.title": "Apri repository",
"toc.title": "Indice" "toc.title": "Indice"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -13,6 +13,7 @@
"search.result.one": "1 overeenkomende document", "search.result.one": "1 overeenkomende document",
"search.result.other": "# overeenkomende documenten", "search.result.other": "# overeenkomende documenten",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Ga naar inhoud",
"source.link.title": "Ga naar repository", "source.link.title": "Ga naar repository",
"toc.title": "Inhoudstafel" "toc.title": "Inhoudstafel"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -13,6 +13,7 @@
"search.result.one": "1 treff", "search.result.one": "1 treff",
"search.result.other": "# treff", "search.result.other": "# treff",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Gå til innhold",
"source.link.title": "Gå til kilde", "source.link.title": "Gå til kilde",
"toc.title": "Innholdsfortegnelse" "toc.title": "Innholdsfortegnelse"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -1 +1,19 @@
{% macro t(key) %}{{ { "language": "pl", "clipboard.copy": "Kopiuj do schowka", "clipboard.copied": "Skopiowane", "edit.link.title": "Edytuj tę stronę", "footer.previous": "Poprzednia strona", "footer.next": "Następna strona", "meta.comments": "Komentarze", "meta.source": "Kod źródłowy", "search.placeholder": "Szukaj", "search.result.placeholder": "Zacznij pisać, aby szukać", "search.result.none": "Brak wyników wyszukiwania", "search.result.one": "Wyniki wyszukiwania: 1", "search.result.other": "Wyniki wyszukiwania: #", "search.tokenizer": "[\s\-]+", "source.link.title": "Idź do repozytorium", "toc.title": "Spis treści" }[key] }}{% endmacro %} {% macro t(key) %}{{ {
"language": "pl",
"clipboard.copy": "Kopiuj do schowka",
"clipboard.copied": "Skopiowane",
"edit.link.title": "Edytuj tę stronę",
"footer.previous": "Poprzednia strona",
"footer.next": "Następna strona",
"meta.comments": "Komentarze",
"meta.source": "Kod źródłowy",
"search.placeholder": "Szukaj",
"search.result.placeholder": "Zacznij pisać, aby szukać",
"search.result.none": "Brak wyników wyszukiwania",
"search.result.one": "Wyniki wyszukiwania: 1",
"search.result.other": "Wyniki wyszukiwania: #",
"search.tokenizer": "[\s\-]+",
"skip.link.title": "Przejdź do treści",
"source.link.title": "Idź do repozytorium",
"toc.title": "Spis treści"
}[key] }}{% endmacro %}

View File

@ -13,6 +13,7 @@
"search.result.one": "1 resultado encontrado", "search.result.one": "1 resultado encontrado",
"search.result.other": "# resultados encontrados", "search.result.other": "# resultados encontrados",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Ir para o conteúdo",
"source.link.title": "Ir ao repositório", "source.link.title": "Ir ao repositório",
"toc.title": "Índice" "toc.title": "Índice"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -13,6 +13,7 @@
"search.result.one": "Найдено 1 совпадение", "search.result.one": "Найдено 1 совпадение",
"search.result.other": "Найдено # совпадений", "search.result.other": "Найдено # совпадений",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Перейти к содержанию",
"source.link.title": "Перейти к репозиторию", "source.link.title": "Перейти к репозиторию",
"toc.title": "Содержание" "toc.title": "Содержание"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -13,6 +13,7 @@
"search.result.one": "1 sökresultat", "search.result.one": "1 sökresultat",
"search.result.other": "# sökresultat", "search.result.other": "# sökresultat",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Gå till innehållet",
"source.link.title": "Gå till datakatalog", "source.link.title": "Gå till datakatalog",
"toc.title": "Innehållsförteckning" "toc.title": "Innehållsförteckning"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -13,6 +13,7 @@
"search.result.one": "找到 1 个符合條件的結果", "search.result.one": "找到 1 个符合條件的結果",
"search.result.other": "# 個符合條件的結果", "search.result.other": "# 個符合條件的結果",
"search.tokenizer": "[\\。]+", "search.tokenizer": "[\\。]+",
"skip.link.title": "跳轉至",
"source.link.title": "前往 Github 倉庫", "source.link.title": "前往 Github 倉庫",
"toc.title": "目錄" "toc.title": "目錄"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -1,6 +1,6 @@
{ {
"name": "mkdocs-material", "name": "mkdocs-material",
"version": "2.5.0", "version": "2.5.1",
"description": "A Material Design theme for MkDocs", "description": "A Material Design theme for MkDocs",
"keywords": [ "keywords": [
"mkdocs", "mkdocs",

View File

@ -55,10 +55,9 @@
} }
} }
// Correct anchor offset for link blurring - pick a particularly large one // Correct anchor offset for link blurring
// for the h1, so the anchor offset is always at the top of the page
@each $level, $delta in ( @each $level, $delta in (
h1: 100rem, h1: 0.9rem,
h2: 0.8rem, h2: 0.8rem,
h3: 0.9rem, h3: 0.9rem,
h4: 0.9rem, h4: 0.9rem,

View File

@ -36,6 +36,7 @@
"search.result.one": "1 resultat", "search.result.one": "1 resultat",
"search.result.other": "# resultater", "search.result.other": "# resultater",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Gå til indholdet",
"source.link.title": "Åbn arkiv", "source.link.title": "Åbn arkiv",
"toc.title": "Indholdsfortegnelse" "toc.title": "Indholdsfortegnelse"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -36,6 +36,7 @@
"search.result.one": "1 documento trovato", "search.result.one": "1 documento trovato",
"search.result.other": "# documenti trovati", "search.result.other": "# documenti trovati",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Vai al contenuto",
"source.link.title": "Apri repository", "source.link.title": "Apri repository",
"toc.title": "Indice" "toc.title": "Indice"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -36,6 +36,7 @@
"search.result.one": "1 overeenkomende document", "search.result.one": "1 overeenkomende document",
"search.result.other": "# overeenkomende documenten", "search.result.other": "# overeenkomende documenten",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Ga naar inhoud",
"source.link.title": "Ga naar repository", "source.link.title": "Ga naar repository",
"toc.title": "Inhoudstafel" "toc.title": "Inhoudstafel"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -18,24 +18,25 @@
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 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 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE. IN THE SOFTWARE.
--> -->
<!-- Translations: Polish --> <!-- Translations: Polish -->
{% macro t(key) %}{{ { {% macro t(key) %}{{ {
"language": "pl", "language": "pl",
"clipboard.copy": "Kopiuj do schowka", "clipboard.copy": "Kopiuj do schowka",
"clipboard.copied": "Skopiowane", "clipboard.copied": "Skopiowane",
"edit.link.title": "Edytuj tę stronę", "edit.link.title": "Edytuj tę stronę",
"footer.previous": "Poprzednia strona", "footer.previous": "Poprzednia strona",
"footer.next": "Następna strona", "footer.next": "Następna strona",
"meta.comments": "Komentarze", "meta.comments": "Komentarze",
"meta.source": "Kod źródłowy", "meta.source": "Kod źródłowy",
"search.placeholder": "Szukaj", "search.placeholder": "Szukaj",
"search.result.placeholder": "Zacznij pisać, aby szukać", "search.result.placeholder": "Zacznij pisać, aby szukać",
"search.result.none": "Brak wyników wyszukiwania", "search.result.none": "Brak wyników wyszukiwania",
"search.result.one": "Wyniki wyszukiwania: 1", "search.result.one": "Wyniki wyszukiwania: 1",
"search.result.other": "Wyniki wyszukiwania: #", "search.result.other": "Wyniki wyszukiwania: #",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"source.link.title": "Idź do repozytorium", "skip.link.title": "Przejdź do treści",
"toc.title": "Spis treści" "source.link.title": "Idź do repozytorium",
"toc.title": "Spis treści"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -36,6 +36,7 @@
"search.result.one": "1 resultado encontrado", "search.result.one": "1 resultado encontrado",
"search.result.other": "# resultados encontrados", "search.result.other": "# resultados encontrados",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Ir para o conteúdo",
"source.link.title": "Ir ao repositório", "source.link.title": "Ir ao repositório",
"toc.title": "Índice" "toc.title": "Índice"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -36,6 +36,7 @@
"search.result.one": "Найдено 1 совпадение", "search.result.one": "Найдено 1 совпадение",
"search.result.other": "Найдено # совпадений", "search.result.other": "Найдено # совпадений",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Перейти к содержанию",
"source.link.title": "Перейти к репозиторию", "source.link.title": "Перейти к репозиторию",
"toc.title": "Содержание" "toc.title": "Содержание"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -36,6 +36,7 @@
"search.result.one": "1 sökresultat", "search.result.one": "1 sökresultat",
"search.result.other": "# sökresultat", "search.result.other": "# sökresultat",
"search.tokenizer": "[\s\-]+", "search.tokenizer": "[\s\-]+",
"skip.link.title": "Gå till innehållet",
"source.link.title": "Gå till datakatalog", "source.link.title": "Gå till datakatalog",
"toc.title": "Innehållsförteckning" "toc.title": "Innehållsförteckning"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -36,6 +36,7 @@
"search.result.one": "找到 1 个符合條件的結果", "search.result.one": "找到 1 个符合條件的結果",
"search.result.other": "# 個符合條件的結果", "search.result.other": "# 個符合條件的結果",
"search.tokenizer": "[\\。]+", "search.tokenizer": "[\\。]+",
"skip.link.title": "跳轉至",
"source.link.title": "前往 Github 倉庫", "source.link.title": "前往 Github 倉庫",
"toc.title": "目錄" "toc.title": "目錄"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -36,6 +36,7 @@
"search.result.one": "找到 1 个符合条件的结果", "search.result.one": "找到 1 个符合条件的结果",
"search.result.other": "# 个符合条件的结果", "search.result.other": "# 个符合条件的结果",
"search.tokenizer": "[\\。]+", "search.tokenizer": "[\\。]+",
"skip.link.title": "跳转至",
"source.link.title": "前往 Github 仓库", "source.link.title": "前往 Github 仓库",
"toc.title": "目录" "toc.title": "目录"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}