Issue information
-
#035400
-
Fixed
-
2.5.1
-
2.5.2
-
0 - None Assigned
Issue Confirmations
-
Yes (0)No (0)
The dates in the blog archive are created with the PHPs date function and thus only in english.
The code is already using locale specific functions or language abstraction (M_month):
$entry['entry_day'] = gmstrftime( $this->settings['clock_joined'], $entry['entry_date'] + $this->registry->getClass('class_localization')->getTimeOffset() );
$entry['entry_month'] = $this->lang->words[ 'M_' . gmdate( "n", $entry['entry_date'] + $this->registry->getClass('class_localization')->getTimeOffset() ) ] . " " . gmdate( "Y", $entry['entry_date'] + $this->registry->getClass('class_localization')->getTimeOffset() );
$entry['entry_monthday'] = gmstrftime( "%d", $entry['entry_date'] + $this->registry->getClass('class_localization')->getTimeOffset() );Maybe I haven't figured out it yet when I posted the report. But it is template bug! in the blogArchive template you will find this code:
Of course it should be this to be localised:
{parse expression="date( 'd M', $entry['_entry_date'] )"}
Of course it should be this to be localised:
{parse date="$entry['_entry_date']" format="manual{%d %b}" relative="false"}
I missed that part, yes you can indeed replace it with the code you posted.
0 user(s) are reading this issue
0 members, 0 guests, 0 anonymous users












