Commit d69b9a45 authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 174221 - field names should be l10n in user-errors.html.tmpl. Patch by…

Bug 174221 - field names should be l10n in user-errors.html.tmpl. Patch by jeff.hedlund@matrixsi.com; r=burnus, gerv.
parent 7d495725
...@@ -710,7 +710,7 @@ foreach my $field ("estimated_time", "remaining_time") { ...@@ -710,7 +710,7 @@ foreach my $field ("estimated_time", "remaining_time") {
my $er_time = trim($::FORM{$field}); my $er_time = trim($::FORM{$field});
if ($er_time ne $::FORM{'dontchange'}) { if ($er_time ne $::FORM{'dontchange'}) {
if ($er_time > 99999.99) { if ($er_time > 99999.99) {
ThrowUserError("value_out_of_range", {variable => $field}); ThrowUserError("value_out_of_range", {field => $field});
} }
if ($er_time =~ /^(?:\d+(?:\.\d*)?|\.\d+)$/) { if ($er_time =~ /^(?:\d+(?:\.\d*)?|\.\d+)$/) {
DoComma(); DoComma();
...@@ -1199,7 +1199,7 @@ foreach my $id (@idlist) { ...@@ -1199,7 +1199,7 @@ foreach my $id (@idlist) {
$timestamp = FetchOneColumn(); $timestamp = FetchOneColumn();
if ($::FORM{'work_time'} > 99999.99) { if ($::FORM{'work_time'} > 99999.99) {
ThrowUserError("value_out_of_range", {variable => 'work_time'}); ThrowUserError("value_out_of_range", {field => 'work_time'});
} }
if (defined $::FORM{'comment'} || defined $::FORM{'work_time'}) { if (defined $::FORM{'comment'} || defined $::FORM{'work_time'}) {
if ($::FORM{'work_time'} != 0 && if ($::FORM{'work_time'} != 0 &&
......
...@@ -33,14 +33,17 @@ ...@@ -33,14 +33,17 @@
"component" => "Component", "component" => "Component",
"creation_ts" => "Bug Creation time", "creation_ts" => "Bug Creation time",
"delta_ts" => "Last Changed time", "delta_ts" => "Last Changed time",
"estimated_time" => "Orig. Est.",
"everconfirmed" => "Ever confirmed?", "everconfirmed" => "Ever confirmed?",
"groupset" => "Groupset", "groupset" => "Groupset",
"keywords" => "Keywords", "keywords" => "Keywords",
"op_sys" => "OS", "op_sys" => "OS",
"percentage_complete" => "%Complete",
"priority" => "Priority", "priority" => "Priority",
"product_id" => "Product ID", "product_id" => "Product ID",
"product" => "Product", "product" => "Product",
"qa_contact" => "QA Contact", "qa_contact" => "QA Contact",
"remaining_time" => "Hours Left",
"rep_platform" => "Hardware", "rep_platform" => "Hardware",
"reporter" => "Reporter", "reporter" => "Reporter",
"reporter_accessible" => "Reporter accessible?", "reporter_accessible" => "Reporter accessible?",
...@@ -49,4 +52,5 @@ ...@@ -49,4 +52,5 @@
"status_whiteboard" => "Whiteboard", "status_whiteboard" => "Whiteboard",
"target_milestone" => "Target Milestone", "target_milestone" => "Target Milestone",
"version" => "Version", "version" => "Version",
"votes" => "Votes" } %] "votes" => "Votes",
"work_time" => "Hours Worked"} %]
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
# alphabetical order by error tag, and leave a blank line between errors. # alphabetical order by error tag, and leave a blank line between errors.
#%] #%]
[% PROCESS "global/field-descs.html.tmpl" %]
[% DEFAULT title = "Error" %] [% DEFAULT title = "Error" %]
[% error_message = BLOCK %] [% error_message = BLOCK %]
...@@ -345,7 +347,7 @@ ...@@ -345,7 +347,7 @@
[% ELSIF error == "need_positive_number" %] [% ELSIF error == "need_positive_number" %]
[% title = "Positive Number Required" %] [% title = "Positive Number Required" %]
[% field %] requires a positive number. The <em>[% field_descs.$field %]</em> field requires a positive number.
[% ELSIF error == "need_product" %] [% ELSIF error == "need_product" %]
[% title = "Product Required" %] [% title = "Product Required" %]
...@@ -543,7 +545,7 @@ ...@@ -543,7 +545,7 @@
[% ELSIF error == "value_out_of_range" %] [% ELSIF error == "value_out_of_range" %]
[% title = "Value Out Of Range" %] [% title = "Value Out Of Range" %]
Value is out of range for field [% variable %]. Value is out of range for field <em>[% field_descs.$field %]</em>.
[% ELSIF error == "z_axis_defined_with_no_x_axis" %] [% ELSIF error == "z_axis_defined_with_no_x_axis" %]
[% title = "Nonsensical Options" %] [% title = "Nonsensical Options" %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment