python-docs-theme 2025.4.1__tar.gz → 2025.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/PKG-INFO +1 -1
  2. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/python_docs_theme/__init__.py +12 -1
  3. python_docs_theme-2025.9/python_docs_theme/locale/el/LC_MESSAGES/python-docs-theme.mo +0 -0
  4. python_docs_theme-2025.9/python_docs_theme/locale/el/LC_MESSAGES/python-docs-theme.po +126 -0
  5. python_docs_theme-2025.9/python_docs_theme/locale/pl/LC_MESSAGES/python-docs-theme.mo +0 -0
  6. python_docs_theme-2025.9/python_docs_theme/locale/pl/LC_MESSAGES/python-docs-theme.po +127 -0
  7. python_docs_theme-2025.9/python_docs_theme/locale/pt_BR/LC_MESSAGES/python-docs-theme.po +131 -0
  8. python_docs_theme-2025.9/python_docs_theme/locale/sv/LC_MESSAGES/python-docs-theme.mo +0 -0
  9. python_docs_theme-2025.9/python_docs_theme/locale/sv/LC_MESSAGES/python-docs-theme.po +128 -0
  10. python_docs_theme-2025.9/python_docs_theme/locale/zh_CN/LC_MESSAGES/python-docs-theme.po +123 -0
  11. python_docs_theme-2025.9/python_docs_theme/locale/zh_TW/LC_MESSAGES/python-docs-theme.po +123 -0
  12. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/python_docs_theme/static/pydoctheme.css +9 -0
  13. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/LICENSE +0 -0
  14. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/README.md +0 -0
  15. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/pyproject.toml +0 -0
  16. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/python_docs_theme/footerdonate.html +0 -0
  17. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/python_docs_theme/layout.html +0 -0
  18. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/python_docs_theme/static/copybutton.js +0 -0
  19. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/python_docs_theme/static/menu.js +0 -0
  20. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/python_docs_theme/static/py.png +0 -0
  21. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/python_docs_theme/static/py.svg +0 -0
  22. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/python_docs_theme/static/pydoctheme_dark.css +0 -0
  23. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/python_docs_theme/static/search-focus.js +0 -0
  24. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/python_docs_theme/static/themetoggle.js +0 -0
  25. {python_docs_theme-2025.4.1 → python_docs_theme-2025.9}/python_docs_theme/theme.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-docs-theme
3
- Version: 2025.4.1
3
+ Version: 2025.9
4
4
  Summary: The Sphinx theme for the CPython docs and related projects
5
5
  Author-email: PyPA <distutils-sig@python.org>
6
6
  Requires-Python: >=3.12
@@ -2,20 +2,31 @@ from __future__ import annotations
2
2
 
3
3
  from pathlib import Path
4
4
 
5
+ from sphinx.locale import get_translation
6
+
5
7
  TYPE_CHECKING = False
6
8
  if TYPE_CHECKING:
7
9
  from sphinx.application import Sphinx
8
10
  from sphinx.util.typing import ExtensionMetadata
9
11
 
10
- __version__ = "2025.4.1"
12
+ __version__ = "2025.9"
11
13
 
12
14
  THEME_PATH = Path(__file__).resolve().parent
15
+ LOCALE_DIR = THEME_PATH / "locale"
16
+ MESSAGE_CATALOG_NAME = "python-docs-theme"
13
17
 
14
18
 
15
19
  def setup(app: Sphinx) -> ExtensionMetadata:
16
20
  app.require_sphinx("7.3")
17
21
 
18
22
  app.add_html_theme("python_docs_theme", str(THEME_PATH))
23
+ app.add_message_catalog(MESSAGE_CATALOG_NAME, LOCALE_DIR)
24
+
25
+ def add_translation_to_context(app, pagename, templatename, context, doctree):
26
+ _ = get_translation(MESSAGE_CATALOG_NAME)
27
+ context["_"] = context["gettext"] = context["ngettext"] = _
28
+
29
+ app.connect("html-page-context", add_translation_to_context)
19
30
 
