#43537 closed defect (bug) (invalid)
_n() returns plural when count is zero
| Reported by: | arena | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | I18N | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
_n() returns plural when count is zero
<?php sprintf( _n( 'penny', 'pence', 0 ), 0 );
should return 'penny' and not 'pence'.
Attachments (1)
Change History (6)
#2
@
8 years ago
I think I would have used the plural form 0 pence, but note that English is not my first language ;-)
I guess it also depends on the language. In Icelandic I think it's custom to say 0 krónur (plural) instead of 0 króna (singular).
#3
@
8 years ago
@arena
In english only 1 is considered as singular, zero is always considered as plural. It seems correct to me.
Refer https://english.stackexchange.com/questions/38293/why-is-zero-followed-by-a-plural-noun
#4
@
8 years ago
- Component General → I18N
- Milestone Awaiting Review
- Resolution → invalid
- Status new → closed
- Version trunk
In English, a zero value is always followed by a plural form. Note that plural forms can be adjusted per locale.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
patch