Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way of i18n in PHP

I'm developing a website that's multilanguage. There are lots of solutions for example with database, .mo files, static php files etc. But what is the best way? Please can you give advice? Thanks..

like image 453
kodmanyagha Avatar asked May 29 '13 16:05

kodmanyagha


1 Answers

I would go for gettext. As it is a de-facto standard and is used in many applications in different languages. Many people use it means bigger community and good support.

If you search for gettext in stackoverflow, you'll get good resources and examples.

Getting started with it in PHP: http://www.onlamp.com/pub/a/php/2002/06/13/php.html

like image 134
Ardy Dedase Avatar answered Oct 01 '22 11:10

Ardy Dedase