File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 70
70
pip install -r requirements.txt
71
71
- name : Remove locale file for testing
72
72
shell : bash
73
- run : rm -rf locales/pt_BR/
73
+ run : rm -rf python_docs_theme/ locales/pt_BR/
74
74
- run : python babel_runner.py extract
75
75
- run : python babel_runner.py init -l pt_BR
76
76
- run : python babel_runner.py update
@@ -79,10 +79,10 @@ jobs:
79
79
- run : python babel_runner.py compile -l pt_BR
80
80
- name : Print .pot file
81
81
shell : bash
82
- run : cat locales/messages.pot
82
+ run : cat python_docs_theme/ locales/messages.pot
83
83
- name : Print .po file
84
84
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
86
86
- name : list files in locales dir
87
87
shell : bash
88
- run : ls -R locales/
88
+ run : ls -R python_docs_theme/ locales/
Original file line number Diff line number Diff line change 1
- #!/usr/bin/venv python3
1
+ #!/usr/bin/env python3
2
2
"""Script for handling translations with Babel"""
3
3
from __future__ import annotations
4
4
24
24
# Global variables used by pybabel below (paths relative to PROJECT_DIR)
25
25
DOMAIN = "messages"
26
26
COPYRIGHT_HOLDER = "Python Software Foundation"
27
- LOCALES_DIR = "locales"
28
- POT_FILE = Path (LOCALES_DIR , f"{ DOMAIN } .pot" )
29
27
SOURCE_DIR = "python_docs_theme"
28
+ LOCALES_DIR = Path (SOURCE_DIR , "locales" )
29
+ POT_FILE = Path (LOCALES_DIR , f"{ DOMAIN } .pot" )
30
30
MAPPING_FILE = ".babel.cfg"
31
31
32
32
You can’t perform that action at this time.
0 commit comments