[wp-trac] [WordPress Trac] #22229: Plurals in JavaScript

WordPress Trac noreply at wordpress.org
Mon Oct 22 01:48:59 UTC 2012


#22229: Plurals in JavaScript
-------------------------+------------------
 Reporter:  nacin        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.5
Component:  I18N         |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------

Comment (by scribu):

 Ok, so instead of generating a new JS function for each string, how about
 we make a single generic JS function that gets run for all the strings?
 Something like the following:

 {{{
 wp.i18n._n(exampleL10n.numItems, 5);
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22229#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list