Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 2 years ago

#8324 closed defect (bug) (fixed)

__ngettext confused by formatted numbers

Reported by: filosofo Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.7
Component: Administration Keywords: has-patch __ngettext plural
Focuses: Cc:


As pointed out here, numbers starting with 1 and a comma, such as "1,234", confuse ngettext into thinking they're singular, so it ends up saying "1,234 Post" instead of "1,234 Posts".

Attachments (1)

ngettext_formatted.diff (839 bytes) - added by filosofo 9 years ago.

Download all attachments as: .zip

Change History (3)

#1 @azaozz
9 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [9856]) Pass unformatted number to ngettext, props filosofo, fixes #8324

This ticket was mentioned in Slack in #bbpress by netweb. View the logs.

2 years ago

Note: See TracTickets for help on using tickets.