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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-batches-toolbar.inc (-5 / +5 lines)
Lines 22-28 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("&");
Lines 34-40 Link Here
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 67-73 Link Here
67
                            }
67
                            }
68
                        }
68
                        }
69
                        if (labels.length < 1) {
69
                        if (labels.length < 1) {
70
                            alert("Please select at least one label to export.");
70
                            alert(_("Please select at least one label to export."));
71
                            return;     // no batch selected
71
                            return;     // no batch selected
72
                        }
72
                        }
73
                        getstr = labels.join("&");
73
                        getstr = labels.join("&");
Lines 76-82 Link Here
76
                        getstr = document.items.action.value;
76
                        getstr = document.items.action.value;
77
                    }
77
                    }
78
                    else {
78
                    else {
79
                        alert("Please select at least one label to export.");
79
                        alert(_("Please select at least one label to export."));
80
                        return;     // no batch selected
80
                        return;     // no batch selected
81
                    }
81
                    }
82
                    return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&" + getstr, 700, 800);
82
                    return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&" + getstr, 700, 800);
Lines 101-107 Link Here
101
                        return(document.items.action.value);
101
                        return(document.items.action.value);
102
                    }
102
                    }
103
                };
103
                };
104
                alert("Please select at least one item.");
104
                alert(_("Please select at least one item."));
105
                return (-1);
105
                return (-1);
106
            };
106
            };
107
107
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-batches-toolbar.inc (-5 / +5 lines)
Lines 22-28 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("&");
Lines 34-40 Link Here
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/xmlControlfield.js (-1 / +1 lines)
Lines 209-215 function changeH4Result(form, h4_result, tr_result, pos, value) Link Here
209
            }).responseXML;
209
            }).responseXML;
210
            if (this.xmlDoc) this.renderTemplate();
210
            if (this.xmlDoc) this.renderTemplate();
211
            $("*").ajaxError(function(evt, request, settings){
211
            $("*").ajaxError(function(evt, request, settings){
212
                alert("AJAX error: receiving data from " + settings.url);
212
                alert(_("AJAX error: receiving data from ") + settings.url);
213
            });
213
            });
214
        },//loadXmlValues
214
        },//loadXmlValues
215
215
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl (-2 / +2 lines)
Lines 78-90 $(document).ready(function() Link Here
78
            // if user decreases the quantity
78
            // if user decreases the quantity
79
            if($(this).val() < <!-- TMPL_VAR name="quantityrec" -->) 
79
            if($(this).val() < <!-- TMPL_VAR name="quantityrec" -->) 
80
            {
80
            {
81
                alert("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog");   
81
                alert(_("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog"));
82
                return true;
82
                return true;
83
            } 
83
            } 
84
            else 
84
            else 
85
            {
85
            {
86
                // if user increases the quantity
86
                // if user increases the quantity
87
                alert("You can't add a new item, please create a new order line");
87
                alert(_("You can't add a new item, please create a new order line"));
88
                // and we replace the original value
88
                // and we replace the original value
89
                $(this).val(<!-- TMPL_VAR name="quantityrec" -->)
89
                $(this).val(<!-- TMPL_VAR name="quantityrec" -->)
90
                return false;
90
                return false;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tmpl (-1 / +1 lines)
Lines 73-79 $(document).ready(function() { Link Here
73
73
74
        var matches = new RegExp("\\?error_import_export=(.+)$").exec(window.location.search);
74
        var matches = new RegExp("\\?error_import_export=(.+)$").exec(window.location.search);
75
        if (matches && matches.length > 1) {
75
        if (matches && matches.length > 1) {
76
            alert("Error importing the framework " + decodeURIComponent(matches[1]));
76
            alert(_("Error importing the framework ") + decodeURIComponent(matches[1]));
77
        }
77
        }
78
    });
78
    });
79
    
79
    
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tmpl (-1 / +1 lines)
Lines 13-19 Link Here
13
//<![CDATA[
13
//<![CDATA[
14
    function Check(f) {
14
    function Check(f) {
15
        if (f.city_zipcode.value.length == 0 && f.city_name.value.length == 0 ) {
15
        if (f.city_zipcode.value.length == 0 && f.city_name.value.length == 0 ) {
16
            alert("City name & zipcode missing");
16
            alert(_("City name & zipcode missing"));
17
        } else{
17
        } else{
18
            document.Aform.submit();
18
            document.Aform.submit();
19
        }
19
        }
(-)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-edit-batch.tmpl (-1 / +1 lines)
Lines 10-16 Link Here
10
        }
10
        }
11
        function verifyBarcodes(barcodes) {
11
        function verifyBarcodes(barcodes) {
12
            if (barcodes.value == '') {
12
            if (barcodes.value == '') {
13
                alert("Please add barcodes using either the direct entry text area or the item search.");
13
                alert(_("Please add barcodes using either the direct entry text area or the item search."));
14
                return false;   // not ok
14
                return false;   // not ok
15
            }
15
            }
16
            else {
16
            else {
(-)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 (-2 / +2 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 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 (-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 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/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