diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fe8d3619..46cbf949 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -91,8 +91,8 @@ jobs: - name: Check Translation Catalogs if: matrix.python-version == '3.12' && matrix.database == 'sqlite' run: | - 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 + python manage.py makemessages -l tr -l zh -l uk --no-obsolete --ignore=staticfiles -v0 + for dir in locale/tr/LC_MESSAGES locale/zh/LC_MESSAGES locale/uk/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/CONTRIBUTING.md b/CONTRIBUTING.md index d974050e..be8b16d6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -61,9 +61,9 @@ It lists the dead keys it leaves out: a character only a dead key types cannot b English is the source language; the panel is translated into the other 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 -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 +python manage.py makemessages -l tr -l zh -l uk --no-obsolete --ignore=staticfiles --ignore=.venv +# translate the new and fuzzy entries of the django.po of locale/tr, locale/zh and locale/uk +python manage.py compilemessages -l tr -l zh -l uk ``` ## Running tests diff --git a/Dockerfile b/Dockerfile index ae75b611..d12820d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,7 @@ RUN apt-get update -qq \ libvirt0 \ nginx \ openssh-client \ + postgresql-client \ python3 \ supervisor \ tzdata \ diff --git a/README.md b/README.md index 5cc03272..17076009 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ flowchart TB
virsh or virt-manager are picked up on their own