i need changing language day in italian please!!!
<em>@bigrk 16460 wrote:</em><blockquote>Try this thread http://www.joomlart.com/forums/topic/changing-the-date/. They are talking about the same stuff.</blockquote>
Try this it works for me
Hope it can help you.
TAKING FROM A POST FROM NATHANBOHN
You will have to check with your hosting company to make sure you PHP has you local language installed. You will have to edit the index.php of the template. Go to templates/ja_teline/index.php
Around Line 214 or find
<div class="ja-day">
<?php
echo "<span>".date ('l')."</span>";
echo " <div>".date ('M')." ".date ('d').date ('S')."</div>";
?>
</div>
and replace it with
<div class="ja-day">
<?php
setlocale(LC_TIME, "de_DE");
echo "<span>".strftime ('%A')."</span>";
echo " <div>".strftime ('%b')." ".strftime ('%d').strftime (' ')."</div>";
?>
</div>
The setlocale(LC_TIME, ” “)shows what locale you are changing to. If your site is on a windows box you will need to look at http://msdn.microsoft.com/library/de…ge_strings.asp
to find the correct locale code, in this case you would replace de_DE with germany.
setlocale(LC_TIME, “it_IT.UTF-8”); this would help you with the italian date
PS. The above code drops the english 2 letter suffix after the date number. so 17th becomes just 17, which makes the month and date appear on the same line. Someone may be able to help you straighten that out.
if you wanted to still keep the 2 letter suffix you can change the last
.strftime (' ').
to
.date ('S').
This topic contains 18 replies, has 10 voices, and was last updated by kachete 17 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum