diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt index 1ae8d429d4..f27ebfa848 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -18,12 +18,6 @@ [% Asset.js("js/acq.js") | $raw %] [% Asset.js("js/funds_sorts.js") | $raw %] [% Asset.js("js/addorderiso2709.js") | $raw %] - diff --git a/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js b/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js index 04b8851936..3211017af9 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js +++ b/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js @@ -1,4 +1,4 @@ -/* global dataTablesDefaults ERR_NO_RECORD_SELECTED ERR_INVALID_QUANTITY ERR_FUNDS_MISSING MSG_LOADING */ +/* global dataTablesDefaults __ */ $(document).ready(function() { $("#Aform").preventDoubleFormSubmit(); @@ -50,7 +50,7 @@ $(document).ready(function() { e.preventDefault(); if ( $("input:checkbox[name='import_record_id']:checked").length < 1 ) { - alert( ERR_NO_RECORD_SELECTED ); + alert( __("There is no record selected") ); return false; } @@ -61,14 +61,14 @@ $(document).ready(function() { } }); if ( error > 0 ) { - alert( error + " " + ERR_INVALID_QUANTITY ); + alert(error + " " + __("quantity values are not filled in or are not numbers") ); return false; } error = checkOrderBudgets(); if ( error > 0 ) { - alert( ERR_FUNDS_MISSING ); + alert( __("Some budgets are not defined in item records") ); return false; } @@ -88,7 +88,7 @@ $(document).ready(function() { }); $("#dataPreview").on("hidden.bs.modal", function(){ $("#dataPreviewLabel").html(""); - $("#dataPreview .modal-body").html("
\"\" " + MSG_LOADING + "
"); + $("#dataPreview .modal-body").html("
\"\" " + __("Loading") + "
"); }); });