[wp-trac] [WordPress Trac] #3663: ngettext dislikes formatted numbers

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 24 21:28:20 GMT 2007


#3663: ngettext dislikes formatted numbers
----------------------------+-----------------------------------------------
 Reporter:  nbachiyski      |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.2      
Component:  Administration  |     Version:  2.1      
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------
 What happens:
 If the number of comments, posts or cats in the Dashboard is greater than
 a thousand and the current locale has defined different from default
 plural rules the <code>ngettext</code>
  function spits an error.

 Why:
 The aforementioned numbers are passed through <code>number_format</code>
 before usage, which adds a coma between digits groups. Thus the number is
 no more the valid number, <code>ngettext</code> expects.

 Solution:
 Could we sacrifice the formatting of the numbers? If we could the patch
 below is relevant.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3663>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list