Commit f0a9bdd0 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 298220: Graphs should use localised terms for statuses and resolutions -…

Bug 298220: Graphs should use localised terms for statuses and resolutions - Patch by Emmanuel Seyman <eseyman@linagora.com> r=gerv,wurblzap a=myk
parent 0f832a59
...@@ -85,5 +85,6 @@ ...@@ -85,5 +85,6 @@
"DUPLICATE" => "DUPLICATE", "DUPLICATE" => "DUPLICATE",
"WORKSFORME" => "WORKSFORME", "WORKSFORME" => "WORKSFORME",
"MOVED" => "MOVED", "MOVED" => "MOVED",
"---" => "---" } %] "---" => "---",
" " => " " } %]
...@@ -27,6 +27,30 @@ ...@@ -27,6 +27,30 @@
[% col_field_disp = field_descs.$col_field || col_field %] [% 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; [% FILTER null;
USE graph = GD.Graph.bars(width, height); USE graph = GD.Graph.bars(width, height);
......
...@@ -27,6 +27,30 @@ ...@@ -27,6 +27,30 @@
[% col_field_disp = field_descs.$col_field || col_field %] [% 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 %] [% IF cumulate %]
[% USE graph = GD.Graph.area(width, height) %] [% USE graph = GD.Graph.area(width, height) %]
[% graph.set(cumulate => "true") %] [% graph.set(cumulate => "true") %]
......
...@@ -23,6 +23,18 @@ ...@@ -23,6 +23,18 @@
[% col_field_disp = field_descs.$col_field || col_field %] [% 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; [% FILTER null;
USE graph = GD.Graph.pie(width, height); USE graph = GD.Graph.pie(width, height);
......
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