From 900baf2eaefcde51c6de740cde3f0a99eb2f0791 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 1 Aug 2021 10:17:14 +0200 Subject: [PATCH] [mod] manage - implement babel commands, drop update_translations.sh In ./manage implement babel.*: - extract : extract messages from source files and generate POT file - update : update existing message catalogs from POT file - compile : compile translation catalogs into binary MO files Replace searx_extra/update/update_translations.sh by command: - ci.babel.update Signed-off-by: Markus Heiser --- .github/workflows/integration.yml | 4 +- Makefile | 2 +- manage | 47 ++++++++++++++++++++--- searx_extra/update/update_translations.sh | 28 -------------- 4 files changed, 44 insertions(+), 37 deletions(-) delete mode 100755 searx_extra/update/update_translations.sh diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index f4ffd77be..78fc66e3f 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -111,9 +111,7 @@ jobs: - name: Update transations id: update continue-on-error: true - run: | - pip install babel jinja2 - searx_extra/update/update_translations.sh + run: make V=1 ci.babel.update - name: Open pull request if: steps.update.outcome == 'success' uses: peter-evans/create-pull-request@v3 diff --git a/Makefile b/Makefile index 6c22d5e2e..d48f5c531 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,7 @@ test.shell: # wrap ./manage script MANAGE += buildenv -MANAGE += babel.compile +MANAGE += ci.babel.update babel.extract babel.update babel.compile MANAGE += data.all data.languages data.useragents data.osm_keys_tags MANAGE += docs.html docs.live docs.gh-pages docs.prebuild docs.clean MANAGE += docker.build docker.push docker.buildx diff --git a/manage b/manage index df6b1c7d1..42c617f5b 100755 --- a/manage +++ b/manage @@ -44,8 +44,10 @@ help() { cat <