Jump to content


Issue information

  • #035400

  • Fixed

  • 2.5.1

  • 2.5.2

  • 0 - None Assigned


Issue Confirmations

  • Yes (0)No (0)
Photo

Blog archive: dates only in english

Posted by T3XT3 on 12 January 2012 - 06:19 PM

The dates in the blog archive are created with the PHPs date function and thus only in english.

changed status to: Cannot Reproduce

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:

{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"}


changed status to: Fixed
changed fixed-in version to: 2.5.2

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