PrimeSuspect Posted September 14, 2010 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
PrimeSuspect Posted September 14, 2010 Author 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
Djkanna Posted September 14, 2010 Posted September 14, 2010 Try using strftime() rather than date() Quote
wrx Posted September 14, 2010 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
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.