Improving translation : some js strings were not taken into po files
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 11 Feb 2009 13:11:18 +0000 (14:11 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 11 Feb 2009 13:23:05 +0000 (14:23 +0100)
koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc
koha-tmpl/intranet-tmpl/prog/en/js/members.js

index 6942f73..ed490d2 100644 (file)
@@ -3,13 +3,13 @@
        //<![CDATA[
 
 function confirm_deletion() {
-    var is_confirmed = window.confirm('Are you sure you want to delete this patron? This cannot be undone.');
+    var is_confirmed = window.confirm(_("Are you sure you want to delete this patron? This cannot be undone."));
     if (is_confirmed) {
             window.location='/cgi-bin/koha/members/deletemem.pl?member=<!-- TMPL_VAR NAME="borrowernumber" -->';
     }
 }
 function confirm_updatechild() {
-    var is_confirmed = window.confirm('Are you sure you want to update this child to an Adult category?  This cannot be undone.');
+    var is_confirmed = window.confirm(_("Are you sure you want to update this child to an Adult category?  This cannot be undone."));
    
     if (is_confirmed) {
             window.location='/cgi-bin/koha/members/update-child.pl?op=update&borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&catcode=<!-- TMPL_VAR NAME="catcode" -->&catcode_multi=<!-- TMPL_VAR NAME="CATCODE_MULTI" -->';
@@ -17,7 +17,7 @@ function confirm_updatechild() {
 }
 
 function confirm_reregistration() {
-    var is_confirmed = window.confirm('Are you sure you want to renew this patron\'s registration?');
+    var is_confirmed = window.confirm(_("Are you sure you want to renew this patron\'s registration?"));
     if (is_confirmed) {
     window.location='/cgi-bin/koha/members/moremember.pl?reregistration=y&borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->';
     }
index 3798e03..5e1dd15 100644 (file)
@@ -43,13 +43,13 @@ var msg2;
 if (  document.form.check_member.value==1){
        if (document.form.categorycode.value != "I"){
                
-               msg1 += ("Warning  !!!! Duplicate patron!!!!");
+               msg1 += _("Warning  !!!! Duplicate patron!!!!");
                alert(msg1);
        check_form_borrowers(0);
        document.form.submit();
        
        }else{
-               msg2 += ("Warning !!!! Duplicate organisation!!!!");
+               msg2 += _("Warning !!!! Duplicate organisation!!!!");
                alert(msg2);
        check_form_borrowers(0);
        }
@@ -73,7 +73,7 @@ var myDate2=document.form.dateexpiry.value.split ('/');
        
                { 
                document.form.dateenrolled.focus();
-               var msg = ("Warning !!! check date expiry  >= date enrolment");
+               var msg = _("Warning !!! check date expiry  >= date enrolment");
                alert(msg);
                }
        }
@@ -129,7 +129,7 @@ function check_form_borrowers(nav){
        if (statut!=1 && document.form.check_member.value > 0 ) {
                if (!(document.form_double.answernodouble.checked)){
                        message ="";
-                       message_champ+=("Please confirm suspicious duplicate patron !!! ");
+                       message_champ+=_("Please confirm suspicious duplicate patron !!! ");
                        statut=1;
                        document.form.nodouble.value=0;
                } else {