From 6ec547d1407aab5cca885715f5a9fa498ffff706 Mon Sep 17 00:00:00 2001 From: Hsiaoming Yang Date: Sat, 15 Jul 2023 18:47:08 +0900 Subject: [PATCH] feat: add locale data, i18n support --- .gitignore | 1 + MANIFEST.in | 1 + Makefile | 14 +++++ babel.cfg | 4 ++ requirements.txt | 1 + src/shibuya/__init__.py | 4 +- src/shibuya/locale/de/LC_MESSAGES/sphinx.po | 60 +++++++++++++++++++ src/shibuya/locale/es/LC_MESSAGES/sphinx.po | 60 +++++++++++++++++++ src/shibuya/locale/fr/LC_MESSAGES/sphinx.po | 60 +++++++++++++++++++ src/shibuya/locale/ja/LC_MESSAGES/sphinx.po | 60 +++++++++++++++++++ src/shibuya/locale/ko/LC_MESSAGES/sphinx.po | 60 +++++++++++++++++++ src/shibuya/locale/pt/LC_MESSAGES/sphinx.po | 60 +++++++++++++++++++ .../locale/pt_BR/LC_MESSAGES/sphinx.po | 60 +++++++++++++++++++ src/shibuya/locale/sphinx.pot | 60 +++++++++++++++++++ src/shibuya/locale/zh/LC_MESSAGES/sphinx.po | 60 +++++++++++++++++++ .../locale/zh_TW/LC_MESSAGES/sphinx.po | 60 +++++++++++++++++++ .../shibuya/components/nav-versions.html | 2 +- .../theme/shibuya/components/site-foot.html | 2 +- 18 files changed, 626 insertions(+), 3 deletions(-) create mode 100644 babel.cfg create mode 100644 src/shibuya/locale/de/LC_MESSAGES/sphinx.po create mode 100644 src/shibuya/locale/es/LC_MESSAGES/sphinx.po create mode 100644 src/shibuya/locale/fr/LC_MESSAGES/sphinx.po create mode 100644 src/shibuya/locale/ja/LC_MESSAGES/sphinx.po create mode 100644 src/shibuya/locale/ko/LC_MESSAGES/sphinx.po create mode 100644 src/shibuya/locale/pt/LC_MESSAGES/sphinx.po create mode 100644 src/shibuya/locale/pt_BR/LC_MESSAGES/sphinx.po create mode 100644 src/shibuya/locale/sphinx.pot create mode 100644 src/shibuya/locale/zh/LC_MESSAGES/sphinx.po create mode 100644 src/shibuya/locale/zh_TW/LC_MESSAGES/sphinx.po diff --git a/.gitignore b/.gitignore index 51aa132..bb54087 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,5 @@ docs/_build node_modules/ npm-debug.log* +*.mo src/shibuya/theme/shibuya/static/shibuya.* diff --git a/MANIFEST.in b/MANIFEST.in index 0957ab6..9c7ba8a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,4 +3,5 @@ recursive-include src/shibuya *.js recursive-include src/shibuya *.css recursive-include src/shibuya *.html recursive-include src/shibuya *.conf +recursive-include src/shibuya *.mo prune build diff --git a/Makefile b/Makefile index 19d3266..347a007 100644 --- a/Makefile +++ b/Makefile @@ -6,3 +6,17 @@ build-icons: build-static: cd static && npm run build + +babel-extract: + pybabel extract -F babel.cfg src/shibuya/theme -o src/shibuya/locale/sphinx.pot + +lang=zh + +babel-init: + pybabel init -D sphinx -i src/shibuya/locale/sphinx.pot -d src/shibuya/locale -l ${lang} + +babel-update: + pybabel update -D sphinx -i src/shibuya/locale/sphinx.pot -d src/shibuya/locale -l ${lang} + +babel-compile: + pybabel compile -D sphinx -d src/shibuya/locale diff --git a/babel.cfg b/babel.cfg new file mode 100644 index 0000000..16aec5b --- /dev/null +++ b/babel.cfg @@ -0,0 +1,4 @@ +[jinja2: **/shibuya/*/**.html] +encoding = utf-8 +ignore_tags = script,style +include_attrs = alt title summary placeholder, aria-label diff --git a/requirements.txt b/requirements.txt index 4947c01..1997c2e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ sphinx-design==0.4.1 jupyter-sphinx==0.4.0 sphinx-togglebutton==0.3.2 nbsphinx==0.9.2 +Babel diff --git a/src/shibuya/__init__.py b/src/shibuya/__init__.py index a0551cf..9e78d7b 100644 --- a/src/shibuya/__init__.py +++ b/src/shibuya/__init__.py @@ -17,7 +17,8 @@ shibuya_version = __version__ -THEME_PATH = (Path(__file__).parent / "theme" / "shibuya").resolve() +ROOT_PATH = Path(__file__).parent +THEME_PATH = (ROOT_PATH / "theme" / "shibuya").resolve() def _add_version(name: str): @@ -76,6 +77,7 @@ def setup(app: Sphinx): app.add_post_transform(WrapperPostTransform) app.connect("builder-inited", _initialize_builder) app.connect("html-page-context", _html_page_context) + app.add_message_catalog("sphinx", ROOT_PATH / "locale") return { "parallel_read_safe": True, "parallel_write_safe": True, diff --git a/src/shibuya/locale/de/LC_MESSAGES/sphinx.po b/src/shibuya/locale/de/LC_MESSAGES/sphinx.po new file mode 100644 index 0000000..cf5b505 --- /dev/null +++ b/src/shibuya/locale/de/LC_MESSAGES/sphinx.po @@ -0,0 +1,60 @@ +# German translations for PROJECT. +# Copyright (C) 2023 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2023-07-15 18:32+0900\n" +"PO-Revision-Date: 2023-07-15 18:41+0900\n" +"Last-Translator: FULL NAME \n" +"Language: de\n" +"Language-Team: de \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.12.1\n" + +#: src/shibuya/theme/shibuya/components/nav-languages.html:4 +msgid "Translations" +msgstr "Übersetzungen" + +#: src/shibuya/theme/shibuya/components/nav-versions.html:3 +#: src/shibuya/theme/shibuya/components/nav-versions.html:4 +msgid "Versions" +msgstr "Versionen" + +#: src/shibuya/theme/shibuya/components/navigation.html:7 +msgid "Previous" +msgstr "Zurück" + +#: src/shibuya/theme/shibuya/components/navigation.html:9 +msgid "Home" +msgstr "Startseite" + +#: src/shibuya/theme/shibuya/components/navigation.html:21 +msgid "Next" +msgstr "Weiter" + +#: src/shibuya/theme/shibuya/components/searchbox.html:2 +msgid "Search" +msgstr "Suche" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to dark mode" +msgstr "In den Dunkelmodus wechseln" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to light mode" +msgstr "In den Hellmodus wechseln" + +#: src/shibuya/theme/shibuya/sidebars/edit-this-page.html:7 +msgid "Edit this page" +msgstr "Diese Seite bearbeiten" + +#: src/shibuya/theme/shibuya/sidebars/localtoc.html:3 +msgid "On this page" +msgstr "Auf dieser Seite" diff --git a/src/shibuya/locale/es/LC_MESSAGES/sphinx.po b/src/shibuya/locale/es/LC_MESSAGES/sphinx.po new file mode 100644 index 0000000..16ae5d0 --- /dev/null +++ b/src/shibuya/locale/es/LC_MESSAGES/sphinx.po @@ -0,0 +1,60 @@ +# Spanish translations for PROJECT. +# Copyright (C) 2023 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2023-07-15 18:32+0900\n" +"PO-Revision-Date: 2023-07-15 18:34+0900\n" +"Last-Translator: FULL NAME \n" +"Language: es\n" +"Language-Team: es \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.12.1\n" + +#: src/shibuya/theme/shibuya/components/nav-languages.html:4 +msgid "Translations" +msgstr "Traducciones" + +#: src/shibuya/theme/shibuya/components/nav-versions.html:3 +#: src/shibuya/theme/shibuya/components/nav-versions.html:4 +msgid "Versions" +msgstr "Versiones" + +#: src/shibuya/theme/shibuya/components/navigation.html:7 +msgid "Previous" +msgstr "Anterior" + +#: src/shibuya/theme/shibuya/components/navigation.html:9 +msgid "Home" +msgstr "Inicio" + +#: src/shibuya/theme/shibuya/components/navigation.html:21 +msgid "Next" +msgstr "Siguiente" + +#: src/shibuya/theme/shibuya/components/searchbox.html:2 +msgid "Search" +msgstr "Buscar" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to dark mode" +msgstr "Cambiar a modo oscuro" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to light mode" +msgstr "Cambiar a modo claro" + +#: src/shibuya/theme/shibuya/sidebars/edit-this-page.html:7 +msgid "Edit this page" +msgstr "Editar esta página" + +#: src/shibuya/theme/shibuya/sidebars/localtoc.html:3 +msgid "On this page" +msgstr "En esta página" diff --git a/src/shibuya/locale/fr/LC_MESSAGES/sphinx.po b/src/shibuya/locale/fr/LC_MESSAGES/sphinx.po new file mode 100644 index 0000000..e1be10e --- /dev/null +++ b/src/shibuya/locale/fr/LC_MESSAGES/sphinx.po @@ -0,0 +1,60 @@ +# French translations for PROJECT. +# Copyright (C) 2023 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2023-07-15 18:32+0900\n" +"PO-Revision-Date: 2023-07-15 18:34+0900\n" +"Last-Translator: FULL NAME \n" +"Language: fr\n" +"Language-Team: fr \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.12.1\n" + +#: src/shibuya/theme/shibuya/components/nav-languages.html:4 +msgid "Translations" +msgstr "Traductions" + +#: src/shibuya/theme/shibuya/components/nav-versions.html:3 +#: src/shibuya/theme/shibuya/components/nav-versions.html:4 +msgid "Versions" +msgstr "Versions" + +#: src/shibuya/theme/shibuya/components/navigation.html:7 +msgid "Previous" +msgstr "Précédent" + +#: src/shibuya/theme/shibuya/components/navigation.html:9 +msgid "Home" +msgstr "Accueil" + +#: src/shibuya/theme/shibuya/components/navigation.html:21 +msgid "Next" +msgstr "Suivant" + +#: src/shibuya/theme/shibuya/components/searchbox.html:2 +msgid "Search" +msgstr "Rechercher" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to dark mode" +msgstr "Passer en mode sombre" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to light mode" +msgstr "Passer en mode clair" + +#: src/shibuya/theme/shibuya/sidebars/edit-this-page.html:7 +msgid "Edit this page" +msgstr "Modifier cette page" + +#: src/shibuya/theme/shibuya/sidebars/localtoc.html:3 +msgid "On this page" +msgstr "Sur cette page" diff --git a/src/shibuya/locale/ja/LC_MESSAGES/sphinx.po b/src/shibuya/locale/ja/LC_MESSAGES/sphinx.po new file mode 100644 index 0000000..1f301c4 --- /dev/null +++ b/src/shibuya/locale/ja/LC_MESSAGES/sphinx.po @@ -0,0 +1,60 @@ +# Japanese translations for PROJECT. +# Copyright (C) 2023 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2023-07-15 18:32+0900\n" +"PO-Revision-Date: 2023-07-15 18:33+0900\n" +"Last-Translator: FULL NAME \n" +"Language: ja\n" +"Language-Team: ja \n" +"Plural-Forms: nplurals=1; plural=0;\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.12.1\n" + +#: src/shibuya/theme/shibuya/components/nav-languages.html:4 +msgid "Translations" +msgstr "翻訳" + +#: src/shibuya/theme/shibuya/components/nav-versions.html:3 +#: src/shibuya/theme/shibuya/components/nav-versions.html:4 +msgid "Versions" +msgstr "バージョン" + +#: src/shibuya/theme/shibuya/components/navigation.html:7 +msgid "Previous" +msgstr "前へ" + +#: src/shibuya/theme/shibuya/components/navigation.html:9 +msgid "Home" +msgstr "ホーム" + +#: src/shibuya/theme/shibuya/components/navigation.html:21 +msgid "Next" +msgstr "次へ" + +#: src/shibuya/theme/shibuya/components/searchbox.html:2 +msgid "Search" +msgstr "検索" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to dark mode" +msgstr "ダークモードに切り替える" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to light mode" +msgstr "ライトモードに切り替える" + +#: src/shibuya/theme/shibuya/sidebars/edit-this-page.html:7 +msgid "Edit this page" +msgstr "このページを編集" + +#: src/shibuya/theme/shibuya/sidebars/localtoc.html:3 +msgid "On this page" +msgstr "このページについて" diff --git a/src/shibuya/locale/ko/LC_MESSAGES/sphinx.po b/src/shibuya/locale/ko/LC_MESSAGES/sphinx.po new file mode 100644 index 0000000..9d4a16d --- /dev/null +++ b/src/shibuya/locale/ko/LC_MESSAGES/sphinx.po @@ -0,0 +1,60 @@ +# Korean translations for PROJECT. +# Copyright (C) 2023 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2023-07-15 18:32+0900\n" +"PO-Revision-Date: 2023-07-15 18:39+0900\n" +"Last-Translator: FULL NAME \n" +"Language: ko\n" +"Language-Team: ko \n" +"Plural-Forms: nplurals=1; plural=0;\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.12.1\n" + +#: src/shibuya/theme/shibuya/components/nav-languages.html:4 +msgid "Translations" +msgstr "번역" + +#: src/shibuya/theme/shibuya/components/nav-versions.html:3 +#: src/shibuya/theme/shibuya/components/nav-versions.html:4 +msgid "Versions" +msgstr "버전" + +#: src/shibuya/theme/shibuya/components/navigation.html:7 +msgid "Previous" +msgstr "이전" + +#: src/shibuya/theme/shibuya/components/navigation.html:9 +msgid "Home" +msgstr "홈" + +#: src/shibuya/theme/shibuya/components/navigation.html:21 +msgid "Next" +msgstr "다음" + +#: src/shibuya/theme/shibuya/components/searchbox.html:2 +msgid "Search" +msgstr "검색" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to dark mode" +msgstr "다크 모드로 전환" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to light mode" +msgstr "라이트 모드로 전환" + +#: src/shibuya/theme/shibuya/sidebars/edit-this-page.html:7 +msgid "Edit this page" +msgstr "이 페이지 편집" + +#: src/shibuya/theme/shibuya/sidebars/localtoc.html:3 +msgid "On this page" +msgstr "이 페이지에서" diff --git a/src/shibuya/locale/pt/LC_MESSAGES/sphinx.po b/src/shibuya/locale/pt/LC_MESSAGES/sphinx.po new file mode 100644 index 0000000..a77738a --- /dev/null +++ b/src/shibuya/locale/pt/LC_MESSAGES/sphinx.po @@ -0,0 +1,60 @@ +# Portuguese translations for PROJECT. +# Copyright (C) 2023 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2023-07-15 18:32+0900\n" +"PO-Revision-Date: 2023-07-15 18:42+0900\n" +"Last-Translator: FULL NAME \n" +"Language: pt\n" +"Language-Team: pt \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.12.1\n" + +#: src/shibuya/theme/shibuya/components/nav-languages.html:4 +msgid "Translations" +msgstr "Traduções" + +#: src/shibuya/theme/shibuya/components/nav-versions.html:3 +#: src/shibuya/theme/shibuya/components/nav-versions.html:4 +msgid "Versions" +msgstr "Versões" + +#: src/shibuya/theme/shibuya/components/navigation.html:7 +msgid "Previous" +msgstr "Anterior" + +#: src/shibuya/theme/shibuya/components/navigation.html:9 +msgid "Home" +msgstr "Página inicial" + +#: src/shibuya/theme/shibuya/components/navigation.html:21 +msgid "Next" +msgstr "Próximo" + +#: src/shibuya/theme/shibuya/components/searchbox.html:2 +msgid "Search" +msgstr "Pesquisar" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to dark mode" +msgstr "Mudar para o modo escuro" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to light mode" +msgstr "Mudar para o modo claro" + +#: src/shibuya/theme/shibuya/sidebars/edit-this-page.html:7 +msgid "Edit this page" +msgstr "Editar esta página" + +#: src/shibuya/theme/shibuya/sidebars/localtoc.html:3 +msgid "On this page" +msgstr "Nesta página" diff --git a/src/shibuya/locale/pt_BR/LC_MESSAGES/sphinx.po b/src/shibuya/locale/pt_BR/LC_MESSAGES/sphinx.po new file mode 100644 index 0000000..869bc5a --- /dev/null +++ b/src/shibuya/locale/pt_BR/LC_MESSAGES/sphinx.po @@ -0,0 +1,60 @@ +# Portuguese (Brazil) translations for PROJECT. +# Copyright (C) 2023 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2023-07-15 18:32+0900\n" +"PO-Revision-Date: 2023-07-15 18:42+0900\n" +"Last-Translator: FULL NAME \n" +"Language: pt_BR\n" +"Language-Team: pt_BR \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.12.1\n" + +#: src/shibuya/theme/shibuya/components/nav-languages.html:4 +msgid "Translations" +msgstr "Traduções" + +#: src/shibuya/theme/shibuya/components/nav-versions.html:3 +#: src/shibuya/theme/shibuya/components/nav-versions.html:4 +msgid "Versions" +msgstr "Versões" + +#: src/shibuya/theme/shibuya/components/navigation.html:7 +msgid "Previous" +msgstr "Anterior" + +#: src/shibuya/theme/shibuya/components/navigation.html:9 +msgid "Home" +msgstr "Início" + +#: src/shibuya/theme/shibuya/components/navigation.html:21 +msgid "Next" +msgstr "Próximo" + +#: src/shibuya/theme/shibuya/components/searchbox.html:2 +msgid "Search" +msgstr "Buscar" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to dark mode" +msgstr "Alternar para o modo escuro" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to light mode" +msgstr "Alternar para o modo claro" + +#: src/shibuya/theme/shibuya/sidebars/edit-this-page.html:7 +msgid "Edit this page" +msgstr "Editar esta página" + +#: src/shibuya/theme/shibuya/sidebars/localtoc.html:3 +msgid "On this page" +msgstr "Nesta página" diff --git a/src/shibuya/locale/sphinx.pot b/src/shibuya/locale/sphinx.pot new file mode 100644 index 0000000..2a0f3b9 --- /dev/null +++ b/src/shibuya/locale/sphinx.pot @@ -0,0 +1,60 @@ +# Translations template for PROJECT. +# Copyright (C) 2023 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2023. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2023-07-15 18:32+0900\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.12.1\n" + +#: src/shibuya/theme/shibuya/components/nav-languages.html:4 +msgid "Translations" +msgstr "" + +#: src/shibuya/theme/shibuya/components/nav-versions.html:3 +#: src/shibuya/theme/shibuya/components/nav-versions.html:4 +msgid "Versions" +msgstr "" + +#: src/shibuya/theme/shibuya/components/navigation.html:7 +msgid "Previous" +msgstr "" + +#: src/shibuya/theme/shibuya/components/navigation.html:9 +msgid "Home" +msgstr "" + +#: src/shibuya/theme/shibuya/components/navigation.html:21 +msgid "Next" +msgstr "" + +#: src/shibuya/theme/shibuya/components/searchbox.html:2 +msgid "Search" +msgstr "" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to dark mode" +msgstr "" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to light mode" +msgstr "" + +#: src/shibuya/theme/shibuya/sidebars/edit-this-page.html:7 +msgid "Edit this page" +msgstr "" + +#: src/shibuya/theme/shibuya/sidebars/localtoc.html:3 +msgid "On this page" +msgstr "" + diff --git a/src/shibuya/locale/zh/LC_MESSAGES/sphinx.po b/src/shibuya/locale/zh/LC_MESSAGES/sphinx.po new file mode 100644 index 0000000..ec034b7 --- /dev/null +++ b/src/shibuya/locale/zh/LC_MESSAGES/sphinx.po @@ -0,0 +1,60 @@ +# Chinese translations for PROJECT. +# Copyright (C) 2023 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2023-07-15 18:32+0900\n" +"PO-Revision-Date: 2023-07-15 18:09+0900\n" +"Last-Translator: FULL NAME \n" +"Language: zh\n" +"Language-Team: zh \n" +"Plural-Forms: nplurals=1; plural=0;\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.12.1\n" + +#: src/shibuya/theme/shibuya/components/nav-languages.html:4 +msgid "Translations" +msgstr "翻译" + +#: src/shibuya/theme/shibuya/components/nav-versions.html:3 +#: src/shibuya/theme/shibuya/components/nav-versions.html:4 +msgid "Versions" +msgstr "版本" + +#: src/shibuya/theme/shibuya/components/navigation.html:7 +msgid "Previous" +msgstr "上一章" + +#: src/shibuya/theme/shibuya/components/navigation.html:9 +msgid "Home" +msgstr "首页" + +#: src/shibuya/theme/shibuya/components/navigation.html:21 +msgid "Next" +msgstr "下一章" + +#: src/shibuya/theme/shibuya/components/searchbox.html:2 +msgid "Search" +msgstr "搜索" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to dark mode" +msgstr "切换到暗色模式" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to light mode" +msgstr "切换到亮色模式" + +#: src/shibuya/theme/shibuya/sidebars/edit-this-page.html:7 +msgid "Edit this page" +msgstr "编辑此页面" + +#: src/shibuya/theme/shibuya/sidebars/localtoc.html:3 +msgid "On this page" +msgstr "该页内容" diff --git a/src/shibuya/locale/zh_TW/LC_MESSAGES/sphinx.po b/src/shibuya/locale/zh_TW/LC_MESSAGES/sphinx.po new file mode 100644 index 0000000..8482717 --- /dev/null +++ b/src/shibuya/locale/zh_TW/LC_MESSAGES/sphinx.po @@ -0,0 +1,60 @@ +# Chinese (Traditional, Taiwan) translations for PROJECT. +# Copyright (C) 2023 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2023-07-15 18:32+0900\n" +"PO-Revision-Date: 2023-07-15 18:44+0900\n" +"Last-Translator: FULL NAME \n" +"Language: zh_Hant_TW\n" +"Language-Team: zh_Hant_TW \n" +"Plural-Forms: nplurals=1; plural=0;\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.12.1\n" + +#: src/shibuya/theme/shibuya/components/nav-languages.html:4 +msgid "Translations" +msgstr "翻譯" + +#: src/shibuya/theme/shibuya/components/nav-versions.html:3 +#: src/shibuya/theme/shibuya/components/nav-versions.html:4 +msgid "Versions" +msgstr "版本" + +#: src/shibuya/theme/shibuya/components/navigation.html:7 +msgid "Previous" +msgstr "上一頁" + +#: src/shibuya/theme/shibuya/components/navigation.html:9 +msgid "Home" +msgstr "首頁" + +#: src/shibuya/theme/shibuya/components/navigation.html:21 +msgid "Next" +msgstr "下一頁" + +#: src/shibuya/theme/shibuya/components/searchbox.html:2 +msgid "Search" +msgstr "搜尋" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to dark mode" +msgstr "切換到暗黑模式" + +#: src/shibuya/theme/shibuya/components/site-head.html:44 +msgid "Switch to light mode" +msgstr "切換到亮色模式" + +#: src/shibuya/theme/shibuya/sidebars/edit-this-page.html:7 +msgid "Edit this page" +msgstr "編輯此頁面" + +#: src/shibuya/theme/shibuya/sidebars/localtoc.html:3 +msgid "On this page" +msgstr "在此頁面上" diff --git a/src/shibuya/theme/shibuya/components/nav-versions.html b/src/shibuya/theme/shibuya/components/nav-versions.html index 6970e89..f6496a2 100644 --- a/src/shibuya/theme/shibuya/components/nav-versions.html +++ b/src/shibuya/theme/shibuya/components/nav-versions.html @@ -1,6 +1,6 @@ {%- if versions %}