From: lpsolit%gmail.com <> Date: Wed, 20 Jul 2005 19:48:22 +0000 (+0000) Subject: Bug 298220: Graphs should use localised terms for statuses and resolutions - Patch... X-Git-Tag: bugzilla-2.20rc2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e1be1a9d6b5c19286dce73372cd5d37c65d5f0a;p=thirdparty%2Fbugzilla.git Bug 298220: Graphs should use localised terms for statuses and resolutions - Patch by Emmanuel Seyman r=gerv,wurblzap a=myk --- diff --git a/template/en/default/global/field-descs.none.tmpl b/template/en/default/global/field-descs.none.tmpl index 2ff546436f..38d9259f07 100644 --- a/template/en/default/global/field-descs.none.tmpl +++ b/template/en/default/global/field-descs.none.tmpl @@ -85,5 +85,6 @@ "DUPLICATE" => "DUPLICATE", "WORKSFORME" => "WORKSFORME", "MOVED" => "MOVED", - "---" => "---" } %] + "---" => "---", + " " => " " } %] diff --git a/template/en/default/reports/report-bar.png.tmpl b/template/en/default/reports/report-bar.png.tmpl index 72a5d9dd4b..bb5dab7cd6 100644 --- a/template/en/default/reports/report-bar.png.tmpl +++ b/template/en/default/reports/report-bar.png.tmpl @@ -27,6 +27,30 @@ [% col_field_disp = field_descs.$col_field || col_field %] +[% IF col_field == 'bug_status' %] + [% FOR i IN [ 0 .. data.0.0.max ] %] + [% data.0.0.$i = status_descs.${data.0.0.$i} %] + [% END %] +[% END %] + +[% IF col_field == 'resolution' %] + [% FOR i IN [ 0 .. data.0.0.max ] %] + [% data.0.0.$i = resolution_descs.${data.0.0.$i} %] + [% END %] +[% END %] + +[% IF row_field == 'bug_status' %] + [% FOR i IN [ 0 .. row_names.max ] %] + [% row_names.$i = status_descs.${row_names.$i} %] + [% END %] +[% END %] + +[% IF row_field == 'resolution' %] + [% FOR i IN [ 0 .. row_names.max ] %] + [% row_names.$i = resolution_descs.${row_names.$i} %] + [% END %] +[% END %] + [% FILTER null; USE graph = GD.Graph.bars(width, height); diff --git a/template/en/default/reports/report-line.png.tmpl b/template/en/default/reports/report-line.png.tmpl index be29a71e31..60e9f261ad 100644 --- a/template/en/default/reports/report-line.png.tmpl +++ b/template/en/default/reports/report-line.png.tmpl @@ -27,6 +27,30 @@ [% col_field_disp = field_descs.$col_field || col_field %] +[% IF col_field == 'bug_status' %] + [% FOR i IN [ 0 .. data.0.0.max ] %] + [% data.0.0.$i = status_descs.${data.0.0.$i} %] + [% END %] +[% END %] + +[% IF col_field == 'resolution' %] + [% FOR i IN [ 0 .. data.0.0.max ] %] + [% data.0.0.$i = resolution_descs.${data.0.0.$i} %] + [% END %] +[% END %] + +[% IF row_field == 'bug_status' %] + [% FOR i IN [ 0 .. row_names.max ] %] + [% row_names.$i = status_descs.${row_names.$i} %] + [% END %] +[% END %] + +[% IF row_field == 'resolution' %] + [% FOR i IN [ 0 .. row_names.max ] %] + [% row_names.$i = resolution_descs.${row_names.$i} %] + [% END %] +[% END %] + [% IF cumulate %] [% USE graph = GD.Graph.area(width, height) %] [% graph.set(cumulate => "true") %] diff --git a/template/en/default/reports/report-pie.png.tmpl b/template/en/default/reports/report-pie.png.tmpl index 38cc56cc4e..c70b06bcf4 100644 --- a/template/en/default/reports/report-pie.png.tmpl +++ b/template/en/default/reports/report-pie.png.tmpl @@ -23,6 +23,18 @@ [% col_field_disp = field_descs.$col_field || col_field %] +[% IF col_field == 'bug_status' %] + [% FOR i IN [ 0 .. data.0.0.max ] %] + [% data.0.0.$i = status_descs.${data.0.0.$i} %] + [% END %] +[% END %] + +[% IF col_field == 'resolution' %] + [% FOR i IN [ 0 .. data.0.0.max ] %] + [% data.0.0.$i = resolution_descs.${data.0.0.$i} %] + [% END %] +[% END %] + [% FILTER null; USE graph = GD.Graph.pie(width, height);