root/trunk/wifidog-auth/wifidog/locale/gen.sh @ 324

Revision 324, 0.5 KB (checked in by aprilp, 8 years ago)

*** empty log message ***

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1for i in "fr"; do
2    echo > smarty.txt
3    find ../templates -name "*.html" -exec ./gensmarty.pl {} >> smarty.txt \;
4    find ../local_content -name "*.html" -exec ./gensmarty.pl {} >> smarty.txt \;
5
6    FILE="$i/LC_MESSAGES/messages.po"
7    if [ -f $FILE ]; then
8        find .. -name "*.php" -exec xgettext -C -j -o $FILE --keyword=_ {} \;
9        xgettext -C -j -o $FILE --keyword=_ smarty.txt
10    else
11        find .. -name "*.php" -exec xgettext -C -o $FILE --keyword=_ {} \;
12        xgettext -C -j -o $FILE --keyword=_ smarty.txt
13    fi
14
15done
Note: See TracBrowser for help on using the browser.