Date Translation

Professional Jomal template designed to be easily adaptable to all kinds of business
GK User
Fri May 13, 2011 5:21 pm
Hi,
When i activate a Category Blog Layout, the dates stay in English. All my frontend is in spanish, all the dates works correctly in spanish except for Category Blog Layout. How can i translate this dates?

thanks!
User avatar
Fresh Boarder

GK User
Sat May 14, 2011 7:56 pm
please show me your www
User avatar
Platinum Boarder

GK User
Sat May 14, 2011 7:56 pm
and welcome to gavick.
User avatar
Platinum Boarder

GK User
Sun May 15, 2011 1:38 am
gauchi wrote:Hi,
When i activate a Category Blog Layout, the dates stay in English. All my frontend is in spanish, all the dates works correctly in spanish except for Category Blog Layout. How can i translate this dates?

thanks!


Hi

Please open this file: ../gk_corporate2/html/com_content/category/blog_item.php

Find this lines:
Code: Select all
<span class="createdate-day">
   <?php echo date("j",$article_time); ?>
</span>
<span class="createdate-month-year">
   <?php echo date("M, Y", $article_time); ?>
</span>


and replace with:
Code: Select all
<span class="createdate-day">
   <?php echo JHTML::_('date', $this->item->created , '%d'); ?>
</span>
<span class="createdate-month-year">
   <?php echo JHTML::_('date', $this->item->created , '%b, %Y'); ?>
</span>


This should fix the problem. If so it will be added on next update.

Thank you for the report.

Cheers ;)
User avatar
Platinum Boarder


cron