View | Details | Raw Unified | Return to bug 6084
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc (-1 / +1 lines)
Lines 73-79 Link Here
73
                    backgroundJobProgressTimer = setInterval("updateJobProgress()", 500);
73
                    backgroundJobProgressTimer = setInterval("updateJobProgress()", 500);
74
                },
74
                },
75
                error: function(xml, textStatus) {
75
                error: function(xml, textStatus) {
76
                    alert('Failed to submit form: ' + textStatus);
76
                    alert(_('Failed to submit form')+': '+ textStatus);
77
                }
77
                }
78
78
79
            });
79
            });
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc (-2 / +2 lines)
Lines 79-85 function Date_from_syspref(dstring) { Link Here
79
	} else if (dformat === "metric") {
79
	} else if (dformat === "metric") {
80
		return new Date(dateX[2], (dateX[1] - 1), dateX[0]);  // DD/MM/YYYY to (YYYY,m(0-11),d)
80
		return new Date(dateX[2], (dateX[1] - 1), dateX[0]);  // DD/MM/YYYY to (YYYY,m(0-11),d)
81
	} else {
81
	} else {
82
		if (debug > 0) {alert("KOHA ERROR - Unrecognized date format: " +dformat);}
82
		if (debug > 0) {alert(_("KOHA ERROR - Unrecognized date format: ") +dformat);}
83
		return 0;
83
		return 0;
84
	}
84
	}
85
}
85
}
Lines 92-98 function get_Calendar_limit (date,did) { Link Here
92
	if (debug && debug > 5) {
92
	if (debug && debug > 5) {
93
		var month = date.getMonth() + 1;
93
		var month = date.getMonth() + 1;
94
		var dateString = date.getFullYear() + '-' + month + '-' + date.getDate();
94
		var dateString = date.getFullYear() + '-' + month + '-' + date.getDate();
95
		alert("Comparing incoming (" + dateString + ") vs "
95
		alert(_('Comparing incoming ')+'(' + dateString + ') vs '
96
			+ "'" + did + "' limit\n"
96
			+ "'" + did + "' limit\n"
97
			+ "\n thisdate: " + date
97
			+ "\n thisdate: " + date
98
			+ "\nlimitdate: " + limitDate
98
			+ "\nlimitdate: " + limitDate
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-batches-toolbar.inc (-7 / +7 lines)
Lines 2-8 Link Here
2
    <script type="text/JavaScript">
2
    <script type="text/JavaScript">
3
        //<![CDATA[
3
        //<![CDATA[
4
           function DeleteConfirm() {
4
           function DeleteConfirm() {
5
                var msg = "Are you sure you want to delete batch <!-- TMPL_VAR NAME="batch_id" -->?"
5
                var msg = _('Are you sure you want to delete batch')+' <!-- TMPL_VAR NAME="batch_id" -->?';
6
                var answer = confirm(msg);
6
                var answer = confirm(msg);
7
                if (answer) {
7
                if (answer) {
8
                    window.location = "/cgi-bin/koha/labels/label-manage.pl?op=delete&amp;label_element=batch&amp;element_id=<!-- TMPL_VAR NAME="batch_id" -->";
8
                    window.location = "/cgi-bin/koha/labels/label-manage.pl?op=delete&amp;label_element=batch&amp;element_id=<!-- TMPL_VAR NAME="batch_id" -->";
Lines 22-40 Link Here
22
                        }
22
                        }
23
                    }
23
                    }
24
                    if (items.length < 1) {
24
                    if (items.length < 1) {
25
                        alert("Please select at least one item to delete.");
25
                        alert(_('Please select at least one item to delete.'));
26
                        return;     // no item selected
26
                        return;     // no item selected
27
                    }
27
                    }
28
                    getstr = items.join("&");
28
                    getstr = items.join("&");
29
                    item_msg = item_num.join(", ");
29
                    item_msg = item_num.join(", ");
30
                    var msg = "Are you sure you want to remove label number(s): " + item_msg + " from this batch?"
30
                    var msg = _('Are you sure you want to remove label number(s):')+' '+ item_msg + _(' from this batch?');
31
                }
31
                }
32
//                else if (document.items.action.checked) {
32
//                else if (document.items.action.checked) {
33
//                    getstr = "label_id="+document.items.action.value;
33
//                    getstr = "label_id="+document.items.action.value;
34
//                    var msg = "Are you sure you want to remove selected item from this batch?"
34
//                    var msg = "Are you sure you want to remove selected item from this batch?"
35
//                }
35
//                }
36
                else {
36
                else {
37
                    alert("Please select at least label to delete.");
37
                    alert(_('Please select at least label to delete.'));
38
                    return;     // no item selected
38
                    return;     // no item selected
39
                }
39
                }
40
                var answer = confirm(msg);
40
                var answer = confirm(msg);
Lines 61-67 Link Here
61
                            }
61
                            }
62
                        }
