forked from UnionOfRAD/lithium
-
Notifications
You must be signed in to change notification settings - Fork 0
Translation Tools
David Persson edited this page Jul 23, 2011
·
2 revisions
Creating a new PO message file from the template.
msginit -l <locale> -i message_default.pot -o <locale>/LC_MESSAGES/default.po \
--no-translator
}}}
Using `xgettext` tool for extracting message strings as an alternative to `li3 g11n extract`.
```sh
cd <your app directory>
xgettext $(find . -name "*.php") -o resources/g11n/message_default.pot \
--from-code=utf-8 \
--keyword=\$t \
--keyword=\$tn:1,2 \
--package-name="lithium" \
--copyright-holder="Union of RAD" \
--package-version="0.9.9" \
--msgid-bugs-address="development@example.org"