Skip to content

Commit a464c5f

Browse files
committed
Rename locale_dirs to locales
1 parent 68de5ca commit a464c5f

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

scripts/commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
set -eu
77

8-
cd $(dirname $0)/../cpython/Doc/locale/${PYDOC_LANGUAGE}/LC_MESSAGES
8+
cd $(dirname $0)/../cpython/Doc/locales/${PYDOC_LANGUAGE}/LC_MESSAGES
99

1010
extra_files=".tx/config stats.json potodo.md"
1111

scripts/generate_templates.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ set -xeu
1414
test -n ${PYDOC_TX_PROJECT+x}
1515
test -n ${PYDOC_LANGUAGE+x}
1616

17-
# Make sure to run all commands from CPython docs locale directory
18-
cd $(dirname $0)/../cpython/Doc/locale
17+
# Make sure to run all commands from CPython docs locales directory
18+
cd $(dirname $0)/../cpython/Doc/locales
1919

2020
# Generate message catalog template (.pot) files
2121
# TODO: use `make -C .. gettext` when there are only Python >= 3.12

scripts/lint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ sed -i "/^\s*'literal-block',/s/ '/ #'/" conf.py
2626
opts='-E -b gettext -q -D gettext_compact=0 -d build/.doctrees . build/gettext'
2727
make build ALLSPHINXOPTS="$opts"
2828
# Update translation files with latest POT
29-
sphinx-intl update -d locale -p build/gettext -l ${PYDOC_LANGUAGE} > /dev/null
29+
sphinx-intl update -p build/gettext -l ${PYDOC_LANGUAGE} > /dev/null
3030

31-
cd locale/${PYDOC_LANGUAGE}/LC_MESSAGES
31+
cd locales/${PYDOC_LANGUAGE}/LC_MESSAGES
3232
sphinx-lint 2> $(realpath "$rootdir/logs/sphinxlint.txt")
3333

3434
# Undo changes to undo literal blocks disabling

scripts/potodo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test -n ${PYDOC_LANGUAGE+x}
1111

1212
rootdir=$(realpath $(dirname $0)/..)
1313

14-
cd "$rootdir"/cpython/Doc/locale/${PYDOC_LANGUAGE}/LC_MESSAGES
14+
cd "$rootdir"/cpython/Doc/locales/${PYDOC_LANGUAGE}/LC_MESSAGES
1515

1616
potodo --no-cache > potodo.md
1717

scripts/pull_translations.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ set -xeu
2121

2222
test -n ${PYDOC_TX_PROJECT+x}
2323

24-
cd "$(dirname $0)/../cpython/Doc/locale/${PYDOC_LANGUAGE}/LC_MESSAGES/"
24+
cd "$(dirname $0)/../cpython/Doc/locales/${PYDOC_LANGUAGE}/LC_MESSAGES/"
2525

2626
# If a PO file is provided as input, convert it into Transifex resource
2727
# and add it be pulled (instead of pulling all translations files).

scripts/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rm -rf cpython
1919

2020
# Check out needed repositories
2121
git clone --depth 1 --single-branch --branch ${PYDOC_VERSION} https://github.com/python/cpython cpython
22-
git clone --depth 1 --single-branch --branch ${PYDOC_VERSION} ${PYDOC_REPO} cpython/Doc/locale/${PYDOC_LANGUAGE}/LC_MESSAGES
22+
git clone --depth 1 --single-branch --branch ${PYDOC_VERSION} ${PYDOC_REPO} cpython/Doc/locales/${PYDOC_LANGUAGE}/LC_MESSAGES
2323

2424
# Install dependencies; Require being in a VENV or in GitHub Actions
2525
set +u

0 commit comments

Comments
 (0)