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

  1. htrex
    Posted 2 years 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!


  2. htrex
    Posted 2 years ago #

    found another bug in the italian translation, row 122 of wp-fullcalendar.php should be


    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 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP FullCalendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.