PHP Get text
May 27th, 2006 by Matt
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
Oh, tell me more, great programming guru!