WordPress.org

Ready to get started?Download WordPress

Forums

WP FullCalendar
[resolved] italian translation + small JS scripts localization bug (solved) (3 posts)

  1. htrex
    Member
    Posted 1 year ago #

    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/

  2. htrex
    Member
    Posted 1 year ago #

    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

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.