Closed Bug 435504 Opened 16 years ago Closed 16 years ago

Boolean charts use field descriptions from the DB, making them english only

Categories

(Bugzilla :: Query/Bug List, defect)

3.1.4
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: LpSolit, Assigned: LpSolit)

Details

Attachments

(1 file)

Attached patch patch, v1Splinter Review
In l10n installations, field descriptions of fields are always in english because field.description is displayed instead of field_descs.${field.name}.
Attachment #322313 - Flags: review?(mkanat)
Comment on attachment 322313 [details] [diff] [review]
patch, v1

>Index: template/en/default/search/boolean-charts.html.tmpl
>+              [% field_descs.${field.name} || "---" FILTER html %]

 Why || '---' instead of || field.description? Also, are you sure the html filter is filtering that whole statement and not just the second half?
(In reply to comment #1)
>  Why || '---' instead of || field.description? Also, are you sure the html
> filter is filtering that whole statement and not just the second half?

1) "---" is because the "noop" pseudo-field is the only one which is not a real field in the DB, and its description is "---". But I can write field.description is you prefer.

2) About FILTER html, I checked and it filters the whole thing correctly. Without it, I manage to inject JS alerts (by hacking one field description).
Should go into 3.2, and even in 3.0 IMO. Reading "Assignee" "est égal à" is crazy (first string in english, second one in french. Looks really unprofessionnal).
Target Milestone: --- → Bugzilla 3.2
Comment on attachment 322313 [details] [diff] [review]
patch, v1

This is fine, but replace "---" with field.description.
Attachment #322313 - Flags: review?(mkanat) → review+
Flags: approval3.2+
Flags: approval+
At least in the french templates, not all field descriptions have been translated in field-descs.none.tmpl, meaning that boolean charts now mix both french and english field descriptions. I suppose other l10n packs are in the same situation. So I suggest SnowyOwl to advertise other localizers about it (3.2 and 4.0 only).

tip:

Checking in template/en/default/filterexceptions.pl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/filterexceptions.pl,v  <--  filterexceptions.pl
new revision: 1.113; previous revision: 1.112
done
Checking in template/en/default/search/boolean-charts.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/search/boolean-charts.html.tmpl,v  <--  boolean-charts.html.tmpl
new revision: 1.18; previous revision: 1.17
done


3.1.4:

Checking in template/en/default/filterexceptions.pl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/filterexceptions.pl,v  <--  filterexceptions.pl
new revision: 1.111.2.1; previous revision: 1.111
done
Checking in template/en/default/search/boolean-charts.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/search/boolean-charts.html.tmpl,v  <--  boolean-charts.html.tmpl
new revision: 1.17.2.1; previous revision: 1.17
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
(In reply to comment #5)
> At least in the french templates, not all field descriptions have been
> translated in field-descs.none.tmpl, 

Why?  Definitely a flaw in l10n ;-)

See 

http://bugzilla-ru.svn.sourceforge.net/viewvc/bugzilla-ru/bugzilla-ru/template/ru/default/global/field-descs.none.tmpl?view=markup#l_70

for list of translatable [pseudo-]fields.

> So I suggest SnowyOwl to advertise other localizers about it

Will check others and notify.  Kindly add 'intl' keyword :-)
Confirmed for: be, bg, cs, de, fr, nl, pl, zh-tw
field-descs.none.tmpl is extended in bug 435570
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: