Revision #2 was created by le_top on Feb 9, 2015, 8:47:35 PM.
Added missing method in example
Content
[...]
At the time of writing, the code is not very much tested in production, but some small tests indicate it is ok.
You can call this code in an 'onBeginRequest' [as is suggested in this forum entry](http://www.yiiframework.com/forum/index.php/topic/48501-detecting-browser-language-onbeginrequest/ "Forum entry") or in another location that may be more appropriate for you.
```php
class Utils {
Generally you'ld call 'Utils::setLanguageFromBrowser()'. Change the class name to your likings, or include in your Utility class.