translating dates

GK User
Wed May 19, 2010 10:02 pm
Hello it is me again :) The guy with weird subjects. What I am trying to do now is to translate the dates here :

Image

but I can't find it anywhere :)

jansverre
User avatar
Senior Boarder

GK User
Fri May 21, 2010 1:03 am
It is a standard Joomla date and it should be in en-GB.ini file.
User avatar
Administrator

GK User
Fri May 21, 2010 9:13 am
Hi and thanks for reply. I am using norwegian language files and it is translated to norwegian there. And everywhere else on the webpage that uses dates it is correct. I have translated the dates in en_GB.ini files as well but it is still in english.
User avatar
Senior Boarder

GK User
Fri May 21, 2010 7:59 pm
Ok, now I've found a problem - in html/com_content/category and html/com_content/section directories you can find blog_item.php files - please change block with date to:
Code: Select all
   <?php if ($this->item->params->get('show_create_date')) : ?>
      <?php $article_time = strtotime($this->item->created); ?>
   <span class="createdate-day">
      <?php echo JHTML::_('date', $this->item->modified, '%d'); ?>
   </span>
   <span class="createdate-month-year">
      <?php echo JHTML::_('date', $this->item->modified, '%B %Y'); ?>
   </span>
   <?php endif; ?>


it should helps.
User avatar
Administrator

GK User
Fri May 21, 2010 8:41 pm
Cool. That did the trick. Thank you :D

jansverre
User avatar
Senior Boarder


cron