diff --git a/.github/workflows/translation.yml b/.github/workflows/translation.yml index 87202bd38b..95e208b25f 100644 --- a/.github/workflows/translation.yml +++ b/.github/workflows/translation.yml @@ -26,16 +26,16 @@ jobs: set -x find -name messages.pot messages_pot=$(find -name messages.pot) - for x in ${{ github.workspace }}/psychopy/app/locale/* ;\ - do pybabel update --input-file="$messages_pot" --output-dir="${{ github.workspace }}/psychopy/app/locale/$x/";\ + for x in $(find {{ github.workspace }}/psychopy/app/locale -type d); do + pybabel update --input-file="$messages_pot" --output-dir="${x}/"; done - name: Compiling .mo files run: | set -x - for x in ${{ github.workspace }}/psychopy/app/locale/*/*/*.po ;\ - do python3 .github/workflows/msgfmt.py --output-file "`dirname "$x"`/`basename "$x" .po`.mo" "$x" ; \ + for x in ${{ github.workspace }}/psychopy/app/locale/*/*/*.po ; do + python3 .github/workflows/msgfmt.py --output-file "`dirname "$x"`/`basename "$x" .po`.mo" "$x" ; done # - name: Compiling .mo files