Javascript error whith localized string for jCalendar labels when there is includes quotes.
(in french : today --> Aujourd'hui)

file : makemeeting-calendarselector.tpl.php (l.3)

 jQuery.jcalendar.setLanguageStrings(
            ['<?php echo t('Su'); ?>', '<?php echo t('Mon'); ?>', '<?php echo t('Tue'); ?>', '<?php echo t('Wed'); ?>', '<?php echo t('Th'); ?>', '<?php echo t('Fr'); ?>', '<?php echo t('Sat'); ?>'],
            ['<?php echo ('January'); ?>', '<?php echo t('Febuary'); ?>', '<?php echo t('March'); ?>', '<?php echo t('April'); ?>', '<?php echo t('May'); ?>', '<?php echo t('June'); ?>', '<?php echo t('July'); ?>', '<?php echo t('August'); ?>', '<?php echo t('September'); ?>', '<?php echo t('October') ?>', '<?php echo t('November'); ?>', '<?php echo t('December'); ?>'],
            {p:'&laquo;', n:'&raquo;', t:'<?php echo t('Today'); ?>', b:'<?php echo t('Add date to list'); ?>'}
    ); 

Why not use addslashes function for each string like that?

 jQuery.jcalendar.setLanguageStrings(
            ['<?php echo addslashes (t('Su')); ?>', '<?php echoaddslashes ( t('Mon')); ?>', '<?php echo addslashes (t('Tue')); ?>', '<?php echo addslashes (t('Wed')); ?>', '<?php echo addslashes (t('Th')); ?>', '<?php echo addslashes (t('Fr')); ?>', '<?php echo addslashes (t('Sat')); ?>'],
            ['<?php echo addslashes (('January')); ?>', '<?php echo addslashes (t('Febuary')); ?>', '<?php echo addslashes (t('March')); ?>', '<?php echo addslashes (t('April')); ?>', '<?php echo addslashes (t('May')); ?>', '<?php echo addslashes (t('June')); ?>', '<?php echo addslashes (t('July')); ?>', '<?php echo addslashes (t('August')); ?>', '<?php echo addslashes (t('September')); ?>', '<?php echo addslashes (t('October')) ?>', '<?php echo addslashes (t('November')); ?>', '<?php echo addslashes (t('December')); ?>'],
            {p:'&laquo;', n:'&raquo;', t:'<?php echo addslashes (t('Today')); ?>', b:'<?php echo addslashes (t('Add date to list')); ?>'}
    ); 

Comments

netimpulse’s picture

Issue summary: View changes

typo

SebCorbin’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Status: Active » Fixed

Fixed in 6.x-1.x-dev

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Other typo