From 5c99c47efa7614830b4467b4d8ea75162912557a Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 7 Apr 2010 15:01:20 +0200 Subject: [PATCH] MT3204 : Fix unstranslatable strings in JavaScript For an explanation, see: http://wiki.koha.org/doku.php?id=en:development:codingguidelines#translatable_text This bug blocks entirely serials module. It isn't possible to create/edit a subscription. Brocken JavaScript prevents Search for a vendor and Search for Biblio dialog box to pop-up. Problem with new strings and new html tags inside the strings this patch removes them Signed-off-by: Henri-Damien LAURENT Signed-off-by: Galen Charlton --- .../prog/en/modules/serials/subscription-add.tmpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl index a10cefa109..dd8f069c01 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl @@ -407,7 +407,7 @@ function moreoptions_daily_check(x) { var errortext=''; if(periodicity == 1){ // i.e. daily document.getElementById("irregularity").innerHTML = ''; - errortext =_("Please indicate which days of the week you DO NOT<\/b> expect to receive issues.
"); + errortext =_("Please indicate which days of the week you DO NOT expect to receive issues.")+"
"; for(var j=0;j"+irregular_issues.daynames[j]+"   "; } @@ -539,7 +539,7 @@ function irregularity_check(){ var error=''; var toobig; var expected; - var errortext = _("Warning irregularity detected<\/b>
"); + var errortext = ""+_("Warning irregularity detected")+"
"; switch(periodicity){ case "12": if(rollover < 730) expected =730; @@ -626,9 +626,9 @@ function irregularity_check(){ // FIXME: We interpret irregularity as which days per week for periodicity==1. // We need two cases: one in which we're published n days/week, in which case irregularity should be per week, // and a regular daily pub, where irregularity should be per year. - errortext += _("Please indicate which days of the week you DO NOT<\/b> expect to receive issues.
"); + errortext += _("Please indicate which days of the week you DO NOT expect to receive issues.")+"
"; } else { - errortext +=expected+_(" issues expected, ")+rollover+_(" were entered.
Please indicate which date(s) an issue is not expected
"); + errortext +=expected+_(" issues expected, ")+rollover+_(" were entered.")+"
"+_("Please indicate which date(s) an issue is not expected")+"
"; irregular_issues.numskipped = expected - rollover; } errortext +="