PHP Get text
Posted in Technical on May 27th, 2006 1 Comment »
I have been using gettext in PHP and this is what I found out.
First add the < ?=gettext("string")?> to your php
Then “find . -type f | grep -v CVS | xargs xgettext -L PHP”
vi messages.po
replace charset with “UTF-8″
do translations
msgfmt messages.po
Then your done. I have not gotten to adding or merging text