Hi Guys
I'am trying to output the localized month names in french, german and italian for my newsletter. At the moment my default language is french.
This code outputs everytime time the french month name:
foreach ($languages->find("name!=en") as $language) {
$user->language = $languages->get($language->name);
switch ($language->name) {
case 'default':
$date = strftime("%d. %B %G", $page->date). "-FR/DEFAULT";
break;
case 'de':
$date = strftime("%d. %B %G", $page->date). "-DE";
break;
case 'it':
$date = strftime("%d. %B %G", $page->date). "-IT";
break;
}
echo $date."<br />";
}
output looks like this:
31. mars 2016-FR/DEFAULT
31. mars 2016-DE
31. mars 2016-IT
I also have set the right locale inside every language translation file. How can I fix this, that it looks like this:
31. mars 2016-FR/DEFAULT
31. März 2016-DE
31. marzo 2016-IT