Hi, according to the changelog for 3.1.0, "Static properties are immutable and private, you must use Config API."
By this, I would think that we should have to change the following line in _config.php from:
i18n::set_locale('en_US');
to:
Config::inst()->update('i18n', 'current_locale', 'en_US');
But the doc page at http://doc.silverstripe.org/framework/en/topics/i18n still shows the code as
i18n::set_locale('en_US');
while further down the page, the datetime formats are updated using the new config::inst() method
Config::inst()->update('i18n', 'date_format', 'dd.MM.YYYY');
This seems quite arbitrary and confusing as to which config is still using the old or new method of updating.
Is there some inconsistency there or do I have to trial and error each configuration?