Skip to content

Commit

Permalink
find locale
Browse files Browse the repository at this point in the history
  • Loading branch information
shun2wang committed Dec 17, 2023
1 parent b81d816 commit 00f810c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/translation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00f810c

Please sign in to comment.