Replace `update-translations.sh` script with `makemessages --all`.

master
Fabio Caccamo 2022-10-17 14:24:35 +02:00
parent f4617ac126
commit ead930d3b4
3 changed files with 4 additions and 6 deletions

View File

@ -114,6 +114,8 @@ LANGUAGES = (
) )
LANGUAGE_CODE = "en" LANGUAGE_CODE = "en"
LOCALE_PATHS = (os.path.join(BASE_DIR, "admin_interface/locale/"),)
ROOT_URLCONF = "tests.urls" ROOT_URLCONF = "tests.urls"
MEDIA_ROOT = os.path.join(BASE_DIR, "admin_interface/public/media/") MEDIA_ROOT = os.path.join(BASE_DIR, "admin_interface/public/media/")

View File

@ -61,7 +61,7 @@ deps =
-r requirements.txt -r requirements.txt
whitelist_externals = git whitelist_externals = git
commands = commands =
./update-translations.sh python -m django makemessages --all
python -m django compilemessages python -m django compilemessages --ignore ".tox" --ignore ".venv" --ignore "venv"
git diff git diff
git diff-index --quiet HEAD git diff-index --quiet HEAD

View File

@ -1,4 +0,0 @@
#!/bin/bash
for lang in es fa fr it pl pt_BR tr; {
python -m django makemessages -l $lang;
}