Single French language website so no need to switch languages on the fly.
In config.php:
i18n::set_locale('fr');
DateField::set_default_config('setLocale','fr');
Site is loading up fr.yml files fine.
The CMS database is being written to in French.
template.ss
<p class="date">
<span class="month">$FromDate.ShortMonth</span>
<span class="day">$FromDate.DayOfMonth</span>
<span class="year">$FromDate.Year</span>
</p>
class.php
static $db = array (
'FromDate' => 'Date',
);
public function getCMSFields() {
...
$dateField = new DateField('FromDate');
$dateField->setConfig('showcalendar', true);
$dateField->setLocale('fr');
$dateField->setConfig('jslocale', 'fr');
$fields->addFieldToTab('Root.Main', $dateField);
...
}
Front end output:
AUG
28
2015
The back end CMS calendar is displaying in French but the front end doesn't seem to want to play ball.
How do I get Silverstripe to output AUG as AOÛT on the template.ss?
Is it something to do with the server locale? Anything to set in Apache?
Any help appreciated. All my searches have come up with nothing. I'm posting to the forum as a last resort.