-
AuthorPosts
-
May 26, 2010 at 9:34 am #344774
<em>@JA Developer 163809 wrote:</em><blockquote>Hi guys
The below is a way to translate current date to your language use multi languages. the mean is that if you switch to other language, current date will change to that language.
1. Open templatesja_teline_iiilayoutsblocksheader.php file, find following code section:
[PHP]<p class=”ja-day”>
<?php
echo “<span class=”day”>”.date (‘l’).”</span>”;
echo “<span class=”date”>, “.date (‘M’).” “.date (‘d’).date (‘S’).”</span>”;
?>
</p>[/PHP]and change to:
[PHP]<p class=”ja-day”>
<?php
echo “<span class=”day”>”.JText::_(date (‘l’)).”</span>”;
echo “<span class=”date”>, “. JText::_(date (‘M’)) .” “.JText::_(date (‘d’)).JText::_(date (‘S’)).”</span>”;
?>
</p>[/PHP]2. Open languages/your language / your_language.ini file (ex: languageen-GBen-GB.ini) to define some text
For an example: you see Saturday, Feb 06th on the frontpageYou have to translate all days (Saturday) and all short months (ex: Feb) to your language with the structure:
The structure:
UPPERCASE WORD = your languageExample:
SATURDAY = saturday
FEB = febNote: you should search this text in the file to make sure that this text is not exist yet.
With this code, if you switch to other language, the date will change to your language.
Hope it helps</blockquote>
Thanks for solution.
How do i remove the “th” from date.For example Monday 26th april
I use GMT (Amsterdam) Dutch language
May 28, 2010 at 9:10 am #345061<em>@pitmedical1 180040 wrote:</em><blockquote>Thanks for solution.
How do i remove the “th” from date.For example Monday 26th april
I use GMT (Amsterdam) Dutch language</blockquote>
Same problem here.
How can i remove the “th” ?
And where can i edit words “last update”
And the time shows there is wrong.
How can i fix these.
Hope someone helps here.May 28, 2010 at 9:12 am #345062I found where the “last update” is . But when i translate it turkish characters wont show up.
What should i do.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 2, 2010 at 7:59 am #345631Dear kuzey!
In this case, you submit a ticket and give me the full account information, we ‘ll check and resolve this issue
thanksJune 2, 2010 at 8:17 am #345635<em>@tienhc 181095 wrote:</em><blockquote>Dear kuzey!
In this case, you submit a ticket and give me the full account information, we ‘ll check and resolve this issue
thanks</blockquote>Thanks for reply,
The site not live. We are still busy with this template en our new site.
June 24, 2010 at 8:12 pm #347996This is realy helfull. Thanks
gianfranco Friendgianfranco
- Join date:
- September 2010
- Posts:
- 73
- Downloads:
- 0
- Uploads:
- 9
- Thanked:
- 1 times in 1 posts
October 6, 2010 at 2:08 pm #357946Hi Zipper, thanks you, your post help me so much!
Thanks
GianfrancoOctober 27, 2010 at 10:25 pm #360816Hi,
Where can I change the last update settings? In my website says Last update 08:10:05 PM GMT, and that’s 4 hours before I made the last update…
The global time is ok ‘cos the modification time on the articles is ok.
Thanks!
January 1, 2011 at 11:16 am #369567Hi guys,
This is my first post, so you can congrat me ))
Ok, now about my problem :-[ well, I need to translate my whole website in russian, what will be your tips guys? I tried to change days and months but all I could see on the page was squares instead of letters. Will be waiting for reply:confused:
thangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
January 4, 2011 at 9:59 am #369974Dear brovazzz!
You should use joomfish to translate your site in Russian. This is a good solution in this case. 😎
February 22, 2011 at 11:18 am #377931<em>@micrantha 154943 wrote:</em><blockquote>OK, I can be more informative now, after friendly tip of Gray:
In my case I replaced original code line
return gmdate("h:i:s A", $sec+$tz).' GMT';
with
setlocale(LC_ALL, 'nl_NL'); //set the output in NL-language
return strftime( "%a %e %b %H:%M %Z" , $sec+$tz).' ';
Output: donderdag 26 nov 16:02 CETThis code also gives day and month of last site-update [/quote]
After pasting the above mentioned code into common.php, the whole layout was messed up in IE8.
(Module boxes on the left and right were displayed at the botton).The original code taken, and then:
//$date =& JFactory::getDate(strtotime($data->created));
//$user =& JFactory::getUser();
//$tz = $user->getParam('timezone');
//$sec =$date->toUNIX(); //set the date time to second
//return gmdate("h:i:s A", $sec+$tz).' GMT';return date('d.m.Y H:i', strtotime($data->created));
Output: 21.02.2011 09:04
June 4, 2012 at 1:51 am #455764Hi,
how can I change display format to the date and time?
For example
date: “Monday, 6 June 2012”
and time: “15:23:00” (24h format)Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 5, 2012 at 8:20 am #456028Hi euroadvltd,
Which version of Joomla are you using? Where you want to have this datetime format?
June 5, 2012 at 8:40 pm #456161Hi
my Joomla is 2.5.x. I have use it on top (headlines): last update position “15:23:00” (24h format) and day position “Monday, 6 June 2012”.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 6, 2012 at 2:25 am #456188Hi euroadvltd,
You should open up this file: templatesja_teline_iiiblocksheader.php
and replace:
[PHP]echo “<span class=”date”>, “.JHTML::_(‘date’, ‘now’, ‘M ‘).” “.JHTML::_(‘date’, ‘now’, ‘d’).JHTML::_(‘date’, ‘now’, ‘S’).”</span>”;[/PHP]
With this:
[PHP]echo “<span class=”date”>, “.JHTML::_(‘date’, ‘now’, ‘j’).” “.JHTML::_(‘date’, ‘now’, ‘F ‘).” “.JHTML::_(‘date’, ‘now’, ‘Y’).”</span>”;[/PHP] -
AuthorPosts
This topic contains 61 replies, has 30 voices, and was last updated by euroadvltd 12 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum