I’m programming a multilanguage website in Yii but wondering how i can support all english languages without having to do both “en_au”, “en_us” etc. folders in each view folder. I think people are satisfied if just the language is english.
Right now I’m using “Yii::app()->request->preferredLanguage” to obtain the users preferred language.
What I find problematic with this behaviour is that if you set the site language to da_DK all the Yii/Zii errors start to appear in English, because the only language files are for just "da". We worked around this by rolling a custom message class that look just the language part of the locale and loaded those ones in for core messages.