Closed (fixed)
Project:
Make Meeting Scheduler
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Sep 2011 at 14:19 UTC
Updated:
24 Sep 2011 at 10:01 UTC
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:'«', n:'»', 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:'«', n:'»', t:'<?php echo addslashes (t('Today')); ?>', b:'<?php echo addslashes (t('Add date to list')); ?>'}
);
Comments
Comment #0.0
netimpulse commentedtypo
Comment #1
SebCorbin commentedFixed in 6.x-1.x-dev
Comment #2.0
(not verified) commentedOther typo