From eef9bdece91c435cf28312b6fc01b4c3d2cc0fb0 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 13 Aug 2022 09:12:58 +0200 Subject: [PATCH] Added Lithuanian translations --- docs/schema/theme.json | 6 +++ docs/setup/changing-the-language.md | 1 + material/partials/languages/lt.html | 38 +++++++++++++++++++ mkdocs.yml | 23 +----------- src/partials/languages/lt.html | 58 +++++++++++++++++++++++++++++ src/partials/languages/lv.html | 2 +- 6 files changed, 105 insertions(+), 23 deletions(-) create mode 100644 material/partials/languages/lt.html create mode 100644 src/partials/languages/lt.html diff --git a/docs/schema/theme.json b/docs/schema/theme.json index 536a857f3..7cf5832e2 100644 --- a/docs/schema/theme.json +++ b/docs/schema/theme.json @@ -220,6 +220,12 @@ "kr" ] }, + { + "title": "Site language: Lithuanian", + "enum": [ + "lt" + ] + }, { "title": "Site language: Latvian", "enum": [ diff --git a/docs/setup/changing-the-language.md b/docs/setup/changing-the-language.md index df13ce3fa..98b373210 100644 --- a/docs/setup/changing-the-language.md +++ b/docs/setup/changing-the-language.md @@ -63,6 +63,7 @@ The following languages are supported: - `ja` – Japanese - `ka` – Georgian - `kr` – Korean +- `lt` – Lithuanian - `lv` – Latvian - `mk` – Macedonian - `mn` – Mongolian diff --git a/material/partials/languages/lt.html b/material/partials/languages/lt.html new file mode 100644 index 000000000..ef8ad48fc --- /dev/null +++ b/material/partials/languages/lt.html @@ -0,0 +1,38 @@ +{#- + This file was automatically generated - do not edit +-#} +{% macro t(key) %}{{ { + "language": "lt", + "clipboard.copy": "Kopijuoti į iškarpinę", + "clipboard.copied": "Nukopijuota į iškarpinę", + "edit.link.title": "Redaguoti šį puslapį", + "footer.previous": "Ankstesnis", + "footer.next": "Sekantis", + "footer.title": "Poraštė", + "header.title": "Antraštė", + "meta.comments": "Komentarai", + "meta.source": "Išeitinis kodas", + "nav.title": "Navigacija", + "search.config.pipeline": " ", + "search.placeholder": "Paieška", + "search.share": "Dalintis", + "search.reset": "Išvalyti", + "search.result.initializer": "Paieškos inicijavimas", + "search.result.placeholder": "Įveskite norėdami pradėti paiešką", + "search.result.none": "Atitinkančių dokumentų nerasta", + "search.result.one": "1 atitinkantis dokumentas", + "search.result.other": "# atitinkantys dokumentai", + "search.result.more.one": "Dar 1 šiame puslapyje", + "search.result.more.other": "Dar # šiame puslapyje", + "search.result.term.missing": "Nerasta", + "search.title": "Paieška", + "select.language.title": "Pasirinkti kalbą", + "select.version.title": "Pasrinkti versiją", + "skip.link.title": "Pereiti prie turinio", + "source.link.title": "Eiti į saugyklą", + "source.file.date.updated": "Paskutinis atnaujinimas", + "source.file.date.created": "Sukurta", + "tabs.title": "Skirtukai", + "toc.title": "Turinys", + "top.title": "Grįžti į viršų" +}[key] }}{% endmacro %} diff --git a/mkdocs.yml b/mkdocs.yml index f87310a90..c59beef1b 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -105,30 +105,9 @@ plugins: # Customization extra: - consent: - title: Cookie consent - description: >- - We use cookies to recognize your repeated visits and preferences, as well - as to measure the effectiveness of our documentation and whether users - find what they're searching for. With your consent, you're helping us to - make our documentation better. analytics: provider: google - property: UA-12345 #!ENV GOOGLE_ANALYTICS_KEY - feedback: - title: Was this page helpful? - ratings: - - icon: material/emoticon-happy-outline - name: This page was helpful - data: 1 - note: >- - Thanks for your feedback! - - icon: material/emoticon-sad-outline - name: This page could be improved - data: 0 - note: >- # ! - Thanks for your feedback! Help us improve this page by - using our feedback form. + property: !ENV GOOGLE_ANALYTICS_KEY social: - icon: fontawesome/brands/github link: https://github.com/squidfunk diff --git a/src/partials/languages/lt.html b/src/partials/languages/lt.html new file mode 100644 index 000000000..a4b3c998e --- /dev/null +++ b/src/partials/languages/lt.html @@ -0,0 +1,58 @@ + + + +{% macro t(key) %}{{ { + "language": "lt", + "clipboard.copy": "Kopijuoti į iškarpinę", + "clipboard.copied": "Nukopijuota į iškarpinę", + "edit.link.title": "Redaguoti šį puslapį", + "footer.previous": "Ankstesnis", + "footer.next": "Sekantis", + "footer.title": "Poraštė", + "header.title": "Antraštė", + "meta.comments": "Komentarai", + "meta.source": "Išeitinis kodas", + "nav.title": "Navigacija", + "search.config.pipeline": " ", + "search.placeholder": "Paieška", + "search.share": "Dalintis", + "search.reset": "Išvalyti", + "search.result.initializer": "Paieškos inicijavimas", + "search.result.placeholder": "Įveskite norėdami pradėti paiešką", + "search.result.none": "Atitinkančių dokumentų nerasta", + "search.result.one": "1 atitinkantis dokumentas", + "search.result.other": "# atitinkantys dokumentai", + "search.result.more.one": "Dar 1 šiame puslapyje", + "search.result.more.other": "Dar # šiame puslapyje", + "search.result.term.missing": "Nerasta", + "search.title": "Paieška", + "select.language.title": "Pasirinkti kalbą", + "select.version.title": "Pasrinkti versiją", + "skip.link.title": "Pereiti prie turinio", + "source.link.title": "Eiti į saugyklą", + "source.file.date.updated": "Paskutinis atnaujinimas", + "source.file.date.created": "Sukurta", + "tabs.title": "Skirtukai", + "toc.title": "Turinys", + "top.title": "Grįžti į viršų" +}[key] }}{% endmacro %} diff --git a/src/partials/languages/lv.html b/src/partials/languages/lv.html index 0fc7684b7..1400e1125 100644 --- a/src/partials/languages/lv.html +++ b/src/partials/languages/lv.html @@ -20,7 +20,7 @@ IN THE SOFTWARE. --> - + {% macro t(key) %}{{ { "language": "lv", "clipboard.copy": "Kopēt starpliktuvē",