Edgewall Software

Opened 11 years ago

Closed 11 years ago

#8545 closed defect (fixed)

i18n problem about plural form

Reported by: richard.liao.i@… 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:


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)

in reply to:  description comment:1 by Christian Boos, 11 years ago

Keywords: plural added

Replying to richard.liao.i@…:

This line assumes the plural form of all languages is always built by adding an "es"

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:

  1. the use of the plural template macro:
  2. the label_plural for the enum admin panels:

comment:2 by Remy Blank, 11 years ago

The plural() macro has been removed in [8666].

comment:3 by Christian Boos, 11 years ago

Cc: Jeroen Ruigrok van der Werven removed
Owner: set to Christian Boos

report_view.html line has been fixed in [8909].

comment:4 by Christian Boos, 11 years ago

Resolution: fixed
Status: newclosed

Point 2. from comment:1 fixed in [8910].

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.