@@ -, +, @@ template contain untranslatable strings --- admin/transport-cost-matrix.pl | 2 +- .../intranet-tmpl/prog/en/modules/admin/transport-cost-matrix.tt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/admin/transport-cost-matrix.pl +++ a/admin/transport-cost-matrix.pl @@ -82,7 +82,7 @@ foreach my $branchfrom ( @branchloop ) { $from_to_input_def{disabled} = 1; } else { - push @errors, "Invalid value for $from_row{name} -> $from_to_input_def{name}" + push @errors, "$from_row{name} -> $from_to_input_def{name}" unless $value =~ /\d/o && $value >= 0.0; } } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transport-cost-matrix.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transport-cost-matrix.tt @@ -9,7 +9,7 @@ function check_transport_cost(e) { if (val && val != '' && !isNaN(parseFloat(val)) && val >= 0.0) { return; } - alert("Cost must be expressed as a decimal number >= 0"); + alert(_("Cost must be expressed as a decimal number >= 0")); } function disable_transport_cost_chg(e, cost_id) { disable_transport_cost(cost_id, e.checked); @@ -69,7 +69,7 @@ function form_submit (f) {

There were problems with your submission

[% END %] --