anki/qt/po/scripts/update-po-template

22 lines
415 B
Plaintext
Raw Normal View History

2020-01-02 22:59:00 +01:00
#!/bin/bash
#
# update template .pot file from source code strings
2020-01-02 22:59:00 +01:00
#
set -eu -o pipefail ${SHELLFLAGS}
2020-01-04 23:35:46 +01:00
2020-02-26 09:09:06 +01:00
topDir=$(dirname $0)/../../../
2020-01-04 23:35:46 +01:00
cd $topDir
2020-01-02 22:59:00 +01:00
all=all.files
echo "Updating anki.pot..."
2020-01-17 02:14:54 +01:00
for i in pylib/anki/{*.py,importing/*.py}; do
2020-01-02 22:59:00 +01:00
echo $i >> $all
done
2020-01-04 23:35:46 +01:00
for i in qt/aqt/{*.py,forms/*.py}; do
2020-01-02 22:59:00 +01:00
echo $i >> $all
done
xgettext -cT: -s --no-wrap --files-from=$all --output=qt/po/repo/desktop/anki.pot
2020-01-02 22:59:00 +01:00
rm $all