Skip to content

Commit

Permalink
More translation template work
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
tobbi committed Oct 15, 2024
1 parent 664fe12 commit ecd603c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/translation_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
sudo apt-get update
sudo apt-get install -y gettext
# Checkout master to make git describe work
git checkout -b "master" -t origin/master
# Update translation templates:
chmod +x makepot.sh
sh ./makepot.sh
Expand Down
3 changes: 1 addition & 2 deletions makepot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ rm -f data/locale/main.pot data/locale/credits.pot data/locale/objects.pot data/
for LEVELSET in $(ls data/levels); do
SCRIPT_FILES=$(find data/levels/$LEVELSET -name "*.nut")
for SCRIPT_FILE in $SCRIPT_FILES; do
name=$(basename ${SCRIPT_FILE})
name=${name/.nut/}
name=$(basename ${SCRIPT_FILE}) | sed 's/.nut//g'
python tools/extract_strings.py ${SCRIPT_FILE} data/levels/$LEVELSET/scripts_${name}.txt
done
done
Expand Down

0 comments on commit ecd603c

Please sign in to comment.