From 2191e4012aa83f4adfbe45948b15c75eba02d752 Mon Sep 17 00:00:00 2001 From: krmax44 Date: Mon, 4 Mar 2024 20:20:32 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20properly=20fix=20translation=20c?= =?UTF-8?q?i?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/translations.yml | 10 ++++++---- Makefile | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index 76d3c6ad8..4d6f82d06 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -22,13 +22,15 @@ jobs: with: python-version: '3.10' cache: 'pip' - cache-dependency-path: setup.py + cache-dependency-path: | + setup.py + requirements.txt - name: Install system-level dependencies run: sudo apt-get update && sudo apt-get install libxml2-dev libxslt1-dev python3-dev libgdal-dev gdal-bin libmagic-dev libmagickwand-dev gettext libpoppler-cpp-dev - name: Install dependencies run: | python -m pip install --upgrade pip pip-tools - pip-sync requirements-dev.txt + pip-sync requirements.txt pip install -e . - name: Setup Git run: | @@ -38,6 +40,6 @@ jobs: run: make messagesde - name: Commit translations run: | - git add . + git add **/django.po || true git commit -m "💬 update translation messages" || true - git push -u main:weblate-source + git push -u origin main:weblate-source --force diff --git a/Makefile b/Makefile index c1389dc7d..a4fd8fe30 100644 --- a/Makefile +++ b/Makefile @@ -16,4 +16,4 @@ requirements: requirements.in requirements-dev.in requirements-production.in pip-compile requirements-production.in messagesde: - django-admin makemessages -l de --ignore public --ignore froide-env --ignore node_modules --ignore htmlcov --ignore LICENSE.txt --add-location file + python manage.py makemessages -l de --ignore public --ignore froide-env --ignore node_modules --ignore htmlcov --add-location file