anki/qt/i18n/update-po-template

21 lines
393 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 -eo pipefail
2020-01-04 23:35:46 +01:00
topDir=$(dirname $0)/../..
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/i18n/po/desktop/anki.pot
2020-01-02 22:59:00 +01:00
rm $all