Skip to content

Commit f22fbbc

Browse files
authored
Generate gettext without using geneteate_template.sh
1 parent afcc43b commit f22fbbc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ permissions:
3737
env:
3838
PYDOC_LANGUAGE: pt_BR
3939
PYDOC_REPO: ${{ github.server_url }}/${{ github.repository }}
40-
PYDOC_TX_PROJECT: ${{ inputs.tx_project }}
4140
PYDOC_VERSION: ${{ inputs.version }}
4241

4342
jobs:
@@ -215,18 +214,19 @@ jobs:
215214
run: ./scripts/setup.sh
216215

217216
- name: Generate template files without literal-block
217+
working-directory: cpython/Doc
218218
run: |
219-
sed -i '/^make/s/$opts/$opts -D gettext_additional_targets=["index"]/' scripts/generate_templates.sh
220-
./scripts/generate_templates.sh
219+
make build ALLSPHINXOPTS='-E -b gettext -D gettext_compact=0 -D gettext_additional_targets=["index"] -d build/.doctrees . build/gettext'
221220
222221
- name: Update translation files
223222
working-directory: cpython/Doc/locales/pt_BR/LC_MESSAGES
224223
run: |
225224
for po in $(git ls-files *.po); do
226-
pot="cpython/Doc/build/gettext/${po}t"
225+
pot="../../../build/gettext/${po}t"
227226
msgmerge --update --backup=off $po $pot
228227
done
229228
229+
# Run a per-directory, group-separated spellcheck
230230
- name: Check spelling
231231
working-directory: cpython/Doc/locales/pt_BR/LC_MESSAGES
232232
run: |

0 commit comments

Comments
 (0)