faqts : Computers : Programming : Languages : PHP : Common Problems : Internationalization

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

14 of 29 people (48%) answered Yes
Recently 0 of 10 people (0%) answered Yes

Entry

What is the best way to write an application for different languages?
What is gettext used for?

May 14th, 2000 18:22
Nathan Wallace, chuck


I'd suggest gettext - there is gettext support in php 3.0.something (6?
9?) and  later, and in php4 (compile --with-gettext). There's not much
documentation right now, but it's pretty easy to use - you make the
translations, set the locale, and then put _() around all your strings,
and boom, it works. Fast, and also fairly standard.