From 20bad191107cd0b952756c6fa534204d622dcbf4 Mon Sep 17 00:00:00 2001 From: s-rakowski <4791668+s-rakowski@users.noreply.github.com> Date: Tue, 9 Apr 2024 16:02:48 +0200 Subject: [PATCH] Add Polish translation for built-in themes (#3613) Also add translatable word in the ReadTheDocs theme --- .../mkdocs/locales/pl/LC_MESSAGES/messages.po | 102 ++++++++++++++++ mkdocs/themes/readthedocs/footer.html | 2 +- .../locales/pl/LC_MESSAGES/messages.po | 115 ++++++++++++++++++ mkdocs/themes/readthedocs/messages.pot | 27 ++-- 4 files changed, 234 insertions(+), 12 deletions(-) create mode 100644 mkdocs/themes/mkdocs/locales/pl/LC_MESSAGES/messages.po create mode 100644 mkdocs/themes/readthedocs/locales/pl/LC_MESSAGES/messages.po diff --git a/mkdocs/themes/mkdocs/locales/pl/LC_MESSAGES/messages.po b/mkdocs/themes/mkdocs/locales/pl/LC_MESSAGES/messages.po new file mode 100644 index 00000000..433a27a2 --- /dev/null +++ b/mkdocs/themes/mkdocs/locales/pl/LC_MESSAGES/messages.po @@ -0,0 +1,102 @@ +# Polish translations for MkDocs. +# Copyright (C) 2022 MkDocs +# This file is distributed under the same license as the MkDocs project. +# +msgid "" +msgstr "" +"Project-Id-Version: MkDocs 1.3.1\n" +"Report-Msgid-Bugs-To: \"https://github.com/mkdocs/mkdocs/issues\"\n" +"POT-Creation-Date: 2022-08-15 17:05+0200\n" +"PO-Revision-Date: 2024-03-21 17:46+0100\n" +"Last-Translator: Szymon Rakowski \n" +"Language: pl\n" +"Language-Team: pl \n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && " +"(n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.14.0\n" + +#: mkdocs/themes/mkdocs/404.html:8 +msgid "Page not found" +msgstr "Nie znaleziono strony" + +#: mkdocs/themes/mkdocs/base.html:116 +#: mkdocs/themes/mkdocs/keyboard-modal.html:31 +#: mkdocs/themes/mkdocs/search-modal.html:5 +msgid "Search" +msgstr "Szukaj" + +#: mkdocs/themes/mkdocs/base.html:126 +msgid "Previous" +msgstr "Wstecz" + +#: mkdocs/themes/mkdocs/base.html:131 +msgid "Next" +msgstr "Dalej" + +#: mkdocs/themes/mkdocs/base.html:142 mkdocs/themes/mkdocs/base.html:144 +#: mkdocs/themes/mkdocs/base.html:146 mkdocs/themes/mkdocs/base.html:148 +#, python-format +msgid "Edit on %(repo_name)s" +msgstr "Edytuj w %(repo_name)s" + +#: mkdocs/themes/mkdocs/base.html:150 +msgid "Edit" +msgstr "Edytuj" + +#: mkdocs/themes/mkdocs/base.html:190 +#, python-format +msgid "Documentation built with %(mkdocs_link)s." +msgstr "Dokumentacja zbudowana przy użyciu pakietu %(mkdocs_link)s." + +#: mkdocs/themes/mkdocs/keyboard-modal.html:5 +msgid "Keyboard Shortcuts" +msgstr "Skróty klawiszowe" + +#: mkdocs/themes/mkdocs/keyboard-modal.html:6 +#: mkdocs/themes/mkdocs/search-modal.html:6 +msgid "Close" +msgstr "Zamknij" + +#: mkdocs/themes/mkdocs/keyboard-modal.html:12 +msgid "Keys" +msgstr "Klawisze" + +#: mkdocs/themes/mkdocs/keyboard-modal.html:13 +msgid "Action" +msgstr "Akcja" + +#: mkdocs/themes/mkdocs/keyboard-modal.html:19 +msgid "Open this help" +msgstr "Otwórz tę pomoc" + +#: mkdocs/themes/mkdocs/keyboard-modal.html:23 +msgid "Next page" +msgstr "Następna strona" + +#: mkdocs/themes/mkdocs/keyboard-modal.html:27 +msgid "Previous page" +msgstr "Poprzednia strona" + +#: mkdocs/themes/mkdocs/search-modal.html:9 +msgid "From here you can search these documents. Enter your search terms below." +msgstr "W tym miejscu możesz przeszukiwać dokumenty. Wpisz swoją frazę do wyszukania poniżej." + +#: mkdocs/themes/mkdocs/search-modal.html:12 +msgid "Search..." +msgstr "Szukaj..." + +#: mkdocs/themes/mkdocs/search-modal.html:12 +msgid "Type search term here" +msgstr "Wpisz tutaj frazę do wyszukiwania" + +#: mkdocs/themes/mkdocs/search-modal.html:15 +msgid "No results found" +msgstr "Nie znaleziono wyników" + +#: mkdocs/themes/mkdocs/toc.html:3 +msgid "Table of Contents" +msgstr "Spis treści" + diff --git a/mkdocs/themes/readthedocs/footer.html b/mkdocs/themes/readthedocs/footer.html index 67bdad8f..3feadb75 100644 --- a/mkdocs/themes/readthedocs/footer.html +++ b/mkdocs/themes/readthedocs/footer.html @@ -22,5 +22,5 @@ {%- endif %} - {% trans mkdocs_link='MkDocs', sphinx_link='theme', rtd_link='Read the Docs' %}Built with %(mkdocs_link)s using a %(sphinx_link)s provided by %(rtd_link)s.{% endtrans %} + {% trans mkdocs_link='MkDocs', sphinx_link='{}'.format(gettext('theme')), rtd_link='Read the Docs' %}Built with %(mkdocs_link)s using a %(sphinx_link)s provided by %(rtd_link)s.{% endtrans %} diff --git a/mkdocs/themes/readthedocs/locales/pl/LC_MESSAGES/messages.po b/mkdocs/themes/readthedocs/locales/pl/LC_MESSAGES/messages.po new file mode 100644 index 00000000..43ac1ccc --- /dev/null +++ b/mkdocs/themes/readthedocs/locales/pl/LC_MESSAGES/messages.po @@ -0,0 +1,115 @@ +# Polish translations for MkDocs. +# Copyright (C) 2024 MkDocs +# This file is distributed under the same license as the MkDocs project. +# FIRST AUTHOR , 2024. +# +msgid "" +msgstr "" +"Project-Id-Version: MkDocs 1.3.1\n" +"Report-Msgid-Bugs-To: \"https://github.com/mkdocs/mkdocs/issues\"\n" +"POT-Creation-Date: 2024-03-30 23:45+0100\n" +"PO-Revision-Date: 2024-03-21 17:46+0100\n" +"Last-Translator: Szymon Rakowski \n" +"Language: pl\n" +"Language-Team: pl \n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && " +"(n%100<10 || n%100>=20) ? 1 : 2);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.14.0\n" + +#: mkdocs/themes/readthedocs/404.html:7 +msgid "Page not found" +msgstr "Nie znaleziono strony" + +#: mkdocs/themes/readthedocs/base.html:96 +msgid "Logo" +msgstr "Logo" + +#: mkdocs/themes/readthedocs/base.html:110 +msgid "Navigation menu" +msgstr "Menu nawigacji" + +#: mkdocs/themes/readthedocs/base.html:147 +msgid "Mobile navigation menu" +msgstr "Mobilne menu nawigacji" + +#: mkdocs/themes/readthedocs/breadcrumbs.html:3 +msgid "Docs" +msgstr "Dokumentacja" + +#: mkdocs/themes/readthedocs/breadcrumbs.html:18 +#: mkdocs/themes/readthedocs/breadcrumbs.html:20 +#: mkdocs/themes/readthedocs/breadcrumbs.html:22 +#: mkdocs/themes/readthedocs/breadcrumbs.html:24 +#, python-format +msgid "Edit on %(repo_name)s" +msgstr "Edytuj w %(repo_name)s" + +#: mkdocs/themes/readthedocs/breadcrumbs.html:26 +msgid "Edit" +msgstr "Edytuj" + +#: mkdocs/themes/readthedocs/breadcrumbs.html:34 +msgid "Breadcrumb Navigation" +msgstr "Nawigacja typu Breadcrumb" + +#: mkdocs/themes/readthedocs/breadcrumbs.html:36 +#: mkdocs/themes/readthedocs/footer.html:7 +#: mkdocs/themes/readthedocs/versions.html:21 +msgid "Previous" +msgstr "Wstecz" + +#: mkdocs/themes/readthedocs/breadcrumbs.html:39 +#: mkdocs/themes/readthedocs/footer.html:10 +#: mkdocs/themes/readthedocs/versions.html:24 +msgid "Next" +msgstr "Dalej" + +#: mkdocs/themes/readthedocs/footer.html:5 +msgid "Footer Navigation" +msgstr "Nawigacja w stopce" + +#: mkdocs/themes/readthedocs/footer.html:25 +#, python-format +msgid "" +"Built with %(mkdocs_link)s using a %(sphinx_link)s provided by " +"%(rtd_link)s." +msgstr "" +"Zbudowano przy użyciu pakietu %(mkdocs_link)s oraz %(sphinx_link)s " +"dostarczonego przez %(rtd_link)s." + +#: mkdocs/themes/readthedocs/footer.html:25 +msgid "theme" +msgstr "motywu" + +#: mkdocs/themes/readthedocs/search.html:5 +msgid "Search Results" +msgstr "Wyniki wyszukiwania" + +#: mkdocs/themes/readthedocs/search.html:9 +msgid "Search the Docs" +msgstr "Przeszukaj dokumentację" + +#: mkdocs/themes/readthedocs/search.html:9 +#: mkdocs/themes/readthedocs/searchbox.html:3 +msgid "Type search term here" +msgstr "Wpisz tutaj frazę do wyszukania" + +#: mkdocs/themes/readthedocs/search.html:12 +msgid "No results found" +msgstr "Nie znaleziono wyników" + +#: mkdocs/themes/readthedocs/search.html:13 +msgid "Searching..." +msgstr "Wyszukiwanie..." + +#: mkdocs/themes/readthedocs/searchbox.html:3 +msgid "Search docs" +msgstr "Przeszukaj dokumentację" + +#: mkdocs/themes/readthedocs/versions.html:1 +msgid "Versions" +msgstr "Wersje" + diff --git a/mkdocs/themes/readthedocs/messages.pot b/mkdocs/themes/readthedocs/messages.pot index fe9ec7a8..5407573a 100644 --- a/mkdocs/themes/readthedocs/messages.pot +++ b/mkdocs/themes/readthedocs/messages.pot @@ -1,35 +1,35 @@ # Translations template for MkDocs. -# Copyright (C) 2022 MkDocs +# Copyright (C) 2024 MkDocs # This file is distributed under the same license as the MkDocs project. -# FIRST AUTHOR , 2021. +# FIRST AUTHOR , 2024. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: MkDocs 1.3.1\n" -"Report-Msgid-Bugs-To: \"https://github.com/mkdocs/mkdocs/issues\"\n" -"POT-Creation-Date: 2022-08-15 17:05+0200\n" +"Project-Id-Version: MkDocs 1.5.3\n" +"Report-Msgid-Bugs-To: https://github.com/mkdocs/mkdocs/issues\n" +"POT-Creation-Date: 2024-03-30 23:45+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.14.0\n" #: mkdocs/themes/readthedocs/404.html:7 msgid "Page not found" msgstr "" -#: mkdocs/themes/readthedocs/base.html:97 +#: mkdocs/themes/readthedocs/base.html:96 msgid "Logo" msgstr "" -#: mkdocs/themes/readthedocs/base.html:111 +#: mkdocs/themes/readthedocs/base.html:110 msgid "Navigation menu" msgstr "" -#: mkdocs/themes/readthedocs/base.html:140 +#: mkdocs/themes/readthedocs/base.html:147 msgid "Mobile navigation menu" msgstr "" @@ -55,13 +55,13 @@ msgstr "" #: mkdocs/themes/readthedocs/breadcrumbs.html:36 #: mkdocs/themes/readthedocs/footer.html:7 -#: mkdocs/themes/readthedocs/versions.html:17 +#: mkdocs/themes/readthedocs/versions.html:21 msgid "Previous" msgstr "" #: mkdocs/themes/readthedocs/breadcrumbs.html:39 #: mkdocs/themes/readthedocs/footer.html:10 -#: mkdocs/themes/readthedocs/versions.html:20 +#: mkdocs/themes/readthedocs/versions.html:24 msgid "Next" msgstr "" @@ -74,6 +74,10 @@ msgstr "" msgid "Built with %(mkdocs_link)s using a %(sphinx_link)s provided by %(rtd_link)s." msgstr "" +#: mkdocs/themes/readthedocs/footer.html:25 +msgid "theme" +msgstr "" + #: mkdocs/themes/readthedocs/search.html:5 msgid "Search Results" msgstr "" @@ -102,3 +106,4 @@ msgstr "" #: mkdocs/themes/readthedocs/versions.html:1 msgid "Versions" msgstr "" +