62
                        }
63
                        if (labels.length < 1) {
63
                        if (labels.length < 1) {
64
                            alert("Please select at least one label to export.");
64
                            alert(_('Please select at least one label to export.'));
65
                            return;     // no batch selected
65
                            return;     // no batch selected
66
                        }
66
                        }
67
                        getstr = labels.join("&");
67
                        getstr = labels.join("&");
Lines 70-76 Link Here
70
                        getstr = document.items.action.value;
70
                        getstr = document.items.action.value;
71
                    }
71
                    }
72
                    else {
72
                    else {
73
                        alert("Please select at least one label to export.");
73
                        alert(_('Please select at least one label to export.'));
74
                        return;     // no batch selected
74
                        return;     // no batch selected
75
                    }
75
                    }
76
                    return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&" + getstr, 700, 800);
76
                    return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&" + getstr, 700, 800);
Lines 95-101 Link Here
95
                        return(document.items.action.value);
95
                        return(document.items.action.value);
96
                    }
96
                    }
97
                };
97
                };
98
                alert("Please select at least one item.");
98
                alert(_('Please select at least one item.'));
99
                return (-1);
99
                return (-1);
100
            };
100
            };
101
101
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-batches-toolbar.inc (-7 / +7 lines)
Lines 2-8 Link Here
2
    <script type="text/JavaScript">
2
    <script type="text/JavaScript">
3
        //<![CDATA[
3
        //<![CDATA[
4
           function DeleteConfirm() {
4
           function DeleteConfirm() {
5
                var msg = "Are you sure you want to delete batch <!-- TMPL_VAR NAME="batch_id" -->?"
5
                var msg = _('Are you sure you want to delete batch')+' <!-- TMPL_VAR NAME="batch_id" -->?';
6
                var answer = confirm(msg);
6
                var answer = confirm(msg);
7
                if (answer) {
7
                if (answer) {
8
                    window.location = "/cgi-bin/koha/patroncards/manage.pl?op=delete&amp;card_element=batch&amp;element_id=<!-- TMPL_VAR NAME="batch_id" -->";
8
                    window.location = "/cgi-bin/koha/patroncards/manage.pl?op=delete&amp;card_element=batch&amp;element_id=<!-- TMPL_VAR NAME="batch_id" -->";
Lines 22-40 Link Here
22
                        }
22
                        }
23
                    }
23
                    }
24
                    if (items.length < 1) {
24
                    if (items.length < 1) {
25
                        alert("Please select at least one item to delete.");
25
                        alert(_('Please select at least one item to delete.'));
26
                        return;     // no item selected
26
                        return;     // no item selected
27
                    }
27
                    }
28
                    getstr = items.join("&");
28
                    getstr = items.join("&");
29
                    item_msg = item_num.join(", ");
29
                    item_msg = item_num.join(", ");
30
                    var msg = "Are you sure you want to remove card number(s): " + item_msg + " from this batch?"
30
                    var msg = _('Are you sure you want to remove card number(s):')+' '+ item_msg + ' ' + _('from this batch?');
31
                }
31
                }
32
//                else if (document.items.action.checked) {
32
//                else if (document.items.action.checked) {
33
//                    getstr = "label_id="+document.items.action.value;
33
//                    getstr = "label_id="+document.items.action.value;
34
//                    var msg = "Are you sure you want to remove selected item from this batch?"
34
//                    var msg = "Are you sure you want to remove selected item from this batch?"
35
//                }
35
//                }
36
                else {
36
                else {
37
                    alert("Please select at least label to delete.");
37
                    alert(_('Please select at least label to delete.'));
38
                    return;     // no item selected
38
                    return;     // no item selected
39
                }
39
                }
40
                var answer = confirm(msg);
40
                var answer = confirm(msg);
