diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7561dfbd..9cf3d98e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -96,8 +96,8 @@ jobs: - name: Check Translation Catalogs if: matrix.python-version == '3.12' && matrix.database == 'sqlite' run: | - python manage.py makemessages -l tr --no-obsolete --ignore=staticfiles -v0 - for dir in locale/tr/LC_MESSAGES; do + python manage.py makemessages -l tr -l zh --no-obsolete --ignore=staticfiles -v0 + for dir in locale/tr/LC_MESSAGES locale/zh/LC_MESSAGES; do msgfmt --check -o /tmp/django.mo "$dir/django.po" missing=$(msgattrib --untranslated "$dir/django.po"; msgattrib --only-fuzzy "$dir/django.po") if [ -n "$missing" ]; then echo "$missing"; echo "::error file=$dir/django.po::untranslated or fuzzy messages"; exit 1; fi diff --git a/README.md b/README.md index 1d56269f..80f9017d 100644 --- a/README.md +++ b/README.md @@ -741,9 +741,9 @@ It lists the dead keys it leaves out: a character only a dead key types cannot b The panel is translated into the languages of `LANGUAGES` in `settings.py`, each with a full catalog in `locale/`. A new or changed text needs its translation in each before CI passes (needs `gettext`): ```bash -python manage.py makemessages -l tr --no-obsolete --ignore=staticfiles --ignore=.venv -# translate the new and fuzzy entries of locale/tr/LC_MESSAGES/django.po -python manage.py compilemessages -l tr +python manage.py makemessages -l tr -l zh --no-obsolete --ignore=staticfiles --ignore=.venv +# translate the new and fuzzy entries of locale/tr/LC_MESSAGES/django.po and locale/zh/LC_MESSAGES/django.po +python manage.py compilemessages -l tr -l zh ``` ### Running tests diff --git a/appsettings/tests/test_appsettings.py b/appsettings/tests/test_appsettings.py index 61b7cae4..e70a5298 100644 --- a/appsettings/tests/test_appsettings.py +++ b/appsettings/tests/test_appsettings.py @@ -28,7 +28,7 @@ class AppSettingsTestCase(TestCase): page = self.client.get(reverse("appsettings")).content.decode() choice = page[page.index('