Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Data laikas, kalbos paziurekit

Parašė mNm.· 2011 Lap. 21 20:11:12
#2

Redaguok maincore.php failą.

Susirask:


// Format the date & time accordingly
function showdate($format, $val) {
global $settings;
if ($format == "shortdate" || $format == "longdate" || $format == "forumdate") {
return strftime($settings[$format], $val + ($settings['timeoffset']*3600));
} else {
return strftime($format, $val + ($settings['timeoffset'] * 3600));
}
}


Ir pakeisk į:


    // Format the date & time accordingly
    function showdate($format, $val) {
    global $settings;
    if ($format == "shortdate" || $format == "newsdate" || $format == "longdate" || $format == "forumdate") {
    $return = strftime($settings[$format], $val+($settings['timeoffset']*3600));
    } else {
    $return = strftime($format, $val+($settings['timeoffset']*3600));
    }
    //Verciam menesio pavadinimus
    $ieskom = array("December","January","February","March","April","May","June","July","August","September","October","November");
    $keiciam = array("Gruodis","Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis");
    $return = str_replace($ieskom,$keiciam,$return);
 
    //Verciam savaites dienas
    $ieskom = array("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");
    $keiciam = array("Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis","Sekmadienis");
    $return = str_replace($ieskom,$keiciam,$return);
    return $return;
    }  

Redagavo mNm.· 2011 Lap. 21 20:11:43