Monthly Archives: October 2010

PHP and Yii FRAMEWORK: use browser locale to set application locale

Using PHP 5.2.10 and Yii Framework 1.1.4 (http://www.yiiframework.com) I wanted my web application to use messages in a language depending on the locale used by the web browser. According to the HTTP specification, browsers can send headers, in a request, … Continue reading

Posted in programming | Tagged , | 1 Comment