I see there are a few threads about this but I am having a bit of trouble setting the locale for my region. I am using the SilverStripe blog and events modules and the dates are displaying in English. I need them to display in Afrikaans for South Africa.
I have tried both of these in my _config.php file but they don't seem to work:
i18n::set_locale('af_ZA');
setlocale(LC_TIME, 'af_ZA', 'af_ZA.UTF8', 'Afrikaans');
EDIT:
Just narrowed it down to working on localhost but not working on live server. Is this server dependant? I have done a dev/build and a flush.