Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 10 years ago

#8324 closed defect (bug) (fixed)

__ngettext confused by formatted numbers

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

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

Download all attachments as: .zip

Change History (3)

#1 @azaozz
18 years ago

  • Resolutionfixed
  • Status newclosed

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

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


10 years ago

Note: See TracTickets for help on using tickets.