Bug 9555: Template files contain single quote strings
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 6 Feb 2013 15:34:34 +0000 (16:34 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 1 Mar 2013 00:16:00 +0000 (19:16 -0500)
Test plan:
- launch the test xt/single_quotes.t, there are 3 occurrences
- apply this patch
- launch the test. It will pass with success
- Check that there is no regression on the 2 modified intranet files and
  the calendar still works at the OPAC.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
All tests pass, also checked calendar still works.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt
koha-tmpl/opac-tmpl/prog/en/includes/calendar.inc

index 7ae9a01..910844d 100644 (file)
@@ -46,7 +46,7 @@ function IEEventHandler_KeyDown() {
             }
 
             if(check_additem('[% UniqueItemFields %]') == false){
-                alert(_('Duplicate values detected. Please correct the errors and resubmit.') );
+                alert(_("Duplicate values detected. Please correct the errors and resubmit.") );
                 return false;
             };
 
index 2f30c9c..8a70550 100644 (file)
@@ -25,18 +25,18 @@ function Date_from_syspref(dstring) {
    jQueryUI we expose the localization strings in the default configuration */
 jQuery(function($){
     $.datepicker.regional[''] = {
-        closeText: _('Done'),
-        prevText: _('Prev'),
-        nextText: _('Next'),
-        currentText: _('Today'),
-        monthNames: [_('January'),_('February'),_('March'),_('April'),_('May'),_('June'),
-        _('July'),_('August'),_('September'),_('October'),_('November'),_('December')],
-        monthNamesShort: [_('Jan'), _('Feb'), _('Mar'), _('Apr'), _('May'), _('Jun'),
-        _('Jul'), _('Aug'), _('Sep'), _('Oct'), _('Nov'), _('Dec')],
-        dayNames: [_('Sunday'), _('Monday'), _('Tuesday'), _('Wednesday'), _('Thursday'), _('Friday'), _('Saturday')],
-        dayNamesShort: [_('Sun'), _('Mon'), _('Tue'), _('Wed'), _('Thu'), _('Fri'), _('Sat')],
-        dayNamesMin: [_('Su'),_('Mo'),_('Tu'),_('We'),_('Th'),_('Fr'),_('Sa')],
-        weekHeader: _('Wk'),
+        closeText: _("Done"),
+        prevText: _("Prev"),
+        nextText: _("Next"),
+        currentText: _("Today"),
+        monthNames: [_("January"),_("February"),_("March"),_("April"),_("May"),_("June"),
+        _("July"),_("August"),_("September"),_("October"),_("November"),_("December")],
+        monthNamesShort: [_("Jan"), _("Feb"), _("Mar"), _("Apr"), _("May"), _("Jun"),
+        _("Jul"), _("Aug"), _("Sep"), _("Oct"), _("Nov"), _("Dec")],
+        dayNames: [_("Sunday"), _("Monday"), _("Tuesday"), _("Wednesday"), _("Thursday"), _("Friday"), _("Saturday")],
+        dayNamesShort: [_("Sun"), _("Mon"), _("Tue"), _("Wed"), _("Thu"), _("Fri"), _("Sat")],
+        dayNamesMin: [_("Su"),_("Mo"),_("Tu"),_("We"),_("Th"),_("Fr"),_("Sa")],
+        weekHeader: _("Wk"),
         dateFormat: '[% IF ( dateformat_us ) %]mm/dd/yy[% ELSIF ( dateformat_metric ) %]dd/mm/yy[% ELSE %]yy-mm-dd[% END %]',
         firstDay: [% CalendarFirstDayOfWeek %],
         isRTL: [% IF ( bidi ) %]true[% ELSE %]false[% END %],
@@ -74,4 +74,4 @@ $.datepicker.setDefaults({
     });
 });
 //]]>
-</script>
\ No newline at end of file
+</script>