Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mrtvy.kenny

    (@mrtvykenny)

    so a few more additions. I had to get rid of htmlentities, as it converted not correctly (might be wrong server settings):

    $day_names[$n] = __( ucfirst(gmstrftime('%A',$t))); # %A means full textual day name
    
    ....
    
    $title   = __( ucfirst( $month_name )).' '.$year;  # note that some locales don't capitalize month and day names
    
    ....
    
    $calendar .= '<th abbr="'.$d.'">'.($day_name_length < 4 ? mb_substr($d,0,$day_name_length) : $d).'</th>';
    Thread Starter mrtvy.kenny

    (@mrtvykenny)

    aldo i would recommend adding info about utf-8 encoding for string columns in database, as if DB is not set as utf-8 as default, it will mess up the encoding..

    I also changed this, so it doesnt bother (I use all-day events all the time):

    if(!$end_h) {
    				$end_h = get_option('swgc_end_hour', 23);
    				$editEnd = array('23','55');
    			}
    .....
    
    				//if($edit) {
    					$selected = $editEnd[0] == $paddedVal ? ' selected="selected" ' : '';
    				//}
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘translated months’ is closed to new replies.