2020-01-02 22:59:00 +01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2020-02-16 06:14:08 +01:00
|
|
|
# update template .pot file from source code strings
|
2020-01-02 22:59:00 +01:00
|
|
|
#
|
2020-02-25 00:10:10 +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
|
|
|
|
|
2020-02-16 06:14:08 +01:00
|
|
|
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
|