Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

date format not correctly translated to Dutch form

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi Anthony,

I just found that the default grid template does not translate the dates into the normal Dutch format when the default language of the site langiage is set to Dutch.
I expected this to be an error in the translation files, but these are correct: the error only shows with the Grid2 default template, in Shopfront and in other Joomla templates the dates are okay.

I am using the Zen default template version 1.0.5; the Zen Grid Frameword version 1.0.2; all inside j 1.5.18.

Any advice on how to correct this?

Best regards,

Paul
  • Paul Kleingeld's Avatar
  • Paul Kleingeld
  • 12 Month basic
  • 88 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Paul,

Got a link so I can see which date it is?

Thanks Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi Anthony,

Yes, the link is:
this is the site

The date projected is juli 8 2010; the correct Dutch format is 8 juli 2010.

Best regards,

Paul
  • Paul Kleingeld's Avatar
  • Paul Kleingeld
  • 12 Month basic
  • 88 posts
  • Karma: 0
The administrator has disabled public write access.
Hey Paul,

That format is set in the override files for Zen Default,

You can find this line of code
<?php echo JHTML::_('date', $this->item->created, JText::_('<span class="datemonth">%b</span><span class="dateday">%d</span><span class="dateyear">%Y</span>')); ?>

in the following files

/templates/zenDefault/html/com_content/article/default.php line42

/templates/zenDefault/html/com_content/frontpage/default_item.php line88

/templates/zenDefault/html/com_content/category/blog_item.php line83

/templates/zenDefault/html/com_content/section/blog_item.php line 85

You can replace it with
<?php echo JHTML::_('date', $this->article->created, JText::_('<span class="dateday">%d</span><span class="datemonth">%b</span><span class="dateyear">%Y</span>')); ?>

That should give you the right format.

Cheers,
Jason.
  • Jason D's Avatar
  • Jason D
  • 6 Month Developer
  • 2957 posts
  • 12 Thanks
  • Karma: 75
The administrator has disabled public write access.
Hi Jason,

That sure did it! Thanks.

paul
  • Paul Kleingeld's Avatar
  • Paul Kleingeld
  • 12 Month basic
  • 88 posts
  • Karma: 0
The administrator has disabled public write access.
Great thanks for getting back to us Paul :)
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers