luci/build/i18n-sync.sh
Jo-Philipp Wich 5fd8761583 build: rework i18n-sync.sh to support new structure
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-04-20 10:17:23 +02:00

18 lines
360 B
Bash
Executable file

#!/bin/sh
[ -d ./build ] || {
echo "Execute as ./build/i18n-sync.sh" >&2
exit 1
}
./build/mkbasepot.sh
find . -name '*.pot' -and -not -name base.pot -and -not -name rrdtool.pot | \
while read path; do
dir="${path%/po/templates/*}"
echo -n "Updating ${path#./} ... "
./build/i18n-scan.pl "$dir" > "$path"
echo "done"
done
./build/i18n-update.pl