[wp-trac] [WordPress Trac] #20188: _n_noop() does not accept a textdomain

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 30 16:18:37 UTC 2012


#20188: _n_noop() does not accept a textdomain
--------------------------+---------------------
 Reporter:  scribu        |       Owner:  nacin
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.4
Component:  I18N          |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [20648]:
 {{{
 #!CommitTicketReference repository="" revision="20648"
 Allow nooped plurals to receive a textdomain on registration to then be
 used on translation.

 This is good for when the code registering the plural is not also
 translating it. This occurs
 in core with register_post_status(), which accepts a nooped plural as an
 argument, and then
 calls translate_nooped_plural() without a domain.

 translate_nooped_plural() can still be called with a domain. The argument
 will just be overridden
 if the nooped plural contains a domain key.

 fixes #20188.
 }}}

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


More information about the wp-trac mailing list