8000 Move locales directory inside source dir · rffontenelle/python-docs-theme@826d541 · GitHub
[go: up one dir, main page]

Skip to content

Commit 826d541

Browse files
committed
Move locales directory inside source dir
1 parent f5d080f commit 826d541

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ jobs:
7979
- run: python babel_runner.py compile -l pt_BR
8080
- name: Print .pot file
8181
shell: bash
82-
run: cat locales/messages.pot
82+
run: cat python_docs_theme/locales/messages.pot
8383
- name: Print .po file
8484
shell: bash
85-
run: cat locales/pt_BR/LC_MESSAGES/messages.po
85+
run: cat python_docs_theme/locales/pt_BR/LC_MESSAGES/messages.po
8686
- name: list files in locales dir
8787
shell: bash
88-
run: ls -R locales/
88+
run: ls -R python_docs_theme/locales/

babel_runner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/venv python3
1+
#!/usr/bin/env python3
22
"""Script for handling translations with Babel"""
33
from __future__ import annotations
44

@@ -24,9 +24,9 @@
2424
# Global variables used by pybabel below (paths relative to PROJECT_DIR)
2525
DOMAIN = "messages"
2626
COPYRIGHT_HOLDER = "Python Software Foundation"
27-
LOCALES_DIR = "locales"
28-
POT_FILE = Path(LOCALES_DIR, f"{DOMAIN}.pot")
2927
SOURCE_DIR = "python_docs_theme"
28+
LOCALES_DIR = Path(SOURCE_DIR, "locales")
29+
POT_FILE = Path(LOCALES_DIR, f"{DOMAIN}.pot")
3030
MAPPING_FILE = ".babel.cfg"
3131

3232

0 commit comments

Comments
 (0)
0