Modify ↓
Opened 16 years ago
Closed 16 years ago
#8545 closed defect (fixed)
i18n problem about plural form
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.12 |
| Component: | i18n | Version: | 0.12dev |
| Severity: | normal | Keywords: | plural |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
In source:trunk/trac/ticket/templates/report_view.html#L94
(${cnt or 'No'} match${cnt != 1 and 'es' or ''})
This line assumes the plural form of all languages is always built by adding an "es", but obvious is not that.
Attachments (0)
Change History (4)
comment:1 by , 16 years ago
| Keywords: | plural added |
|---|
comment:3 by , 16 years ago
| Cc: | removed |
|---|---|
| Owner: | set to |
report_view.html line has been fixed in [8909].
comment:4 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.



Replying to richard.liao.i@…:
Actually, this line simply predates the i18n effort and was meant to work for the "match" word, no more.
But regardless, this is something that needs fixing by using
i18:choose(see genshi:source:branches/experimental/advanced-i18n/genshi/filters/i18n.py@1063#L241).Also related to the topic of plural form in templates:
pluraltemplate macro:label_pluralfor the enum admin panels:<title>$label_plural</title>source:trunk/trac/admin/templates/admin_enums.html@8446:9,13#L9N_andgettext)