mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-12-19 02:46:00 +01:00
28 lines
922 B
Markdown
28 lines
922 B
Markdown
|
# Example
|
||
|
|
||
|
This example project contains a configuration for the German language. All
|
||
|
footer and search labels (or placeholders), as well as link titles have been
|
||
|
translated to German. Use this example as a starting point for a project with
|
||
|
another language than English.
|
||
|
|
||
|
The translations can be changed in `theme/partials/language.html`:
|
||
|
|
||
|
``` jinja
|
||
|
{% macro t(key) %}{{ {
|
||
|
"language": "de",
|
||
|
"edit.link.title": "Seite editieren",
|
||
|
"footer.previous": "Vorherige Seite",
|
||
|
"footer.next": "Nächste Seite",
|
||
|
"meta.comments": "Kommentare",
|
||
|
"meta.source": "Quellcode",
|
||
|
"search.languages": "de",
|
||
|
"search.placeholder": "Suche",
|
||
|
"search.result.placeholder": "Suchbegriff eingeben",
|
||
|
"search.result.none": "Keine Suchergebnisse",
|
||
|
"search.result.one": "1 Suchergebnis",
|
||
|
"search.result.other": "# Suchergebnisse",
|
||
|
"source.link.title": "Quellcode",
|
||
|
"toc.title": "Inhaltsverzeichnis"
|
||
|
}[key] }}{% endmacro %}
|
||
|
```
|