|
Revision 318, 0.5 KB
(checked in by aprilp, 8 years ago)
|
|
i18n
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | for i in *_*; 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 | |
|---|
| 15 | done |
|---|