This is are simple 3 lines hack, how to translate: news, shoutbox, comments and etc dates month names. :)
First open: index.php file
Find this code:
And dont forget add this code to your xxx.lang file:
Example:
//english lang file
$LANG["FEBRUARY"] = "february";
//russian lang file
$LANG["FEBRUARY"] = "февраль";
//lithuanian lang file
$LANG["FEBRUARY"] = "vasaris";
//franch lang file
$LANG["FEBRUARY"] = "février";
This date translate system you can use where you want like in shoutbox or comments orcourse and forum and etc.
Dont forget say Thanks if you like it :)
First open: index.php file
Find this code:
// Show first 2 items expanded
if ($news_flag < 2) {
$disp = "block";
$pic = "minus";
} else {
$disp = "none";
$pic = "plus";
}
After this code incert this:
$gettime = utc_to_tz_time($array['added']);
$month = array('1', '2', '3', '4', '5', '6', '7','8', '9','10', '11', '12');
$showtime = date('Y',$gettime).', '.$month[date('n',$gettime)-1].' '.date('j',$gettime).' d. - '.date('H',$gettime).':'.date('i',$gettime).' hrs.';
Find this:
" . date("d-M-y", utc_to_tz_time($array['added'])) . "
Replace to this:
( ".$showtime." )
Numbers mean: months names like: 1 = January, 2 = February and etc.
You can inter your languages month name like: february: февраль, vasaris, février...
If your tracker have multilanguage system then:
This:
$month = array('1', '2', '3', '4', '5', '6', '7','8', '9','10', '11', '12');
Change to this:
$month = array(' '.T_("JANUARY").' ', ' '.T_("FEBRUARY").' '); and etc.And dont forget add this code to your xxx.lang file:
Example:
//english lang file
$LANG["FEBRUARY"] = "february";
//russian lang file
$LANG["FEBRUARY"] = "февраль";
//lithuanian lang file
$LANG["FEBRUARY"] = "vasaris";
//franch lang file
$LANG["FEBRUARY"] = "février";
This date translate system you can use where you want like in shoutbox or comments orcourse and forum and etc.
Dont forget say Thanks if you like it :)
