Temamda bir zaman kodu var, ingilizce sonuç veriyor hep may, jun vs. diye, bunu nasıl düzeltebilirim?


//Zaman ayarları :xx: önce

function time_ago( $type = 'commennt', $day = 7 ) {

  $d = $type == 'post' ? 'get_post_time' : 'get_comment_time';

  if (time() - $d('U') > 60*60*24*$day) return;

  echo ' (', human_time_diff($d('U'), strtotime(current_time('mysql', 0))), ' önce)';

}





function timeago( $ptime ) {

    $ptime = strtotime($ptime);

    $etime = time() - $ptime;

    if($etime < 1) return ' Şimdi Yayınlandı!';

    $interval = array (

        12 * 30 * 24 * 60 * 60  =>  ' yıl önce ('.date('d M Y', $ptime).')',

        30 * 24 * 60 * 60       =>  ' ay önce ('.date('d M Y', $ptime).')',

        7 * 24 * 60 * 60        =>  ' hafta önce ('.date('d M Y', $ptime).')',

        24 * 60 * 60            =>  ' gün önce',

        60 * 60                 =>  ' saat önce',

        60                      =>  ' dakika önce',

        1                       =>  ' saniye önce'

    );

    foreach ($interval as $secs => $str) {

        $d = $etime / $secs;

        if ($d >= 1) {

            $r = round($d);

            return $r . $str;

        }

    };

}