]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 296180: Table and CSV reports should use localised terms for statuses and resolut...
authorlpsolit%gmail.com <>
Wed, 15 Jun 2005 05:43:11 +0000 (05:43 +0000)
committerlpsolit%gmail.com <>
Wed, 15 Jun 2005 05:43:11 +0000 (05:43 +0000)
template/en/default/reports/report-table.csv.tmpl
template/en/default/reports/report-table.html.tmpl

index 216419fea5eb825cd6c23358a3f031e9d4043fe5..42fcd6686aac1bce13bca66c127617b98b6362ff 100644 (file)
 [% title %],
 [% IF col_field -%]
 [% FOREACH col = col_names -%]
-  [% col FILTER csv -%],
+  [% IF col_field == 'bug_status' %]
+    [% status_descs.$col FILTER csv -%]
+  [% ELSIF col_field == 'resolution' %]
+    [% resolution_descs.$col FILTER csv -%]
+  [% ELSE %]
+    [% col FILTER csv -%],
+  [% END %]
 [% END -%]
 [% ELSE -%]
   [% num_bugs %],
 [% END %]
 
 [% FOREACH row = row_names %]
-  [% row FILTER csv -%],
+[% IF row_field == 'bug_status' %]
+    [% status_descs.$row FILTER csv -%]
+  [% ELSIF row_field == 'resolution' %]
+    [% resolution_descs.$row FILTER csv -%]
+  [% ELSE %]
+    [% row FILTER csv -%],
+  [% END %]
   [% FOREACH col = col_names %]
     [% IF data.$tbl AND data.$tbl.$col AND data.$tbl.$col.$row %]
       [% data.$tbl.$col.$row -%],
index 3c90d5bf2f4cc4c67a6908254ef45a6661cb5dd4..0e2ae62c86ad43148512ee2a729487a2f7a330b3 100644 (file)
         
         [% col_idx = 1 - col_idx %]
         <td class="[% classes.$row_idx.$col_idx %]">
-          [% col FILTER html FILTER replace('^ $','&nbsp;') %]
+          [% IF col_field == 'bug_status' %]
+            [% status_descs.$col FILTER html FILTER replace('^ $','&nbsp;') %]
+          [% ELSIF col_field == 'resolution' %]
+            [% resolution_descs.$col FILTER html FILTER replace('^ $','&nbsp;') %]
+          [% ELSE %]
+            [% col FILTER html FILTER replace('^ $','&nbsp;') %]
+          [% END %]
         </td>
       [% END %]
       <td class="ttotal">
     [% row_idx = 1 - row_idx %]
     <tr>
       <td class="[% classes.$row_idx.$col_idx %]" align="right">
-        [% row FILTER html FILTER replace('^ $','&nbsp;') %]
+        [% IF row_field == 'bug_status' %]
+          [% status_descs.$row FILTER html FILTER replace('^ $','&nbsp;') %]
+        [% ELSIF row_field == 'resolution' %]
+          [% resolution_descs.$row FILTER html FILTER replace('^ $','&nbsp;') %]
+        [% ELSE %]
+          [% row FILTER html FILTER replace('^ $','&nbsp;') %]
+        [% END %]
       </td>
       [% FOREACH col = col_names %]
         [% row_total = row_total + data.$tbl.$col.$row %]