anki/qt/po/scripts/update-po-template
Damien Elmes 46fadc2a82 don't abort build if mo file fails; rename files for consistency
Issues are now checked for in CI, so there's no need to break the
build for everyone each time there's a problem with the gettext
catalogs.
2020-02-26 17:47:02 +10:00

21 lines
393 B
Bash
Executable File

#!/bin/bash
#
# update template .pot file from source code strings
#
set -eo pipefail
topDir=$(dirname $0)/../..
cd $topDir
all=all.files
echo "Updating anki.pot..."
for i in pylib/anki/{*.py,importing/*.py}; do
echo $i >> $all
done
for i in qt/aqt/{*.py,forms/*.py}; do
echo $i >> $all
done
xgettext -cT: -s --no-wrap --files-from=$all --output=qt/po/repo/desktop/anki.pot
rm $all