Support » Plugin: WP FullCalendar » italian translation small JS scripts localization bug (solved)

  • Resolved htrex

    (@htrex)


    Hi Marcus,
    while I was completing the italian translation for the localized scripts found a small bug in wp-fullcalendar.php, around line 124:

    //extra WP FUllCalendar translations here please:
    		$wp_fullcalendar_languages = array(
    			'es' => array('buttonText' => array('today'=>'hoy','month'=>'mes','week'=>'semana','day'=>'dia')),
    			'pt' => array('buttonText' => array('today'=>'hoje','month'=>'mes','week'=>'semana','day'=>'dia')),
    			'fr' => array('buttonText' => array('today'=>'aujourd\'hui','month'=>'mois','week'=>'semane','day'=>'jour')),
                'it' => array('buttonText' => array('today'=>'oggi','month'=>'mese','week'=>'settimana','day'=>'giorno'))
    		);
    		$calendar_languages = array_merge_recursive($calendar_languages, $wp_fullcalendar_languages);

    ^^^
    I’ve added an italian translation for the buttons, but please also notice the last line, in the original code a simple “array_merge” is used instead of “array_merge_recursive”, where the latter is needed to merge the bi-dimensional arrays.

    Thanks for the great upgrades! I’ll send you .mo .po files with an accurate and complete italian translation, I promise!

    http://wordpress.org/extend/plugins/wp-fullcalendar/

Viewing 2 replies - 1 through 2 (of 2 total)
  • found another bug in the italian translation, row 122 of wp-fullcalendar.php should be

    'it'=>array('closeText'=>'Fatto','prevText'=>'Precedente','nextText'=>'Prossimo','currentText'=>'Oggi','monthNames'=>array('Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno','Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'),'monthNamesShort'=>array('Gen','Feb','Mar','Apr','Mag','Giu','Lug','Ago','Set','Ott','Nov','Dic'),'dayNames'=>array('Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'),'dayNamesShort'=>array('Dom','Lun','Mar','Mer','Gio','Ven','Sab'),'dayNamesMin'=>array('Do','Lu','Ma','Me','Gi','Ve','Sa'),'weekHeader'=>'Wk','dateFormat'=>'dd/mm/yy','firstDay'=>1,'isRTL'=>false,'showMonthAfterYear'=>false,'yearSuffix'=>'')

    the day names must always start with sunday (domenica) to show a correct calendar, a string in the original code was misplaced resulting in a wrong day number <-> day name correspondance

    Plugin Author Marcus

    (@netweblogic)

    NetWebLogic Support

    thanks, will correct/add this for next update, assuming resolved

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘italian translation small JS scripts localization bug (solved)’ is closed to new replies.