mirror of
https://github.com/openwrt/luci.git
synced 2026-02-04 12:06:01 +08:00
build: add i18n-init.sh, a helper script to initalize missing *.po files
This commit is contained in:
10
build/i18n-init.sh
Executable file
10
build/i18n-init.sh
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user