summaryrefslogtreecommitdiffhomepage
path: root/build
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-05-21 21:22:47 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-05-21 21:22:47 +0000
commit7d73e79c49b7ae4af35f1d6d00d7d84c5343d3f0 (patch)
tree609451070f6286d932ba56c7f79080ef961ee92f /build
parenteca993e98f56a7b7410f04f3deec1106edf1d013 (diff)
build: add i18n-init.sh, a helper script to initalize missing *.po files
Diffstat (limited to 'build')
-rwxr-xr-xbuild/i18n-init.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/i18n-init.sh b/build/i18n-init.sh
new file mode 100755
index 0000000000..72199bb38b
--- /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