//<![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" -->';
}
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" -->';
}
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);
}
{
document.form.dateenrolled.focus();
- var msg = ("Warning !!! check date expiry >= date enrolment");
+ var msg = _("Warning !!! check date expiry >= date enrolment");
alert(msg);
}
}
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 {