-<div id="toolbar">
+<div id="toolbar">
<script type="text/javascript">
//<![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" -->';
}
// to check if the data are correctly entered.
function Check(ff) {
var ok=0;
- var _alertString="Form not submitted because of the following problem(s)\n";
- _alertString +="-------------------------------------------------------------------\n\n";
+ var _alertString=_("Form not submitted because of the following problem(s)");
+ _alertString +="\n-------------------------------------------------------------------\n\n";
if (ff.categorycode.value.length==0) {
ok=1;
- _alertString += "- categorycode missing\n";
+ _alertString += _("- categorycode missing") + "\n";
}
if (!(ff.category_type.value)){
ok=1;
- _alertString += "- category type missing\n";
+ _alertString += _("- category type missing") + "\n";
}
if (!(isNotNull(ff.description,1))) {
ok=1;
- _alertString += "- description missing\n";
+ _alertString += _("- description missing") + "\n";
}
if (!isNum(ff.upperagelimit,0) && ff.category_type.value=='C') {
ok=1;
- _alertString += "- upperagelimit is not a number\n";
+ _alertString += _("- upperagelimit is not a number") + "\n";
}
if(ff.enrolmentperioddate.value && ff.enrolmentperiod.value){