20
31
  return {
21
32
  "version": __version__,
@@ -0,0 +1,126 @@
1
+ # Greek translations for python-docs-theme.
2
+ # Copyright (C) 2025 Python Software Foundation
3
+ # This file is distributed under the same license as the python-docs-theme
4
+ # project.
5
+ # Lysandros Nikolaou <lysandros@pygreece.org>, 2025.
6
+ #
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: python-docs-theme 2025.5\n"
10
+ "Report-Msgid-Bugs-To: https://github.com/python/python-docs-theme/issues\n"
11
+ "POT-Creation-Date: 2025-09-08 10:23+0300\n"
12
+ "PO-Revision-Date: 2025-09-08 10:23+0300\n"
13
+ "Last-Translator: Lysandros Nikolaou <lysandros@pygreece.org>\n"
14
+ "Language: el\n"
15
+ "Language-Team: PyGreece <organizers@pygreece.org>\n"
16
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "MIME-Version: 1.0\n"
18
+ "Content-Type: text/plain; charset=utf-8\n"
19
+ "Content-Transfer-Encoding: 8bit\n"
20
+ "Generated-By: Babel 2.17.0\n"
21
+
22
+ #: python_docs_theme/footerdonate.html:1
23
+ msgid "The Python Software Foundation is a non-profit corporation."
24
+ msgstr "Το Python Software Foundation είναι ένας μη κερδοσκοπικός οργανισμός."
25
+
26
+ #: python_docs_theme/footerdonate.html:2
27
+ msgid "Please donate."
28
+ msgstr "Παρακαλώ κάντε μια δωρεά."
29
+
30
+ #: python_docs_theme/layout.html:6
31
+ msgid "Navigation"
32
+ msgstr "Πλοήγηση"
33
+
34
+ #: python_docs_theme/layout.html:51 python_docs_theme/layout.html:111
35
+ msgid "Quick search"
36
+ msgstr "Γρήγορη αναζήτηση"
37
+
38
+ #: python_docs_theme/layout.html:52 python_docs_theme/layout.html:112
39
+ msgid "Go"
40
+ msgstr "Μετάβαση"
41
+
42
+ #: python_docs_theme/layout.html:60
43
+ msgid "Theme"
44
+ msgstr "Θέμα"
45
+
46
+ #: python_docs_theme/layout.html:62
47
+ msgid "Auto"
48
+ msgstr "Αυτόματα"
49
+
50
+ #: python_docs_theme/layout.html:63
51
+ msgid "Light"
52
+ msgstr "Φωτεινό"
53
+
54
+ #: python_docs_theme/layout.html:64
55
+ msgid "Dark"
56
+ msgstr "Σκούρο"
57
+
58
+ #: python_docs_theme/layout.html:96
59
+ msgid "Menu"
60
+ msgstr "Μενού"
61
+
62
+ #: python_docs_theme/layout.html:142
63
+ msgid "Copyright"
64
+ msgstr "Πνευματικά δικαιώματα"
65
+
66
+ #: python_docs_theme/layout.html:147
67
+ msgid ""
68
+ "This page is licensed under the Python Software Foundation License "
69
+ "Version 2."
70
+ msgstr ""
71
+ "Η σελίδα αυτή διατίθεται υπό την άδεια χρήσης του Python Software "
72
+ "Foundation, 2η έκδοση."
73
+
74
+ #: python_docs_theme/layout.html:149
75
+ msgid ""
76
+ "Examples, recipes, and other code in the documentation are additionally "
77
+ "licensed under the Zero Clause BSD License."
78
+ msgstr ""
79
+ "Παραδείγματα, οδηγοί και λοιπά κομμάτια κώδικα στην τεκμηρίωση διατίθενται "
80
+ "επιπλέον υπό την άδεια χρήσης Zero Clause BSD."
81
+
82
+ #: python_docs_theme/layout.html:152
83
+ #, python-format
84
+ msgid ""
85
+ "See <a href=\"%(license_file)s\">History and License</a> for more "
86
+ "information."
87
+ msgstr ""
88
+ "Δες την <a href=\"%(license_file)s\">Ιστορία και Άδεια χρήσης</a> για "
89
+ "περισσότερες πληροφορίες."
90
+
91
+ #: python_docs_theme/layout.html:155
92
+ #, python-format
93
+ msgid "Hosted on %(hosted_on)s."
94
+ msgstr "Φιλοξενείται στο %(hosted_on)s."
95
+
96
+ #: python_docs_theme/layout.html:163
97
+ #, python-format
98
+ msgid "Last updated on %(last_updated)s."
99
+ msgstr "Τελευταία ενημέρωση στις %(last_updated)s."
100
+
101
+ #: python_docs_theme/layout.html:166
102
+ #, python-format
103
+ msgid "<a href=\"%(theme_issues_url)s\">Found a bug</a>?"
104
+ msgstr "<a href=\"%(theme_issues_url)s\">Βρήκες ένα bug</a>?"
105
+
106
+ #: python_docs_theme/layout.html:170
107
+ #, python-format
108
+ msgid ""
109
+ "Created using <a href=\"https://www.sphinx-doc.org/\">Sphinx</a> "
110
+ "%(sphinx_version)s."
111
+ msgstr ""
112
+ "Δημιουργήθηκε με την χρήση του <a href=\"https://www.sphinx-doc.org/\">Sphinx</a> "
113
+ "%(sphinx_version)s."
114
+
115
+ #: python_docs_theme/static/copybutton.js:30
116
+ #: python_docs_theme/static/copybutton.js:55
117
+ msgid "Copy"
118
+ msgstr "Αντιγραφή"
119
+
120
+ #: python_docs_theme/static/copybutton.js:31
121
+ msgid "Copy to clipboard"
122
+ msgstr "Αντιγραφή στο πρόχειρο"
123
+
124
+ #: python_docs_theme/static/copybutton.js:53
125
+ msgid "Copied!"
126
+ msgstr "Αντιγράφηκε!"
@@ -0,0 +1,127 @@
1
+ # Polish (Poland) translations for python-docs-theme.
2
+ # Copyright (C) 2025 Python Software Foundation
3
+ # This file is distributed under the same license as the python-docs-theme
4
+ # project.
5
+ # Stan Ulbrych, 2025.
6
+ #
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: python-docs-theme 2025.5\n"
10
+ "Report-Msgid-Bugs-To: https://github.com/python/python-docs-theme/issues\n"
11
+ "POT-Creation-Date: 2025-08-07 19:09+0200\n"
12
+ "PO-Revision-Date: 2025-08-07 15:11+0200\n"
13
+ "Last-Translator: Stan Ulbrych \n"
14
+ "Language: pl\n"
15
+ "Language-Team: pl <LL@li.org>\n"
16
+ "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && "
17
+ "(n%100<10 || n%100>=20) ? 1 : 2);\n"
18
+ "MIME-Version: 1.0\n"
19
+ "Content-Type: text/plain; charset=utf-8\n"
20
+ "Content-Transfer-Encoding: 8bit\n"
21
+ "Generated-By: Babel 2.16.0\n"
22
+
23
+ #: python_docs_theme/footerdonate.html:1
24
+ msgid "The Python Software Foundation is a non-profit corporation."
25
+ msgstr "Python Software Foundation jest organizacją non-profit."
26
+
27
+ #: python_docs_theme/footerdonate.html:2
28
+ msgid "Please donate."
29
+ msgstr "Prosimy o wsparcie."
30
+
31
+ #: python_docs_theme/layout.html:6
32
+ msgid "Navigation"
33
+ msgstr "Nawigacja"
34
+
35
+ #: python_docs_theme/layout.html:51 python_docs_theme/layout.html:111
36
+ msgid "Quick search"
37
+ msgstr "Szybkie wyszukiwanie"
38
+
39
+ #: python_docs_theme/layout.html:52 python_docs_theme/layout.html:112
40
+ msgid "Go"
41
+ msgstr "Szukaj"
42
+
43
+ #: python_docs_theme/layout.html:60
44
+ msgid "Theme"
45
+ msgstr "Motyw"
46
+
47
+ #: python_docs_theme/layout.html:62
48
+ msgid "Auto"
49
+ msgstr "auto"
50
+
51
+ #: python_docs_theme/layout.html:63
52
+ msgid "Light"
53
+ msgstr "jasny"
54
+
55
+ #: python_docs_theme/layout.html:64
56
+ msgid "Dark"
57
+ msgstr "ciemny"
58
+
59
+ #: python_docs_theme/layout.html:96
60
+ msgid "Menu"
61
+ msgstr "Menu"
62
+
63
+ #: python_docs_theme/layout.html:142
64
+ msgid "Copyright"
65
+ msgstr "Prawa autorskie"
66
+
67
+ #: python_docs_theme/layout.html:147
68
+ msgid ""
69
+ "This page is licensed under the Python Software Foundation License "
70
+ "Version 2."
71
+ msgstr ""
72
+ "Ta strona jest objęta licencją Python Software "
73
+ "Foundation w wersji 2."
74
+
75
+ #: python_docs_theme/layout.html:149
76
+ msgid ""
77
+ "Examples, recipes, and other code in the documentation are additionally "
78
+ "licensed under the Zero Clause BSD License."
79
+ msgstr ""
80
+ "Przykłady, przepisy i inny kod w dokumentacji są dodatkowo objęte "
81
+ "licencją Zero Clause BSD."
82
+
83
+ #: python_docs_theme/layout.html:152
84
+ #, python-format
85
+ msgid ""
86
+ "See <a href=\"%(license_file)s\">History and License</a> for more "
87
+ "information."
88
+ msgstr ""
89
+ "Zobacz <a href=\"%(license_file)s\">Historię i licencję</a> aby uzyskać "
90
+ "więcej informacji."
91
+
92
+ #: python_docs_theme/layout.html:155
93
+ #, python-format
94
+ msgid "Hosted on %(hosted_on)s."
95
+ msgstr "Hostowane na %(hosted_on)s."
96
+
97
+ #: python_docs_theme/layout.html:163
98
+ #, python-format
99
+ msgid "Last updated on %(last_updated)s."
100
+ msgstr "Ostatnia aktualizacja %(last_updated)s."
101
+
102
+ #: python_docs_theme/layout.html:166
103
+ #, python-format
104
+ msgid "<a href=\"%(theme_issues_url)s\">Found a bug</a>?"
105
+ msgstr "<a href=\"%(theme_issues_url)s\">Znalazłeś(-aś) błąd</a>?"
106
+
107
+ #: python_docs_theme/layout.html:170
108
+ #, python-format
109
+ msgid ""
110
+ "Created using <a href=\"https://www.sphinx-doc.org/\">Sphinx</a> "
111
+ "%(sphinx_version)s."
112
+ msgstr ""
113
+ "Stworzone za pomocą <a href=\"https://www.sphinx-doc.org/\">Sphinx</a> "
114
+ "%(sphinx_version)s."
115
+
116
+ #: python_docs_theme/static/copybutton.js:30
117
+ #: python_docs_theme/static/copybutton.js:55
118
+ msgid "Copy"
119
+ msgstr "Kopiuj"
120
+
121
+ #: python_docs_theme/static/copybutton.js:31
122
+ msgid "Copy to clipboard"
123
+ msgstr "Skopiuj do schowka"
124
+
125
+ #: python_docs_theme/static/copybutton.js:53
126
+ msgid "Copied!"
127
+ msgstr "Skopiowano!"
@@ -0,0 +1,131 @@
1
+ # Translations template for python-docs-theme.
2
+ # Copyright (C) 2025 Python Software Foundation
3
+ # This file is distributed under the same license as the python-docs-theme
4
+ # project.
5
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2025.
6
+ #
7
+ # Translators:
8
+ # Alexsey Batista da Silva, 2025
9
+ # Rafael Fontenelle <rffontenelle@gmail.com>, 2025
10
+ #
11
+ #, fuzzy
12
+ msgid ""
13
+ msgstr ""
14
+ "Project-Id-Version: python-docs-theme 2025.5\n"
15
+ "Report-Msgid-Bugs-To: https://github.com/python/python-docs-theme/issues\n"
16
+ "POT-Creation-Date: 2025-09-06 08:40+0100\n"
17
+ "PO-Revision-Date: 2025-09-06 07:41+0000\n"
18
+ "Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
19
+ "Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/teams/5390/pt_BR/)\n"
20
+ "MIME-Version: 1.0\n"
21
+ "Content-Type: text/plain; charset=UTF-8\n"
22
+ "Content-Transfer-Encoding: 8bit\n"
23
+ "Generated-By: Babel 2.16.0\n"
24
+ "Language: pt_BR\n"
25
+ "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
26
+
27
+ #: python_docs_theme/footerdonate.html:1
28
+ msgid "The Python Software Foundation is a non-profit corporation."
29
+ msgstr "A Python Software Foundation é uma corporação sem fins lucrativos."
30
+
31
+ #: python_docs_theme/footerdonate.html:2
32
+ msgid "Please donate."
33
+ msgstr "Por favor, faça sua doação."
34
+
35
+ #: python_docs_theme/layout.html:6
36
+ msgid "Navigation"
37
+ msgstr "Navegação"
38
+
39
+ #: python_docs_theme/layout.html:51 python_docs_theme/layout.html:111
40
+ msgid "Quick search"
41
+ msgstr "Pesquisa rápida"
42
+
43
+ #: python_docs_theme/layout.html:52 python_docs_theme/layout.html:112
44
+ msgid "Go"
45
+ msgstr "Ir"
46
+
47
+ #: python_docs_theme/layout.html:60
48
+ msgid "Theme"
49
+ msgstr "Tema"
50
+
51
+ #: python_docs_theme/layout.html:62
52
+ msgid "Auto"
53
+ msgstr "Automático"
54
+
55
+ #: python_docs_theme/layout.html:63
56
+ msgid "Light"
57
+ msgstr "Claro"
58
+
59
+ #: python_docs_theme/layout.html:64
60
+ msgid "Dark"
61
+ msgstr "Escuro"
62
+
63
+ #: python_docs_theme/layout.html:96
64
+ msgid "Menu"
65
+ msgstr "Menu"
66
+
67
+ #: python_docs_theme/layout.html:142
68
+ msgid "Copyright"
69
+ msgstr "Direitos autorais"
70
+
71
+ #: python_docs_theme/layout.html:147
72
+ msgid ""
73
+ "This page is licensed under the Python Software Foundation License Version "
74
+ "2."
75
+ msgstr ""
76
+ "Esta página está licenciada sob a Licença da Python Software Foundation "
77
+ "Versão 2."
78
+
79
+ #: python_docs_theme/layout.html:149
80
+ msgid ""
81
+ "Examples, recipes, and other code in the documentation are additionally "
82
+ "licensed under the Zero Clause BSD License."
83
+ msgstr ""
84
+ "Exemplos, receitas e outros códigos na documentação são licenciados "
85
+ "adicionalmente sob a licença BSD Zero Clause."
86
+
87
+ #: python_docs_theme/layout.html:152
88
+ #, python-format
89
+ msgid ""
90
+ "See <a href=\"%(license_file)s\">History and License</a> for more "
91
+ "information."
92
+ msgstr ""
93
+ "Consulte <a href=\"%(license_file)s\">Histórico e licença</a> para obter "
94
+ "mais informações."
95
+
96
+ #: python_docs_theme/layout.html:155
97
+ #, python-format
98
+ msgid "Hosted on %(hosted_on)s."
99
+ msgstr "Hospedado em %(hosted_on)s."
100
+
101
+ #: python_docs_theme/layout.html:163
102
+ #, python-format
103
+ msgid "Last updated on %(last_updated)s."
104
+ msgstr "Última atualização em %(last_updated)s."
105
+
106
+ #: python_docs_theme/layout.html:166
107
+ #, python-format
108
+ msgid "<a href=\"%(theme_issues_url)s\">Found a bug</a>?"
109
+ msgstr "<a href=\"%(theme_issues_url)s\">Encontrou um erro</a>?"
110
+
111
+ #: python_docs_theme/layout.html:170
112
+ #, python-format
113
+ msgid ""
114
+ "Created using <a href=\"https://www.sphinx-doc.org/\">Sphinx</a> "
115
+ "%(sphinx_version)s."
116
+ msgstr ""
117
+ "Criado usando o <a href=\"https://www.sphinx-doc.org/\">Sphinx</a> "
118
+ "%(sphinx_version)s."
119
+
120
+ #: python_docs_theme/static/copybutton.js:30
121
+ #: python_docs_theme/static/copybutton.js:55
122
+ msgid "Copy"
123
+ msgstr "Copiar"
124
+
125
+ #: python_docs_theme/static/copybutton.js:31
126
+ msgid "Copy to clipboard"
127
+ msgstr "Copiar para a área de transferência"
128
+
129
+ #: python_docs_theme/static/copybutton.js:53
130
+ msgid "Copied!"
131
+ msgstr "Copiado!"
@@ -0,0 +1,128 @@
1
+ # Swedish translations for python-docs-theme.
2
+ # Copyright (C) 2025 Python Software Foundation
3
+ # This file is distributed under the same license as the python-docs-theme
4
+ # project.
5
+ # Daniel Nylander, 2025.
6
+ #
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: python-docs-theme 2025.5\n"
10
+ "Report-Msgid-Bugs-To: https://github.com/python/python-docs-theme/"
11
+ "issues\n"
12
+ "POT-Creation-Date: 2025-08-07 19:09+0200\n"
13
+ "PO-Revision-Date: 2025-08-29 07:03+0200\n"
14
+ "Last-Translator: Daniel Nylander <github@danielnylander.se>\n"
15
+ "Language-Team: sv\n"
16
+ "Language: sv\n"
17
+ "MIME-Version: 1.0\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+ "Content-Transfer-Encoding: 8bit\n"
20
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
+ "Generated-By: Babel 2.16.0\n"
22
+ "X-Generator: Poedit 3.7\n"
23
+
24
+ #: python_docs_theme/footerdonate.html:1
25
+ msgid "The Python Software Foundation is a non-profit corporation."
26
+ msgstr "Python Software Foundation är ett icke-vinstdrivande företag."
27
+
28
+ #: python_docs_theme/footerdonate.html:2
29
+ msgid "Please donate."
30
+ msgstr "Donera."
31
+
32
+ #: python_docs_theme/layout.html:6
33
+ msgid "Navigation"
34
+ msgstr "Navigering"
35
+
36
+ #: python_docs_theme/layout.html:51 python_docs_theme/layout.html:111
37
+ msgid "Quick search"
38
+ msgstr "Snabbsök"
39
+
40
+ #: python_docs_theme/layout.html:52 python_docs_theme/layout.html:112
41
+ msgid "Go"
42
+ msgstr "Start"
43
+
44
+ #: python_docs_theme/layout.html:60
45
+ msgid "Theme"
46
+ msgstr "Tema"
47
+
48
+ #: python_docs_theme/layout.html:62
49
+ msgid "Auto"
50
+ msgstr "Auto"
51
+
52
+ #: python_docs_theme/layout.html:63
53
+ msgid "Light"
54
+ msgstr "Ljus"
55
+
56
+ #: python_docs_theme/layout.html:64
57
+ msgid "Dark"
58
+ msgstr "Mörk"
59
+
60
+ #: python_docs_theme/layout.html:96
61
+ msgid "Menu"
62
+ msgstr "Meny"
63
+
64
+ #: python_docs_theme/layout.html:142
65
+ msgid "Copyright"
66
+ msgstr "Upphovsrätt"
67
+
68
+ #: python_docs_theme/layout.html:147
69
+ msgid ""
70
+ "This page is licensed under the Python Software Foundation License "
71
+ "Version 2."
72
+ msgstr ""
73
+ "Denna sida är licensierad enligt Python Software Foundation License "
74
+ "version 2."
75
+
76
+ #: python_docs_theme/layout.html:149
77
+ msgid ""
78
+ "Examples, recipes, and other code in the documentation are additionally "
79
+ "licensed under the Zero Clause BSD License."
80
+ msgstr ""
81
+ "Exempel, recept och annan kod i dokumentationen är dessutom "
82
+ "licensierade under Zero Clause BSD-licensen."
83
+
84
+ #: python_docs_theme/layout.html:152
85
+ #, python-format
86
+ msgid ""
87
+ "See <a href=\"%(license_file)s\">History and License</a> for more "
88
+ "information."
89
+ msgstr ""
90
+ "Se <a href=\"%(license_file)s\">Historik och licens</a> för mer "
91
+ "information."
92
+
93
+ #: python_docs_theme/layout.html:155
94
+ #, python-format
95
+ msgid "Hosted on %(hosted_on)s."
96
+ msgstr "Hosting %(hosted_on)s."
97
+
98
+ #: python_docs_theme/layout.html:163
99
+ #, python-format
100
+ msgid "Last updated on %(last_updated)s."
101
+ msgstr "Senast uppdaterad %(last_updated)s."
102
+
103
+ #: python_docs_theme/layout.html:166
104
+ #, python-format
105
+ msgid "<a href=\"%(theme_issues_url)s\">Found a bug</a>?"
106
+ msgstr "Har du <a href=\"%(theme_issues_url)s\">hittat ett fel</a>?"
107
+
108
+ #: python_docs_theme/layout.html:170
109
+ #, python-format
110
+ msgid ""
111
+ "Created using <a href=\"https://www.sphinx-doc.org/\">Sphinx</a> "
112
+ "%(sphinx_version)s."
113
+ msgstr ""
114
+ "Skapad med hjälp av <a href=\"https://www.sphinx-doc.org/\">Sphinx</a> "
115
+ "%(sphinx_version)s."
116
+
117
+ #: python_docs_theme/static/copybutton.js:30
118
+ #: python_docs_theme/static/copybutton.js:55
119
+ msgid "Copy"
120
+ msgstr "Kopiera"
121
+
122
+ #: python_docs_theme/static/copybutton.js:31
123
+ msgid "Copy to clipboard"
124
+ msgstr "Kopiera till urklipp"
125
+
126
+ #: python_docs_theme/static/copybutton.js:53
127
+ msgid "Copied!"
128
+ msgstr "Kopierad!"
@@ -0,0 +1,123 @@
1
+ # Translations template for python-docs-theme.
2
+ # Copyright (C) 2025 Python Software Foundation
3
+ # This file is distributed under the same license as the python-docs-theme
4
+ # project.
5
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2025.
6
+ #
7
+ # Translators:
8
+ # 汇民 王 <whuim@qq.com>, 2025
9
+ #
10
+ #, fuzzy
11
+ msgid ""
12
+ msgstr ""
13
+ "Project-Id-Version: python-docs-theme 2025.5\n"
14
+ "Report-Msgid-Bugs-To: https://github.com/python/python-docs-theme/issues\n"
15
+ "POT-Creation-Date: 2025-09-06 08:40+0100\n"
16
+ "PO-Revision-Date: 2025-09-06 07:41+0000\n"
17
+ "Last-Translator: 汇民 王 <whuim@qq.com>, 2025\n"
18
+ "Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
19
+ "MIME-Version: 1.0\n"
20
+ "Content-Type: text/plain; charset=UTF-8\n"
21
+ "Content-Transfer-Encoding: 8bit\n"
22
+ "Generated-By: Babel 2.16.0\n"
23
+ "Language: zh_CN\n"
24
+ "Plural-Forms: nplurals=1; plural=0;\n"
25
+
26
+ #: python_docs_theme/footerdonate.html:1
27
+ msgid "The Python Software Foundation is a non-profit corporation."
28
+ msgstr "Python 软件基金会是一家非营利性公司。"
29
+
30
+ #: python_docs_theme/footerdonate.html:2
31
+ msgid "Please donate."
32
+ msgstr "请进行捐赠。"
33
+
34
+ #: python_docs_theme/layout.html:6
35
+ msgid "Navigation"
36
+ msgstr "导航"
37
+
38
+ #: python_docs_theme/layout.html:51 python_docs_theme/layout.html:111
39
+ msgid "Quick search"
40
+ msgstr "快速搜索"
41
+
42
+ #: python_docs_theme/layout.html:52 python_docs_theme/layout.html:112
43
+ msgid "Go"
44
+ msgstr "转到"
45
+
46
+ #: python_docs_theme/layout.html:60
47
+ msgid "Theme"
48
+ msgstr "主题"
49
+
50
+ #: python_docs_theme/layout.html:62
51
+ msgid "Auto"
52
+ msgstr "自动"
53
+
54
+ #: python_docs_theme/layout.html:63
55
+ msgid "Light"
56
+ msgstr "明亮"
57
+
58
+ #: python_docs_theme/layout.html:64
59
+ msgid "Dark"
60
+ msgstr "黑暗"
61
+
62
+ #: python_docs_theme/layout.html:96
63
+ msgid "Menu"
64
+ msgstr "菜单"
65
+
66
+ #: python_docs_theme/layout.html:142
67
+ msgid "Copyright"
68
+ msgstr "版权"
69
+
70
+ #: python_docs_theme/layout.html:147
71
+ msgid ""
72
+ "This page is licensed under the Python Software Foundation License Version "
73
+ "2."
74
+ msgstr "本页面采用 Python 软件基金会许可证第 2 版授权。"
75
+
76
+ #: python_docs_theme/layout.html:149
77
+ msgid ""
78
+ "Examples, recipes, and other code in the documentation are additionally "
79
+ "licensed under the Zero Clause BSD License."
80
+ msgstr "文档中的示例、代码片段及其他代码内容额外采用零条款 BSD 许可证授权。"
81
+
82
+ #: python_docs_theme/layout.html:152
83
+ #, python-format
84
+ msgid ""
85
+ "See <a href=\"%(license_file)s\">History and License</a> for more "
86
+ "information."
87
+ msgstr "更多信息请参阅《<a href=\"%(license_file)s\"> 历史与许可 </a>》。"
88
+
89
+ #: python_docs_theme/layout.html:155
90
+ #, python-format
91
+ msgid "Hosted on %(hosted_on)s."
92
+ msgstr "托管在%(hosted_on)s 上。"
93
+
94
+ #: python_docs_theme/layout.html:163
95
+ #, python-format
96
+ msgid "Last updated on %(last_updated)s."
97
+ msgstr "最后更新于%(last_updated)s 。"
98
+
99
+ #: python_docs_theme/layout.html:166
100
+ #, python-format
101
+ msgid "<a href=\"%(theme_issues_url)s\">Found a bug</a>?"
102
+ msgstr "<a href=\"%(theme_issues_url)s\">发现了错误</a>?"
103
+
104
+ #: python_docs_theme/layout.html:170
105
+ #, python-format
106
+ msgid ""
107
+ "Created using <a href=\"https://www.sphinx-doc.org/\">Sphinx</a> "
108
+ "%(sphinx_version)s."
109
+ msgstr ""
110
+ "使用<a href=\"https://www.sphinx-doc.org/\">Sphinx</a> %(sphinx_version)s 创建。"
111
+
112
+ #: python_docs_theme/static/copybutton.js:30
113
+ #: python_docs_theme/static/copybutton.js:55
114
+ msgid "Copy"
115
+ msgstr "复制"
116
+
117
+ #: python_docs_theme/static/copybutton.js:31
118
+ msgid "Copy to clipboard"
119
+ msgstr "复制到剪贴板"
120
+
121
+ #: python_docs_theme/static/copybutton.js:53
122
+ msgid "Copied!"
123
+ msgstr "已复制!"
@@ -0,0 +1,123 @@
1
+ # Translations template for python-docs-theme.
2
+ # Copyright (C) 2025 Python Software Foundation
3
+ # This file is distributed under the same license as the python-docs-theme
4
+ # project.
5
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2025.
6
+ #
7
+ # Translators:
8
+ # W. H. Wang <mattwang44@gmail.com>, 2025
9
+ #
10
+ #, fuzzy
11
+ msgid ""
12
+ msgstr ""
13
+ "Project-Id-Version: python-docs-theme 2025.5\n"
14
+ "Report-Msgid-Bugs-To: https://github.com/python/python-docs-theme/issues\n"
15
+ "POT-Creation-Date: 2025-09-06 08:40+0100\n"
16
+ "PO-Revision-Date: 2025-09-06 07:41+0000\n"
17
+ "Last-Translator: W. H. Wang <mattwang44@gmail.com>, 2025\n"
18
+ "Language-Team: Chinese (Taiwan) (https://app.transifex.com/python-doc/teams/5390/zh_TW/)\n"
19
+ "MIME-Version: 1.0\n"
20
+ "Content-Type: text/plain; charset=UTF-8\n"
21
+ "Content-Transfer-Encoding: 8bit\n"
22
+ "Generated-By: Babel 2.16.0\n"
23
+ "Language: zh_TW\n"
24
+ "Plural-Forms: nplurals=1; plural=0;\n"
25
+
26
+ #: python_docs_theme/footerdonate.html:1
27
+ msgid "The Python Software Foundation is a non-profit corporation."
28
+ msgstr "Python 軟體基金會是一家非營利法人。"
29
+
30
+ #: python_docs_theme/footerdonate.html:2
31
+ msgid "Please donate."
32
+ msgstr "敬請捐贈。"
33
+
34
+ #: python_docs_theme/layout.html:6
35
+ msgid "Navigation"
36
+ msgstr "導航"
37
+
38
+ #: python_docs_theme/layout.html:51 python_docs_theme/layout.html:111
39
+ msgid "Quick search"
40
+ msgstr "快速搜索"
41
+
42
+ #: python_docs_theme/layout.html:52 python_docs_theme/layout.html:112
43
+ msgid "Go"
44
+ msgstr "Go"
45
+
46
+ #: python_docs_theme/layout.html:60
47
+ msgid "Theme"
48
+ msgstr "主題"
49
+
50
+ #: python_docs_theme/layout.html:62
51
+ msgid "Auto"
52
+ msgstr "自動"
53
+
54
+ #: python_docs_theme/layout.html:63
55
+ msgid "Light"
56
+ msgstr "淺色模式"
57
+
58
+ #: python_docs_theme/layout.html:64
59
+ msgid "Dark"
60
+ msgstr "深色模式"
61
+
62
+ #: python_docs_theme/layout.html:96
63
+ msgid "Menu"
64
+ msgstr "選單"
65
+
66
+ #: python_docs_theme/layout.html:142
67
+ msgid "Copyright"
68
+ msgstr "版權所有"
69
+
70
+ #: python_docs_theme/layout.html:147
71
+ msgid ""
72
+ "This page is licensed under the Python Software Foundation License Version "
73
+ "2."
74
+ msgstr "此頁面採用 Python 軟體基金會授權條款第 2 版。"
75
+
76
+ #: python_docs_theme/layout.html:149
77
+ msgid ""
78
+ "Examples, recipes, and other code in the documentation are additionally "
79
+ "licensed under the Zero Clause BSD License."
80
+ msgstr "文件中的範例、應用技巧與其他程式碼額外採用了 Zero Clause BSD 授權條款。"
81
+
82
+ #: python_docs_theme/layout.html:152
83
+ #, python-format
84
+ msgid ""
85
+ "See <a href=\"%(license_file)s\">History and License</a> for more "
86
+ "information."
87
+ msgstr "更多訊息請見<a href=\"%(license_file)s\">歷史與授權條款</a>。"
88
+
89
+ #: python_docs_theme/layout.html:155
90
+ #, python-format
91
+ msgid "Hosted on %(hosted_on)s."
92
+ msgstr "託管於 %(hosted_on)s。"
93
+
94
+ #: python_docs_theme/layout.html:163
95
+ #, python-format
96
+ msgid "Last updated on %(last_updated)s."
97
+ msgstr "最後更新於 %(last_updated)s。"
98
+
99
+ #: python_docs_theme/layout.html:166
100
+ #, python-format
101
+ msgid "<a href=\"%(theme_issues_url)s\">Found a bug</a>?"
102
+ msgstr "<a href=\"%(theme_issues_url)s\">發現 bug</a>?"
103
+
104
+ #: python_docs_theme/layout.html:170
105
+ #, python-format
106
+ msgid ""
107
+ "Created using <a href=\"https://www.sphinx-doc.org/\">Sphinx</a> "
108
+ "%(sphinx_version)s."
109
+ msgstr ""
110
+ "以 <a href=\"https://www.sphinx-doc.org/\">Sphinx</a>%(sphinx_version)s建立。 "
111
+
112
+ #: python_docs_theme/static/copybutton.js:30
113
+ #: python_docs_theme/static/copybutton.js:55
114
+ msgid "Copy"
115
+ msgstr "複製"
116
+
117
+ #: python_docs_theme/static/copybutton.js:31
118
+ msgid "Copy to clipboard"
119
+ msgstr "複製到剪貼板"
120
+
121
+ #: python_docs_theme/static/copybutton.js:53
122
+ msgid "Copied!"
123
+ msgstr "已複製!"
@@ -451,6 +451,7 @@ div.genindex-jumpbox a {
451
451
  color: #000;
452
452
  background-color: #fff;
453
453
  border: 1px solid #ac9; /* follows div.body pre */
454
+ display: none;
454
455
  }
455
456
 
456
457
  .copybutton:hover {
@@ -461,6 +462,14 @@ div.genindex-jumpbox a {
461
462
  background-color: #ddd;
462
463
  }
463
464
 
465
+ .highlight:active .copybutton {
466
+ display: block;
467
+ }
468
+
469
+ .highlight:hover .copybutton {
470
+ display: block;
471
+ }
472
+
464
473
  @media (max-width: 1023px) {
465
474
  /* Body layout */
466
475
  div.body {