CApplication uses CLocale by hardcoded name.
Wouldn't it be an improvement if it instead has an attribute localeClass with "CLocale" as the default value?
That way it could be overwritten in application configuration.
What's your use case for custom CLocale?
Currently it is to override behavior when getting information about languages.
In the future it might extend to loading data from more sources.
Maybe the better question is: why ever would you prefer using hard-coded class names?
Makes sense. Will set it to next release.
Sorry, my bad; did not mean to close it!
changelog for #3077
I made the change.
Can you send a pull request?
I have a siimilar issue.
I want to take all the currencies (currencySymbols).
There is a way to get it by country-region code (3-letter ISO 4217 code)
for example Yii::app()->locale->getCurrencySymbol('EUR');
but there is no method return all the currencies!
$_data is private and cannot get it directed. Also no method exist to returns $_data
Please I waiting for the version 1.1.16 :)
The code is in master. 1.1.16 won't include the fix while 1.1.17 will.