Lines 61-67 Link Here
61
                            }
61
                            }
62
                        }
62
                        }
63
                        if (patroncards.length < 1) {
63
                        if (patroncards.length < 1) {
64
                            alert("Please select at least one card to export.");
64
                            alert(_('Please select at least one card to export.'));
65
                            return;     // no batch selected
65
                            return;     // no batch selected
66
                        }
66
                        }
67
                        getstr = patroncards.join("&");
67
                        getstr = patroncards.join("&");
Lines 70-76 Link Here
70
                        getstr = document.items.action.value;
70
                        getstr = document.items.action.value;
71
                    }
71
                    }
72
                    else {
72
                    else {
73
                        alert("Please select at least one card to export.");
73
                        alert(_('Please select at least one card to export.'));
74
                        return;     // no batch selected
74
                        return;     // no batch selected
75
                    }
75
                    }
76
                    return GB_showCenter('Export Labels', "/cgi-bin/koha/patroncards/print.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&" + getstr, 700, 800);
76
                    return GB_showCenter('Export Labels', "/cgi-bin/koha/patroncards/print.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&" + getstr, 700, 800);
Lines 95-101 Link Here
95
                        return(document.items.action.value);
95
                        return(document.items.action.value);
96
                    }
96
                    }
97
                };
97
                };
98
                alert("Please select at least one item.");
98
                alert(_('Please select at least one item.'));
99
                return (-1);
99
                return (-1);
100
            };
100
            };
