AdminScripts: make_po
| File make_po, 391 bytes (added by asterix, 15 months ago) |
|---|
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | LANGS="fr_FR bg_BG es_ES pt_BR eo ru_RU de_DE" |
| 3 | |
| 4 | # create pot file |
| 5 | xgettext -k_ --c++ --sort-by-file -o msg.pot *.php --from-code utf-8 |
| 6 | |
| 7 | # update po files |
| 8 | for l in $LANGS; do |
| 9 | msgmerge -U locale/$l/LC_MESSAGES/msg.po msg.pot |
| 10 | done |
| 11 | |
| 12 | #vi locale/fr_FR/LC_MESSAGES/msg.po |
| 13 | |
| 14 | # Generate mo files |
| 15 | for l in $LANGS; do |
| 16 | msgfmt -o locale/$l/LC_MESSAGES/msg.mo locale/$l/LC_MESSAGES/msg.po |
| 17 | done |
