diff options
author | lpsolit%gmail.com <> | 2005-07-20 21:39:47 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-07-20 21:39:47 +0200 |
commit | f0a9bdd03c1a9e8fb55870143995165595f386af (patch) | |
tree | dc4e09950908ebffddfbae6f0464614b108f83d6 /template/en | |
parent | 0f832a59ab1a0670b7c3f2fb52cb2131bffc1dbc (diff) | |
download | bugzilla-f0a9bdd03c1a9e8fb55870143995165595f386af.tar.gz bugzilla-f0a9bdd03c1a9e8fb55870143995165595f386af.tar.xz |
Bug 298220: Graphs should use localised terms for statuses and resolutions - Patch by Emmanuel Seyman <eseyman@linagora.com> r=gerv,wurblzap a=myk
Diffstat (limited to 'template/en')
-rw-r--r-- | template/en/default/global/field-descs.none.tmpl | 3 | ||||
-rw-r--r-- | template/en/default/reports/report-bar.png.tmpl | 24 | ||||
-rw-r--r-- | template/en/default/reports/report-line.png.tmpl | 24 | ||||
-rw-r--r-- | template/en/default/reports/report-pie.png.tmpl | 12 |
4 files changed, 62 insertions, 1 deletions
diff --git a/template/en/default/global/field-descs.none.tmpl b/template/en/default/global/field-descs.none.tmpl index 2ff546436..38d9259f0 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 72a5d9dd4..bb5dab7cd 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 be29a71e3..60e9f261a 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 38cc56cc4..c70b06bcf 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); |