From 98df97d317e87c07d76030874c8e613d4b9cf8af Mon Sep 17 00:00:00 2001 From: Daniel Rainer Date: Wed, 7 May 2025 17:32:46 +0200 Subject: [PATCH] Add CI check for outdated translations --- .github/workflows/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3c6d0200c..9b9a6f487 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,6 +32,17 @@ jobs: - name: make fish_run_tests run: | make -C build VERBOSE=1 fish_run_tests + - uses: dtolnay/rust-toolchain@stable + - name: translation updates + run: | + # Required for our custom xgettext implementation. + cargo install --locked --version 1.0.106 cargo-expand + # Generate PO files. This should not result it a change in the repo if all translations are + # up to date. + # Ensure that fish is available as an executable. + PATH="$PWD/build:$PATH" build_tools/update_translations.fish --no-mo + # Show diff output. Fail if there is any. + git --no-pager diff --exit-code || { echo 'There are uncommitted changes after regenerating the gettext PO files. Make sure to update them via `build_tools/update_translations.fish --no-mo` after changing source files.'; exit 1; } ubuntu-32bit-static-pcre2: