We’re with you. JoomShaper is offering a 20% Discount on all plans due to the impact of COVID-19

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

translate Date in Article to my Language

Featured Lock Resolved
Hi
I installed Shaper Pocha to test. and working super. great Template. and installed Türkish Language and its OK.
But how can i change (translate) Date in Article.
** I mean we see on featured Article on index page Date on the green button like NOV 21.
i wat to translate to my languge. i didnt find it.

thanks

9 Answers

ssswisss

More than a month ago #Permalink
i dont beleive it. no answer.
nobody know????

Svetlozar

More than a month ago #Permalink
Why no one answered to his question ? I want to correct the same , so please somebody to answer

Ehsan Riyadh

More than a month ago #Permalink
Joomla follows this type of date format : http://docs.joomla.org/How_do_you_change_the_date_format%3F

In php date format look like : http://php.net/manual/en/function.date.php

For your solution you have to write manually on templates\shaper_pocha\html\com_content\featured\default_item.php

Find in the beginning :
$date_format 	= JHTML::_('date',$this->item->created, JText::_('DATE_FORMAT_LC3'));


and replace the DATE_FORMAT_LC3 manually.

$date_format 	= JHTML::_('date',$this->item->created, JText::_('d M'));


Hope it will work.

Svetlozar

More than a month ago #Permalink
My question is almost the same, but it is for K2 blog template(express-blog) in the template Sharper Express.

When I use your beautiful k2 template - express -blog, my date in the list category items is not translated to my language. When I switch to the default K2 template, the date is translated , but the beautiful date blog is lost.
So can you help me when I must correct to fix this issue?

I saw that there is the differences between you express-blog template and the default, when you call catItemDateCreated

Express- blog
<?php if($this->item->params->get('catItemDateCreated')): ?>
<!-- Date created -->
<div class="blog-date">
<?php
$date_format = JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC4'));
$date_display = explode("-",$date_format);
$format_date = date("d-M-Y", @mktime(0, 0, 0, $date_display[1], $date_display[2], $date_display[0]));
$final_date = explode("-",$format_date);
$output = "<span class='sp_date_day'>".$final_date[0]."</span><span class='sp_date_month'>".$final_date[1]."</span>";
echo $output;
?>
</div>
<?php endif; ?>



Default remplate
<?php if($this->item->params->get('catItemDateCreated')): ?>
<!-- Date created -->
<span class="catItemDateCreated">
<?php echo JHTML::_('date', $this->item->created , JText::_('K2_DATE_FORMAT_LC2')); ?>
</span>
<?php endif; ?>

Ehsan Riyadh

More than a month ago #Permalink
Please, provide a screen shot of this issue @Svetlozar

Svetlozar

More than a month ago #Permalink
Please, provide a screen shot of this issue @Svetlozar


Hello , here I attach two pictures. You can see on picture1.png that the blog dates are not translated.

The second picture - picture2, which I attached is showing on the same site the module New Shows SP2 module, which is with translated dates.

I wanted to show you that I have needed language translations.

Attachments (2)

  • picture1.png
    picture1.png 162.1 KB
  • picture2.png
    picture2.png 70.5 KB

Svetlozar

More than a month ago #Permalink
Ehsan Riyadh do you have a look at the pictures I've attached ?

Please tell me how can I fix this

Ehsan Riyadh

More than a month ago #Permalink
Dear Svetlozar,
Sorry for missing. Can you please, PM your ftp access. We want edit the date function.

Regards.

Emanuele Cerza

More than a month ago #Permalink
I have a same problem...
I don't find a solution...

Can you help me?


There are no replies made for this post yet.
Be one of the first to reply to this post!

123

Templates

327156

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us