101
101
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js (-2 / +2 lines)
Lines 4-10 Link Here
4
function uncheckbox(form, field) {
4
function uncheckbox(form, field) {
5
    var price = new Number(form.elements['price' + field].value);
5
    var price = new Number(form.elements['price' + field].value);
6
    var tmpprice = "";
6
    var tmpprice = "";
7
    var errmsg = "ERROR: Price is not a valid number, please check the price and try again!"
7
    var errmsg = _('ERROR: Price is not a valid number, please check the price and try again!');
8
    if (isNaN(price)) {
8
    if (isNaN(price)) {
9
        alert(errmsg);
9
        alert(errmsg);
10
        for(var i=0; i<form.elements['price' + field].value.length; ++i) {
10
        for(var i=0; i<form.elements['price' + field].value.length; ++i) {
Lines 384-390 function closeandprint(bg){ Link Here
384
	if(document.location = '/cgi-bin/koha/acqui/basketgroup.pl?op=closeandprint&amp;basketgroupid=' + bg ){
384
	if(document.location = '/cgi-bin/koha/acqui/basketgroup.pl?op=closeandprint&amp;basketgroupid=' + bg ){
385
		setTimeout("window.location.reload();",3000);
385
		setTimeout("window.location.reload();",3000);
386
	}else{
386
	}else{
387
		alert('Error downloading the file');
387
		alert(_('Error downloading the file'));
388
	}
388
	}
389
}
389
}
390
390
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl (-2 / +2 lines)
Lines 77-89 $(document).ready(function() Link Here
77
            // if user decreases the quantity
77
            // if user decreases the quantity
78
            if($(this).val() < <!-- TMPL_VAR name="quantityrec" -->) 
78
            if($(this).val() < <!-- TMPL_VAR name="quantityrec" -->) 
79
            {
79
            {
80
                alert("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog");   
80
                alert(_("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog"));   
81
                return true;
81
                return true;
82
            } 
82
            } 
83
            else 
83
            else 
84
            {
84
            {
85
                // if user increases the quantity
85
                // if user increases the quantity
86
                alert("You can't add a new item, please create a new order line");
86
                alert(_("You can't add a new item, please create a new order line"));
87
                // and we replace the original value
87
                // and we replace the original value
88
                $(this).val(<!-- TMPL_VAR name="quantityrec" -->)
88
                $(this).val(<!-- TMPL_VAR name="quantityrec" -->)
89
                return false;
89
                return false;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tmpl (-1 / +1 lines)
Lines 5-11 Link Here
5
//<![CDATA[
5
//<![CDATA[
6
    function Check(f) {
6
    function Check(f) {
7
        if (f.city_zipcode.value.length == 0 && f.city_name.value.length == 0 ) {
7
        if (f.city_zipcode.value.length == 0 && f.city_name.value.length == 0 ) {
8
            alert("City name & zipcode missing");
8
            alert(_('City name & zipcode missing'));
9
        } else{
9
        } else{
10
            document.Aform.submit();
10
            document.Aform.submit();
11
        }
11
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/stopwords.tmpl (-1 / +1 lines)
Lines 19-25 Link Here
19
    }
19
    }
20
    function Check(f) {
20
    function Check(f) {
21
        if (f.word.value.length==0) {
21
        if (f.word.value.length==0) {
22
            alert("Form not submitted: word missing");
22
            alert(_('Form not submitted: word missing'));
23
        } else {
23
        } else {
24
            document.Aform.submit();
24
            document.Aform.submit();
25
        }
25
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl (-1 / +1 lines)
Lines 160-166 $(document).ready(function() { Link Here
160
});
160
});
161
161
162
function set_to_today(id, force) {
162
function set_to_today(id, force) {
163
    if (! id) { alert("Bad id " + id + " sent to set_to_today()"); return 0; }
163
    if (! id) { alert(_("Bad id ") + id + _(" sent to set_to_today()")); return 0; }
164
    if ($("#" + id).val() == '' || $("#" + id).val() == '0000-00-00' || force) {
164
    if ($("#" + id).val() == '' || $("#" + id).val() == '0000-00-00' || force) {
165
        $("#" + id).val("<!-- TMPL_VAR NAME="today_iso" -->");
165
        $("#" + id).val("<!-- TMPL_VAR NAME="today_iso" -->");
166
    }
166
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/macles.tmpl (-1 / +1 lines)
Lines 157-163 function add_macles(myvalue) Link Here
157
    //for (i=0;i< (mycountMACLESgen - mycountMACLESinit);i++){
157
    //for (i=0;i< (mycountMACLESgen - mycountMACLESinit);i++){
158
    //  PluginAddField(myvalue);
158
    //  PluginAddField(myvalue);
159
    //}
159
    //}
160
      alert("veuillez d'abord creer le nombre de champs necessaires ");
160
      alert(_("veuillez d'abord creer le nombre de champs necessaires "));
161
    } else {
161
    } else {
162
    // Pour chaque valeur cochee, ajouter la valeur dans un noeud MACLES.
162
    // Pour chaque valeur cochee, ajouter la valeur dans un noeud MACLES.
163
      for (i=0;i<tab.length;i++){
163
      for (i=0;i<tab.length;i++){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tmpl (-4 / +4 lines)
Lines 38-44 Link Here
38
                        }
38
                        }
39
                    }
39
                    }
40
                    if (batches.length < 1) {
40
                    if (batches.length < 1) {
41
                        alert("Please select at least one batch to export.");
41
                        alert(_("Please select at least one batch to export."));
42
                        return;     // no batch selected
42
                        return;     // no batch selected
43
                    }
43
                    }
44
                    getstr = batches.join("&");
44
                    getstr = batches.join("&");
Lines 47-53 Link Here
47
                    getstr = "batch_id="+document.layouts.action.value;
47
                    getstr = "batch_id="+document.layouts.action.value;
48
                }
48
                }
49
                else {
49
                else {
50
                    alert("Please select at least one batch to export.");
50
                    alert(_("Please select at least one batch to export."));
51
                    return;     // no batch selected
51
                    return;     // no batch selected
52
                }
52
                }
53
                return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?" + getstr, 700, 800);
53
                return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?" + getstr, 700, 800);
Lines 64-70 Link Here
64
                        return(document.layouts.action[selected[0]].value);
64
                        return(document.layouts.action[selected[0]].value);
65
                    }
65
                    }
66
                    else {
66
                    else {
67
                        alert("Please select only one <!-- TMPL_VAR NAME="label_element" --> to " + op + ".");
67
                        alert(_('Please select only one ')+'<!-- TMPL_VAR NAME="label_element" -->'+_(' to ') + op + '.');
68
                        return (-1);
68
                        return (-1);
69
                    }
69
                    }
70
                }
70
                }
Lines 73-79 Link Here
73
                        return(document.layouts.action.value);
73
                        return(document.layouts.action.value);
74
                    }
74
                    }
75
                };
75
                };
76
                alert("Please select a <!-- TMPL_VAR NAME="label_element" -->.");
76
                alert(_('Please select a ')+'<!-- TMPL_VAR NAME="label_element" -->.');
77
                return (-1);
77
                return (-1);
78
            };
