Skip to content

Commit 9c017a1

Browse files
Fixup
1 parent a690993 commit 9c017a1

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- run: python babel_runner.py compile -l pt_BR
8181
- name: Print .pot file
8282
shell: bash
83-
run: cat python_docs_theme/locale/messages.pot
83+
run: cat python_docs_theme/locale/python-docs-theme.pot
8484
- name: Print .po file
8585
shell: bash
86-
run: cat python_docs_theme/locale/pt_BR/LC_MESSAGES/messages.po
86+
run: cat python_docs_theme/locale/pt_BR/LC_MESSAGES/python-docs-theme.po

python_docs_theme/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
TYPE_CHECKING = False
88
if TYPE_CHECKING:
9-
from sphinx.application import Sphinx # noqa: F401
10-
from sphinx.util.typing import ExtensionMetadata # noqa: F401
9+
from sphinx.application import Sphinx
10+
from sphinx.util.typing import ExtensionMetadata
1111

1212
__version__ = "2025.5"
1313

@@ -16,8 +16,9 @@
1616
MESSAGE_CATALOG_NAME = "python-docs-theme"
1717

1818

19-
def setup(app):
19+
def setup(app: Sphinx) -> ExtensionMetadata:
2020
app.require_sphinx("7.3")
21+
2122
app.add_html_theme("python_docs_theme", str(THEME_PATH))
2223
app.add_message_catalog(MESSAGE_CATALOG_NAME, LOCALE_DIR)
2324

python_docs_theme/locales/pl_PL/LC_MESSAGES/messages.po renamed to python_docs_theme/locale/pl/LC_MESSAGES/python-docs-theme.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ msgstr ""
1111
"POT-Creation-Date: 2025-08-07 19:09+0200\n"
1212
"PO-Revision-Date: 2025-08-07 15:11+0200\n"
1313
"Last-Translator: Stan Ulbrych \n"
14-
"Language: pl_PL\n"
15-
"Language-Team: pl_PL <[email protected]>\n"
14+
"Language: pl\n"
15+
"Language-Team: pl <[email protected]>\n"
1616
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && "
1717
"(n%100<10 || n%100>=20) ? 1 : 2);\n"
1818
"MIME-Version: 1.0\n"

0 commit comments

Comments
 (0)