Active
Project:
Responsive Blog
Version:
7.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2012 at 04:49 UTC
Updated:
15 Jun 2015 at 23:43 UTC
Jump to comment: Most recent
Hi,
When a contend is published the date in submitted div isn't localized.
I'm actually on a French localized site and the publishing day is always in English event if French is the default language.
I've a workaround but it changes the theme's 1.0 displaying.
I've replaced
<?php print t('Posted by') . ' ' . $name; ?> <?php print t('on') . ' ' . $date; ?>
with
<?php print $submitted; ?>
Comments
Comment #1
dpriore commentedhere is the correct way to localize "submitted by" end relative date
Change to:
<?php print t('Posted by') . ' ' . $name; ?> <?php print t('on') . ' ' . format_date($node->created, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL); ?>This solve this issue.