From c2b1eb289c95440f1cfe75a507fed1e0c74d846f Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 11 Feb 2009 14:11:18 +0100 Subject: [PATCH] Improving translation : some js strings were not taken into po files --- .../intranet-tmpl/prog/en/includes/members-toolbar.inc | 6 +++--- koha-tmpl/intranet-tmpl/prog/en/js/members.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc index 6942f730f2..ed490d26bd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc @@ -3,13 +3,13 @@ //'; } } 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=&catcode=&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='; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/members.js b/koha-tmpl/intranet-tmpl/prog/en/js/members.js index 3798e03ba0..5e1dd15ce6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/members.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/members.js @@ -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 { -- 2.39.5