Fix an unstranslatable string in JavaScript
authorFrédéric Demians <f.demians@tamil.fr>
Mon, 15 Jun 2009 15:32:51 +0000 (17:32 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 6 Oct 2009 07:54:19 +0000 (09:54 +0200)
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.

koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tmpl

index 514963f..52ee62b 100644 (file)
@@ -736,7 +736,7 @@ function display_example(expected){
     var whenmorethan3 = parseInt(document.f.whenmorethan3.value);
     var setto2 = parseInt(document.f.setto2.value);
     var setto3 = parseInt(document.f.setto3.value);
-    var displaytext = _("Based on the information entered, the Numbering Pattern will look like this: <br \/><ul class=\"numpattern_preview\">");
+    var displaytext = _("Based on the information entered, the Numbering Pattern will look like this: ") + "<br \/><ul class=\"numpattern_preview\">";
     if(startfrom3>0){
         var count=startfrom3-1;
         var count2=startfrom2;