[wp-trac] [WordPress Trac] #26066: Invalid i18n in Site Content dashboard widget
WordPress Trac
noreply at wordpress.org
Thu Nov 28 14:14:22 UTC 2013
#26066: Invalid i18n in Site Content dashboard widget
----------------------------+--------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.8
Component: I18N | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+--------------------
Comment (by kovshenin):
[attachment:26066.diff] adds a new `num_items` label to
`register_post_type`. To make use of the new label, a custom post type
would use something like:
{{{
register_post_type( 'test', array(
'public' => true,
...
'labels' => array(
...
'num_items' => _n_noop( '%s item', '%s items' )
),
) );
}}}
Unfortunately for all existing post types that don't define the
`num_items` label, the Site Content widget will show "x posts" or "x
pages". I also believe this is not the only good use case for the new
label.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26066#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list