78
            };
79
        //]]>
79
        //]]>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tmpl (-3 / +3 lines)
Lines 10-16 $(document).ready(function(){ Link Here
10
});
10
});
11
function CheckUpload(f){
11
function CheckUpload(f){
12
	if(f.fileToUpload.value == ""){
12
	if(f.fileToUpload.value == ""){
13
		alert("Please choose a file to upload");
13
		alert(_("Please choose a file to upload"));
14
	} else {
14
	} else {
15
		return ajaxFileUpload()
15
		return ajaxFileUpload()
16
	}
16
	}
Lines 18-24 function CheckUpload(f){ Link Here
18
}
18
}
19
function CheckForm(f) {
19
function CheckForm(f) {
20
    if (f.uploadedfileid.value == '') {
20
    if (f.uploadedfileid.value == '') {
21
        alert('Please upload a file first.');
21
        alert(_('Please upload a file first.'));
22
    } else {
22
    } else {
23
		$("#fileuploadstatus").hide();
23
		$("#fileuploadstatus").hide();
24
		$("#fileuploadform").slideUp();
24
		$("#fileuploadform").slideUp();
Lines 84-87 function CheckForm(f) { Link Here
84
84
85
85
86
</div>
86
</div>
87
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
87
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tmpl (-1 / +1 lines)
Lines 32-38 Link Here
32
                else if (document.delete_images.action.checked){
32
                else if (document.delete_images.action.checked){
33
                        return {images:"batch_id="+document.delete_images.action.value, image_ids:document.delete_images.action.value};
33
                        return {images:"batch_id="+document.delete_images.action.value, image_ids:document.delete_images.action.value};
34
                };
34
                };
35
                alert("Please select image(s) to " + op + ".");
35
                alert(_("Please select image(s) to ") + op + ".");
36
                return (-1);
36
                return (-1);
37
            };
37
            };
38
            function showHideLayers(element, time, action) {
38
            function showHideLayers(element, time, action) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tmpl (-5 / +5 lines)
Lines 7-13 Link Here
7
            function DeleteConfirm() {
7
            function DeleteConfirm() {
8
                var element_id = selected_layout("delete");
8
                var element_id = selected_layout("delete");
9
                if (element_id>-1) {
9
                if (element_id>-1) {
10
                    var msg = "Are you sure you want to delete <!-- TMPL_VAR NAME="card_element" --> " + element_id + "?"
10
                    var msg = _('Are you sure you want to delete ').'<!-- TMPL_VAR NAME="card_element" --> ' + element_id + '?';
11
                    var answer = confirm(msg);
11
                    var answer = confirm(msg);
12
                    if (answer) {
12
                    if (answer) {
13
                        window.location = "/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=<!-- TMPL_VAR NAME="card_element" -->&element_id=" + element_id;
13
                        window.location = "/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=<!-- TMPL_VAR NAME="card_element" -->&element_id=" + element_id;
Lines 38-44 Link Here
38
                        }
38
                        }
39
                    }
39
                    }
40
                    if (batches.length < 1) {
40
                    if (batches.length < 1) {
41
                        alert("Please select at least one batch to export.");
41
                        alert(_('Please select at least one batch to export.'));
42
                        return;     // no batch selected
42
                        return;     // no batch selected
43
                    }
43
                    }
44
                    getstr = batches.join("&");
44
                    getstr = batches.join("&");
Lines 47-53 Link Here
47
                    getstr = "batch_id="+document.layouts.action.value;
47
                    getstr = "batch_id="+document.layouts.action.value;
48
                }
48
                }
49
                else {
49
                else {
50
                    alert("Please select at least one batch to export.");
50
                    alert(_('Please select at least one batch to export.'));
51
                    return;     // no batch selected
51
                    return;     // no batch selected
52
                }
52
                }
53
                return GB_showCenter('Export Patron Cards', "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800);
53
                return GB_showCenter('Export Patron Cards', "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800);
Lines 64-70 Link Here
64
                        return(document.layouts.action[selected[0]].value);
64
                        return(document.layouts.action[selected[0]].value);
65
                    }
65
                    }
66
                    else {
66
                    else {
67
                        alert("Please select only one <!-- TMPL_VAR NAME="card_element" --> to " + op + ".");
67
                        alert(_('Please select only one ')+'<!-- TMPL_VAR NAME="card_element" --> '+_('to ')+ op + '.');
68
                        return (-1);
68
                        return (-1);
69
                    }
69
                    }
70
                }
70
                }
Lines 73-79 Link Here
73
                        return(document.layouts.action.value);
73
                        return(document.layouts.action.value);
74
                    }
74
                    }
75
                };
