anki/qt/i18n/update-po-template
Damien Elmes d1e587fca9 add ftl to the build process, and a sync-git script
also
- ensure po files are checked when updated
- add start of sync.ftl
2020-02-17 08:40:17 +10:00

21 lines
377 B
Bash
Executable File

#!/bin/bash
#
# update template .pot file from source code strings
#
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/i18n/po/desktop/anki.pot
rm $all