Title: translated months
Last modified: August 22, 2016

---

# translated months

 *  [mrtvy.kenny](https://wordpress.org/support/users/mrtvykenny/)
 * (@mrtvykenny)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/translated-months/)
 * I recommend changing code, so at least month names come out localized. I made
   it locally by this small change in functions.php:
 * `$title = htmlentities( __( ucfirst( $month_name ))).'&nbsp;'.$year; # note that
   some locales don't capitalize month and day names`
 * [https://wordpress.org/plugins/eventario/](https://wordpress.org/plugins/eventario/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [mrtvy.kenny](https://wordpress.org/support/users/mrtvykenny/)
 * (@mrtvykenny)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/translated-months/#post-5639004)
 * 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 )).'&nbsp;'.$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](https://wordpress.org/support/users/mrtvykenny/)
 * (@mrtvykenny)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/translated-months/#post-5639236)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/eventario.svg)
 * [Calendar Widget](https://wordpress.org/plugins/eventario/)
 * [Support Threads](https://wordpress.org/support/plugin/eventario/)
 * [Active Topics](https://wordpress.org/support/plugin/eventario/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eventario/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eventario/reviews/)

## Tags

 * [localisation](https://wordpress.org/support/topic-tag/localisation/)

 * 2 replies
 * 1 participant
 * Last reply from: [mrtvy.kenny](https://wordpress.org/support/users/mrtvykenny/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/translated-months/#post-5639236)
 * Status: not resolved