root/luci/trunk/build/i18n-init.sh @ 7106

Revision 7106, 292 bytes (checked in by jow, 2 years ago)

build: add i18n-init.sh, a helper script to initalize missing *.po files

  • Property svn:executable set to *
RevLine 
[7106]1#!/bin/sh
2
3for lang in $(cd po; echo ?? ??_??); do
4    for file in $(cd po/templates; echo *.pot); do
5        if [ ! -f "po/$lang/${file%.pot}.po" ]; then
6            msginit --no-translator -l "$lang" -i "po/templates/$file" -o "po/$lang/${file%.pot}.po"
7            svn add "po/$lang/${file%.pot}.po"
8        fi
9    done
10done
Note: See TracBrowser for help on using the browser.