75
                };
76
                alert("Please select a <!-- TMPL_VAR NAME="card_element" -->.");
76
                alert(_('Please select a ')+'<!-- TMPL_VAR NAME="card_element" -->.');
77
                return (-1);
77
                return (-1);
78
            };
78
            };
79
        //]]>
79
        //]]>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tmpl (-1 / +1 lines)
Lines 13-19 Link Here
13
            return true;
13
            return true;
14
        }
14
        }
15
        else {
15
        else {
16
            alert("You must enter a date !");
16
            alert(_('You must enter a date !'));
17
            document.f.date.focus();
17
            document.f.date.focus();
18
            return false;
18
            return false;
19
        }
19
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-recieve.tmpl (-1 / +1 lines)
Lines 306-312 function barcode_check(){ Link Here
306
		<h3>Note: Subscription is about to expire next issue.</h3>
306
		<h3>Note: Subscription is about to expire next issue.</h3>
307
		<script type="text/javascript">
307
		<script type="text/javascript">
308
		<!--
308
		<!--
309
		alert("Subscription is about to expire next issue");
309
		alert(_('Subscription is about to expire next issue'));
310
		//-->
310
		//-->
311
		</script>
311
		</script>
312
	<!-- /TMPL_IF -->	
312
	<!-- /TMPL_IF -->	
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tmpl (-2 / +2 lines)
Lines 11-24 Link Here
11
          function checkForm(form) {
11
          function checkForm(form) {
12
              if((form.checkbox[0].checked)){
12
              if((form.checkbox[0].checked)){
13
                  if(!(form.date1.value)){
13
                  if(!(form.date1.value)){
14
                    alert("please enter a date !");
14
                    alert(_("please enter a date !"));
15
                    document.form.date1.focus();
15
                    document.form.date1.focus();
16
                    return false;
16
                    return false;
17
                  }
17
                  }
18
              }
18
              }
19
              if((form.checkbox[1].checked)){
19
              if((form.checkbox[1].checked)){
20
                  if(!(form.date2.value)){
20
                  if(!(form.date2.value)){
21
                      alert("please enter a date !");
21
                      alert(_("please enter a date !"));
22
                      document.form.date2.focus();
22
                      document.form.date2.focus();
23
                      return false;
23
                      return false;
24
                  }
24
                  }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tmpl (-1 / +1 lines)
Lines 14-20 $(document).ready(function(){ Link Here
14
});
14
});
15
function CheckForm(f) {
15
function CheckForm(f) {
16
    if ($("#fileToUpload").value == '') {
16
    if ($("#fileToUpload").value == '') {
17
        alert('Please upload a file first.');
17
        alert(_('Please upload a file first.'));
18
    } else {
18
    } else {
19
        return submitBackgroundJob(f);
19
        return submitBackgroundJob(f);
20
    }
20
    }
(-)a/koha-tmpl/opac-tmpl/prog/en/includes/calendar.inc (-1 / +1 lines)
Lines 32-38 function get_Calendar_limit (date,did) { Link Here
32
	if (debug && debug > 5) {
32
	if (debug && debug > 5) {
33
		var month = date.getMonth() + 1;
33
		var month = date.getMonth() + 1;
34
		var dateString = date.getFullYear() + '-' + month + '-' + date.getDate();
34
		var dateString = date.getFullYear() + '-' + month + '-' + date.getDate();
35
		alert("Comparing incoming (" + dateString + ") vs "
35
		alert(_("Comparing incoming (") + dateString + ") vs "
36
			+ "'" + did + "' limit\n"
36
			+ "'" + did + "' limit\n"
37
			+ "\n thisdate: " + date
37
			+ "\n thisdate: " + date
38
			+ "\nlimitdate: " + limitDate
38
			+ "\nlimitdate: " + limitDate
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tmpl (-2 / +2 lines)
Lines 34-45 $(document).ready(function(){ Link Here
34
			var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
34
			var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
35
			<!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
35
			<!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
36
			Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
36
			Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
37
			}<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
37
			}<!-- TMPL_ELSE --> alert(_('You must be logged in to create or add to Lists')); <!-- /TMPL_IF -->
38
			return false;
38
			return false;
39
		} else if($("#addto").find("option:selected").attr("value") == "newlist"){
39
		} else if($("#addto").find("option:selected").attr("value") == "newlist"){
40
			<!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
40
			<!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
41
			Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
41
			Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
42
			}<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
42
			}<!-- TMPL_ELSE --> alert(_('You must be logged in to create or add to Lists')); <!-- /TMPL_IF -->
43
			return false;
43
			return false;
44
		}
44
		}
45
		if($("#addto").find("option:selected").attr("value") == "addtocart"){
45
		if($("#addto").find("option:selected").attr("value") == "addtocart"){
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl (-2 / +2 lines)
Lines 164-175 $(document).ready(function(){ Link Here
164
		} else if($("#addto").find("option:selected").attr("value") == "newlist"){
164
		} else if($("#addto").find("option:selected").attr("value") == "newlist"){
165
			<!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
165
			<!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
166
			Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
166
			Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
167
			}<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
167
			}<!-- TMPL_ELSE --> alert(_('You must be logged in to create or add to Lists')); <!-- /TMPL_IF -->
168
			return false;
168
			return false;
169
        } else if($("#addto").find("option:selected").attr("value") == "morelists"){
169
        } else if($("#addto").find("option:selected").attr("value") == "morelists"){
170
            <!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
170
            <!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
171
            Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
171
            Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
172
            }<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
172
            }<!-- TMPL_ELSE --> alert(_('You must be logged in to create or add to Lists')); <!-- /TMPL_IF -->
173
            return false;
173
            return false;
174
		}
174
		}
175
		if($("#addto").find("option:selected").attr("value") == "addtocart" || $("#addto").attr("class") == "addtocart"){
175
		if($("#addto").find("option:selected").attr("value") == "addtocart" || $("#addto").attr("class") == "addtocart"){
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tmpl (-3 / +2 lines)
Lines 8-14 Link Here
8
	 $(document).ready(function() {
8
	 $(document).ready(function() {
9
	 	var inject_old = function(comment) {
9
	 	var inject_old = function(comment) {
10
			<!-- TMPL_IF NAME="reviewid" -->
10
			<!-- TMPL_IF NAME="reviewid" -->
11
			<!-- TMPL_IF NAME="cgi_debug" -->alert("injecting OLD comment: " +comment);<!-- /TMPL_IF -->
11
			<!-- TMPL_IF NAME="cgi_debug" -->alert(_("injecting OLD comment: ") +comment);<!-- /TMPL_IF -->
12
			parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').prev("small").prev("h5").html("Your Edited Comment (preview, pending approval)");
12
			parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').prev("small").prev("h5").html("Your Edited Comment (preview, pending approval)");
13
			parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').html(comment);
13
			parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').html(comment);
14
			parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').append(" <a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->&amp;reviewid=<!-- TMPL_VAR NAME="reviewid" -->\');\">Edit<\/a>");
14
			parent.opener.$('#c<!-- TMPL_VAR NAME="reviewid" --> p').append(" <a href=\"#comment\" onclick=\"Dopop(\'/cgi-bin/koha/opac-review.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->&amp;reviewid=<!-- TMPL_VAR NAME="reviewid" -->\');\">Edit<\/a>");
Lines 16-22 Link Here
16
			return 1;
16
			return 1;
17
		};
17
		};
18
	 	var inject_new = function(comment) {
18
	 	var inject_new = function(comment) {
19
			<!-- TMPL_IF NAME="cgi_debug" -->alert("injecting NEW comment: " +comment);<!-- /TMPL_IF -->
19
			<!-- TMPL_IF NAME="cgi_debug" -->alert(_("injecting NEW comment: ") +comment);<!-- /TMPL_IF -->
20
			parent.opener.$('#newcomment').attr("class","yours");
20
			parent.opener.$('#newcomment').attr("class","yours");
21
			parent.opener.$('#newcomment').html(
21
			parent.opener.$('#newcomment').html(
22
				"<h5>Your Comment (preview, pending approval)<\/h5>" +
22
				"<h5>Your Comment (preview, pending approval)<\/h5>" +
23
- 

Return to bug 6084