WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 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:

Description

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 6 years ago.

Download all attachments as: .zip

Change History (2)

filosofo6 years ago

comment:1 azaozz6 years ago

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

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

Note: See TracTickets for help on using tickets.