From: Jo-Philipp Wich Date: Sat, 21 May 2011 21:22:47 +0000 (+0000) Subject: build: add i18n-init.sh, a helper script to initalize missing *.po files X-Git-Tag: 0.11.0~2093 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=7d73e79c49b7ae4af35f1d6d00d7d84c5343d3f0;ds=inline build: add i18n-init.sh, a helper script to initalize missing *.po files --- diff --git a/build/i18n-init.sh b/build/i18n-init.sh new file mode 100755 index 000000000..72199bb38 --- /dev/null +++ b/build/i18n-init.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +for lang in $(cd po; echo ?? ??_??); do + for file in $(cd po/templates; echo *.pot); do + if [ ! -f "po/$lang/${file%.pot}.po" ]; then + msginit --no-translator -l "$lang" -i "po/templates/$file" -o "po/$lang/${file%.pot}.po" + svn add "po/$lang/${file%.pot}.po" + fi + done +done