PrimeSuspect Posted September 14, 2010 Share Posted September 14, 2010 Hello Im traslateing codes into my language but sometimes i exprience some noobish problems.When i cannot find a way i write here :) I want to change dates into my language for example September 14 2010, 2:42:23 am. it shows date as $date in files.But i couldnt find how i translate it.i appreciate if you help me :) Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted September 14, 2010 Share Posted September 14, 2010 Have a read here Quote Link to comment Share on other sites More sharing options...
PrimeSuspect Posted September 14, 2010 Author Share Posted September 14, 2010 Have a read here My question is simple.I just want to translate $date from english to turkish but the url tht you gave me is very long and hard to find my question's answer for me. anyway thank you Quote Link to comment Share on other sites More sharing options...
Djkanna Posted September 14, 2010 Share Posted September 14, 2010 Try using strftime() rather than date() Quote Link to comment Share on other sites More sharing options...
wrx Posted September 14, 2010 Share Posted September 14, 2010 use this function for day/month Turkish translation <?php //for Turkish get return today echo date_tur(date("N"), "day") . ", " . date("j") . " " . returnDate(date("n"), "month") . " " . date("Y"); function date_tur($num, $tipe){ $str; switch($tipe){ case "month": $month_name = array("", "Ocak", "?ubat", "Mart", "Nisan", "May?s", "Haziran", "Temmuz", "A?ustos", "Eylul", "Ekim", "Kas?m", "Desember"); $str = $month_name[floor($num)]; break; case "day": $day_name = array("", "Pazartesi", "Sal?", "Çar?amba", "Per?embe", "Cuma", "Cumartesi", "Pazar"); $str = $day_name[floor($num)]; break; } return $str; } ?> wrx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.