-
AuthorPosts
-
June 5, 2007 at 8:04 pm #120668
Hi
We are trying to use JA Teline template.. And we are trying to translate all data to turkish… But we couldn’t manage to change the Date at the top-right of the page..
It’s still English date.. We need to show this date as Turkish
What must we do..? Can you help to solve this? :confused:
Thanks
Khanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
June 6, 2007 at 7:25 am #221572The solution for changing the Date is addressed at this thread: http://www.joomlart.com/forums/topic/changing-the-date/. Please take a look and I hope it could help you.
June 6, 2007 at 6:03 pm #221597It didn’t worked because in my index.php there is no tihs kind of things. :((
<div class=”ja-day”>
<?php
echo “<span>”.date (‘l’).”</span>”;
echo ” <div>”.date (‘M’).” “.date (‘d’).date (‘S’).”</div>”;
?>
</div>Can we find any other solutions?
kachete Friendkachete
- Join date:
- January 2006
- Posts:
- 46
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 2 times in 1 posts
June 6, 2007 at 6:26 pm #221599Man the solution by master Khanh Le realy works
You have to seek in your index.php around lines 211 – 215 (in my case)
Then seek for your locale and then change the code
<div class="ja-day">
<?php
echo "<span>".date ('l')."</span>";
echo " <div>".date ('M')." ".date ('d').date ('S')."</div>";
?>
</div>for your Turkish
<div class="ja-day">
<?php
setlocale(LC_TIME, "tr_TR");
echo "<span>".strftime ('%A')."</span>";
echo " <div>".strftime ('%b')." ".strftime ('%d').strftime (' ')."</div>";
?>
</div>You can see others locale here
http://www.unet.univie.ac.at/aix/libs/basetrf2/setlocale.htm
Seek man and you will find the code, just be patient and scroll the code to the lines 211-215 or around this lines
hope it helps you
it works for me 😀
best regards
June 6, 2007 at 7:13 pm #221605thanks for the reply but still have the problem 🙁
we try as mentioned and changed the string tr_TR bur didn’t work…any other solutions will be helpfull 🙂
June 6, 2007 at 7:33 pm #221606😀 😀
Last we fixed it
we write tr_TR.ISO8859-9 so It fixed our problem…
Thanks for your help
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by fotoyardim 17 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum