diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-05-21 21:22:47 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-05-21 21:22:47 +0000 |
commit | 7d73e79c49b7ae4af35f1d6d00d7d84c5343d3f0 (patch) | |
tree | 609451070f6286d932ba56c7f79080ef961ee92f /build | |
parent | eca993e98f56a7b7410f04f3deec1106edf1d013 (diff) |
build: add i18n-init.sh, a helper script to initalize missing *.po files
Diffstat (limited to 'build')
-rwxr-xr-x | build/i18n-init.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 |