Translating Month Names in Blog Date Archive Block

Permalink
Yep.. I'm at wits end.
Over the past several days, I have read the various threads on this topic, and still can't figure out how to get my month names to show up in Hebrew on my website.

Page in question is here:http://www.dream-smith.co.il/articles/...
It has the Blog Date Archives at the lower left.
Months are displayed in English. Bahh

If someone can provide me with a complete how-to on this, I will forever be grateful to you! <3

TIA
Sharon

anchoredbutterfly
 
PatrickHeck replied on at Permalink Best Answer Reply 1 Attachment
PatrickHeck
Hi anchoredbutterfly,

the output of localized month names is not implemented yet for the "date_archive" block. To change this just create a directory /blocks/date_archive/ . Then save the attached file there and everything should work smoothly.

Best
Patrick

EDIT: Opened pull request for this:https://github.com/concrete5/concrete5/pull/1132...
anchoredbutterfly replied on at Permalink Reply
anchoredbutterfly
Thank you so very much!
Works like a charm :)
anchoredbutterfly replied on at Permalink Reply
anchoredbutterfly
Any idea how to change the date format in the guestbook/comments section?

Code line in view.php is
<?php echo date($dateFormat,strtotime($p['entryDate']));?>
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Its very easy, just remove the php variable set for date format and put your own format.
<?php echo date("d-m-Y h:i:s",strtotime($p['entryDate']));?>


N.B replaced the $dateFormat variable with your own format. For different types of date formatting, you can follow the below link:

http://php.net/manual/en/datetime.formats.date.php...

Rony
PatrickHeck replied on at Permalink Reply
PatrickHeck
Also, if you want to use the hebrew month names here as well you can call the datehelper:

Put this on top of view.php
$dh = Loader::helper("Date");


And then change your line like this:
<?php echo $dh->date("d-m-Y h:i:s",strtotime($p['entryDate']));?>