Closed Bug 389518 Opened 17 years ago Closed 17 years ago

Old charts display resolution and status in English

Categories

(Bugzilla :: Reporting/Charting, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: ycombarnous, Assigned: gerv)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5
Build Identifier: 

When changing the label of status and resolution in field-descs.tmp.html, the new labels are not displayed in reports.cgi output.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Version: unspecified → 3.0
Strangely enough, the template code says:

"We cannot use translated statuses and resolutions from field-descs.none.html
because old charts do not distinguish statuses from resolutions."

But what about doing:

[% FOREACH dataset = datasets %]
   <option value="[% dataset.value FILTER html %]:"
       [% " selected=\"selected\"" IF dataset.selected %]>
       [% result = status_descs.${dataset.value} ? status_descs.${dataset.value}: get_resolution(dataset.value) %]
       [% result FILTER html %]
    </option>
[% END %]

What remains to be done is to have the labels in the destination chart also translated. Apparently, normal charting can do that, so there should be an easy way.
In addition, the word bug is still hard-coded in old charts.
The comment explains why this would be a hack. We decided to leave old charts alone as we plan to remove them anyway, see bug 232113.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.