update time

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Mar 12, 2014 11:53 am
Reply with quote
Report this post
Hi,

I would like to change the written of updated with the italian translation. Where can I make that changes? I don't find it in the menu list....how can I enable it only on the pages I want to display it?
Thank you.
User avatar
Expert Boarder

GK User
Wed Mar 12, 2014 6:56 pm
Reply with quote
Report this post
This is not module so you can't use it on particular pages. All template translations you will find in language file in root/languages directory but of you want to modify this pary the code you will find in template\layouts\blocks\updates.php file
User avatar
Platinum Boarder

GK User
Thu Mar 13, 2014 9:19 am
Reply with quote
Report this post
Thank you. So if I don't want to display it at all, where can I disable it?
User avatar
Expert Boarder

GK User
Thu Mar 13, 2014 3:32 pm
Reply with quote
Report this post
You can disable this in template settings at features tab.
User avatar
Platinum Boarder

GK User
Thu Mar 13, 2014 3:52 pm
Reply with quote
Report this post
ok thank you. can you please help me with the translation?
I wrote like this:
echo JText::_('TPL_GK_LANG_UPDATE_DATE') . 'ultimo aggiornamento' . date(JText::_('TPL_GK_LANG_UPDATE_DATE_FORMAT'), $final_date);

but it displays "updatedultimo aggiornamento"

Where can I change UPDATED with ULTIMO AGGIORNAMENTO?
User avatar
Expert Boarder

GK User
Sun Mar 16, 2014 2:58 pm
Reply with quote
Report this post
any help?
User avatar
Expert Boarder

GK User
Mon Mar 17, 2014 9:46 am
Reply with quote
Report this post
Please open template language file in root/languages/en-GB/en-GB.tpl_gk_news2.ini and find this phrase :

Code: Select all
TPL_GK_LANG_UPDATE_DATE="updated"


and then replace 'updated' text with your own one.
User avatar
Platinum Boarder

GK User
Thu Mar 20, 2014 10:20 am
Reply with quote
Report this post
thank you. now I have changed also the date and time format but don't find anywhere how to translate month name (now is full in english. I need it in italian->as within the articles.) any help?
User avatar
Expert Boarder

GK User
Thu Mar 20, 2014 1:06 pm
Reply with quote
Report this post
Plese open file template/layouts/updates.php and find this line :

Code: Select all
echo JText::_('TPL_GK_LANG_UPDATE_DATE') . ' ' . date(JText::_('TPL_GK_LANG_UPDATE_DATE_FORMAT'), $final_date);


and replace with :

Code: Select all
echo JText::_('TPL_GK_LANG_UPDATE_DATE') . ' ' . JHtml::date($final_date, JText::_('TPL_GK_LANG_UPDATE_DATE_FORMAT'));


this fix should resolve your problem.
User avatar
Platinum Boarder

GK User
Thu Mar 20, 2014 3:51 pm
Reply with quote
Report this post
thank you. now it works!!! have a nice day!!!
User avatar
Expert Boarder


cron