Ready to get started?Download WordPress


Events Manager
[resolved] Calendar localization on month-change (2 posts)

  1. filip.jnc
    Posted 5 months ago #

    Hello all,

    I'm experiencing a strange problem with the small calendar (probably it's the same with the full one, didn't try). I have fully localized it - the month is translated automatically by WordPress core but I had to change a bit of code to get header-days localized too:


    if( get_option('dbem_full_calendar_abbreviated_weekdays') ) $weekdays = array(__ ( 'Sun', 'dbem' ),__ ( 'Mon', 'dbem' ),__ ( 'Tue', 'dbem' ),__ ( 'Wed', 'dbem' ),__ ( 'Thu', 'dbem' ),__ ( 'Fri', 'dbem' ),__ ( 'Sat', 'dbem' ));
     			$day_initials_length =  get_option('dbem_full_calendar_initials_length');
     		} else {
     		    if ( get_option('dbem_small_calendar_abbreviated_weekdays') ) $weekdays = array(__ ( 'Sun', 'dbem' ),__ ( 'Mon', 'dbem' ),__ ( 'Tue', 'dbem' ),__ ( 'Wed', 'dbem' ),__ ( 'Thu', 'dbem' ),__ ( 'Fri', 'dbem' ),__ ( 'Sat', 'dbem' ));
    	 		$day_initials_length = get_option('dbem_small_calendar_initials_length');

    Now the problem is, when I change the months using the left/right arrows in the calendar, they all (month + header-days) change to english, regardless what language the website is set to.

    Demo: http://www.bikeportal.md - scroll down a bit.

    I think it's a problem with the javascript, I'm not a pro so I can't really tell. Any advice would be very much appreciated. Thanks!


  2. angelo
    NetWebLogic Support
    Posted 5 months ago #

    are you using any translation plugin or wordpress localized in your language?


You must log in to post.

About this Plugin

About this Topic