diff --git a/tests/settings.py b/tests/settings.py index 58f63e2..ba2f029 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -114,6 +114,8 @@ LANGUAGES = ( ) LANGUAGE_CODE = "en" +LOCALE_PATHS = (os.path.join(BASE_DIR, "admin_interface/locale/"),) + ROOT_URLCONF = "tests.urls" MEDIA_ROOT = os.path.join(BASE_DIR, "admin_interface/public/media/") diff --git a/tox.ini b/tox.ini index 364a75b..64c7d10 100644 --- a/tox.ini +++ b/tox.ini @@ -61,7 +61,7 @@ deps = -r requirements.txt whitelist_externals = git commands = - ./update-translations.sh - python -m django compilemessages + python -m django makemessages --all + python -m django compilemessages --ignore ".tox" --ignore ".venv" --ignore "venv" git diff git diff-index --quiet HEAD diff --git a/update-translations.sh b/update-translations.sh deleted file mode 100755 index 606fdc6..0000000 --- a/update-translations.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -for lang in es fa fr it pl pt_BR tr; { - python -m django makemessages -l $lang; -}