Subscribe to
Posts
Comments

PHP Get text

I have been using gettext in PHP and this is what I found out.

  1. First add the < ?=gettext("string")?> to your php
  2. Then “find . -type f | grep -v CVS | xargs xgettext -L PHP”
  3. vi messages.po
  4. replace charset with “UTF-8″
  5. do translations
  6. msgfmt messages.po

Then your done. I have not gotten to adding or merging text

Technorati Tags: , ,

RSS feed | Trackback URI

1 Comment »

Comment by K
2006-11-03 21:58:50

Oh, tell me more, great programming guru!

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> in your comment.