Open Bug 1191690 Opened 11 years ago Updated 11 years ago

Impossible to translate values in lists inclusion_to_remove and exclusion_to_remove from admin/flag-type/edit.html.tmpl

Categories

(Bugzilla :: User Interface, defect)

defect
Not set
minor

Tracking

()

People

(Reporter: gdsotirov, Unassigned)

References

()

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0 Build ID: 20150630154324 Steps to reproduce: 1. Log in to any localized Bugzilla installation (e.g. BG, FR, DE, etc.) as administrator; 2. Go to Administration -> Flags (or the corresponding in the localized version); 3. Click the link under column "Edit name..." (or the corresponding in the localized version) on an existing flag; 4. Notice the values "__Any__" in lists "Inclusions" and/or "Exclusions" (or the corresponding in the localized version); Actual results: The values appear in English. Expected results: The values should appear translated.
The page Edit Flag Type as it looks in French.
Severity: normal → minor
OS: Unspecified → All
Hardware: Unspecified → All
I'm not able to find these values in template admin/flag-type/edit.html.tmpl and all of them seem to be generated by the block category_select (see below). All the values for these lists seem to be coming from the CGI script. [% BLOCK category_select %] <select name="[% name FILTER html %]" multiple="multiple" size="7"> [% FOREACH option = categories.keys.sort %] <option value="[% categories.$option FILTER html %]"> [% option FILTER html %] </option> [% END %] </select> [% END %]
Indeed, it looks like both editflagtypes.cgi (around line 211) and Bugzilla/FlagType.pm (around line 372) hardcode the value __Any__ in addition to having them around in the templates. In templates it's easy to change them but the Perl script/module are the problem. The values should probably be translatable using the global/value-descs.none.tmpl feature or some other template variables in use. This was probably going to get fixed during refactorization in bug 261181 but that seems to have stalled. However, fixing only this bug might be simple enough for a new contributor. Might want to also check if some other similar special values should be fixed either in here or on other bugs (like __All__).
Status: UNCONFIRMED → NEW
Ever confirmed: true
(In reply to Teemu Mannermaa (:wicked) from comment #3) > The values should probably be translatable using the global/value-descs.none.tmpl > feature or some other template variables in use. Have you tried this? I already have translations for bug_status, resolution, bug_severity, priority, rep_platform and op_sys into this template, but I haven't tried for product and component.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: