[wp-trac] [WordPress Trac] #20188: _n_noop() does not accept a textdomain
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 7 09:19:14 UTC 2012
#20188: _n_noop() does not accept a textdomain
--------------------------+-----------------------
Reporter: scribu | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+-----------------------
Changes (by johnbillion):
* status: closed => reopened
* type: enhancement => defect (bug)
* resolution: maybelater =>
Comment:
This is in fact a bug.
Example: a plugin registers a post status and uses `_n_noop()` for its
'label_count' parameter, and its parameters are correctly added to the
plugin's POT when it's scanned. However, when the label is output by
WordPress using `translated_nooped_plural()` there's no textdomain
parameter present, so gettext will try to translate the string according
to core's textdomain rather than the plugin's.
I have a patch for this which I'll upload later when I'm back at my
computer.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20188#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list