[wp-trac] [WordPress Trac] #20005: Use single and plural Label arguments to populate defaults for Labels in register_post_type
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 10 10:42:04 UTC 2012
#20005: Use single and plural Label arguments to populate defaults for Labels in
register_post_type
-------------------------+------------------------------
Reporter: ericlewis | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version:
Severity: normal | Resolution:
Keywords: close |
-------------------------+------------------------------
Changes (by duck_):
* keywords: => close
Comment:
I believe you mean doing something like:
{{{
$labels = array(
// ...
'view_item' => 'View ' . $labels['singular_name'],
// ...
);
}}}
While this works in English it does not work when translating the strings
into another language, see #12968.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20005#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list