Bug 298220: Graphs should use localised terms for statuses and resolutions - Patch by Emmanuel Seyman <eseyman@linagora.com> r=gerv,wurblzap a=myk

This commit is contained in:
lpsolit%gmail.com 2005-07-20 12:39:48 +00:00
parent 2d9d76dc6a
commit 1ea77ce857
4 changed files with 62 additions and 1 deletions

View File

@ -85,5 +85,6 @@
"DUPLICATE" => "DUPLICATE",
"WORKSFORME" => "WORKSFORME",
"MOVED" => "MOVED",
"---" => "---" } %]
"---" => "---",
" " => " " } %]

View File

@ -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);

View File

@ -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") %]

View File

@ -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);