1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/usr/bin/env bash
#
# Usage: sh localize.sh
#
# This script should be executed after adding new resource strings and after
# udating the translated .po files.
#
# This script
# - converts all compiled .rsj files to .pot files,
# - updates all translated xx.po files
#
# enable for debugging
#set -x
set -e
if [ ! -x tools/updatepofiles ]; then
cd tools
make updatepofiles
cd -
fi
RSEXT="rsj"
set -x
./tools/updatepofiles --searchdir=./units lazarusidestrconsts.$RSEXT ./languages/lazaruside.pot
exit 0
|