Closed Bug 293767 Opened 20 years ago Closed 20 years ago

The search page does not use localised terms for statuses and resolutions

Categories

(Bugzilla :: User Interface, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: emmanuel, Assigned: emmanuel)

References

Details

Attachments

(1 file, 2 obsolete files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.7) Gecko/20050416 Fedora/1.0.3-1.3.1 Firefox/1.0.3 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.7) Gecko/20050416 Fedora/1.0.3-1.3.1 Firefox/1.0.3 The resolution to bug #215148 introduced localised terms for statuses and resolutions. There are quite a few areas in the Bugzilla code that need to be modified to become aware of these translations. This bug tracks query.cgi, where the Advanced Search will use the English terms. Reproducible: Always Steps to Reproduce: 1. Go to query.cgi 2. Click on "Advanced Search" Actual Results: A search for is displayed using the in-DB values for statuses and resolutions. Expected Results: Values for statuses and resolutions should be the values in the status_descs and the resolution_descs from global/field-descs.none.tmpl.
Couldn't find an easy way to modify the existing select function to resolve this so I created select_status and select_resolution functions.
Attachment #183289 - Flags: review?(myk)
Attached patch one select to rule them all (obsolete) — Splinter Review
Talk about not seeing the forest for the trees... One (and only one) select function.
Attachment #183391 - Flags: review?(myk)
Attachment #183289 - Attachment is obsolete: true
Depends on: 215148
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee: myk → eseyman
Status: ASSIGNED → NEW
Attachment #183289 - Flags: review?(myk)
Comment on attachment 183391 [details] [diff] [review] one select to rule them all >+ [% IF name == "---" %] >+ [% name FILTER html %]</option> >+ [% ELSE %] >+ [% resolution_descs.${name} FILTER html %]</option> >+ [% END %] This works and looks OK, but a better approach would be to add "---" to resolution_descs and drop this conditional.
Attachment #183391 - Flags: review?(myk) → review+
Comment on attachment 183391 [details] [diff] [review] one select to rule them all After looking at the other patches you have waiting on my review, it makes more sense to add "---" to resolution_descs. Please update this patch with that fix. I'll review the other patches assuming you'll do so.
Attachment #183391 - Flags: review+ → review-
Taking into account Myk's comments. This patch adds "---" to the list of translatable resolutions and removes the escaping of the special case in the template loop.
Attachment #183391 - Attachment is obsolete: true
Attachment #184441 - Flags: review?(myk)
Attachment #184441 - Flags: review?(myk) → review+
Requesting approval for this one as well.
Flags: approval?
Good low-risk polish fix for 2.20. a=myk
Flags: approval? → approval+
Checking in template/en/default/global/field-descs.none.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/global/field-descs.none.tmpl,v <-- field-descs.none.tmpl new revision: 1.10; previous revision: 1.9 done Checking in template/en/default/search/form.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/search/form.html.tmpl,v <-- form.html.tmpl new revision: 1.31; previous revision: 1.30 done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Target Milestone: --- → Bugzilla 2.20
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: