International date formats

Permalink
Hi Guys,

is it possible to get the month name in different languages? I have a multilingual site, changing the language should change the month name in page list block.

I found this how-to from michele:
http://www.concrete5.org/documentation/how-tos/developers/internati...

and this discussion:
http://www.concrete5.org/community/forums/internationalization/simp...

How will that work in v. 5.7.x ?

Best Torsten

tsilbermann
 
swissmovie replied on at Permalink Reply
swissmovie
Hi,
I do it like that:

<?php
defined('C5_EXECUTE') or die("Access Denied.");
$dh = Core::make('helper/date');
$pageDate = strtotime($c->getCollectionDatePublic());
setlocale(LC_ALL, Localization::activeLocale().'.UTF8');
$date = strftime("%e %B %Y", $pageDate); 
echo $date;
?>