[wp-trac] [WordPress Trac] #29630: Translatable slug in registe_post_type and register_taxonomy
WordPress Trac
noreply at wordpress.org
Thu Sep 11 20:47:56 UTC 2014
#29630: Translatable slug in registe_post_type and register_taxonomy
-------------------------------+-----------------------------
Reporter: gugaalves | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.0
Severity: normal | Keywords:
Focuses: |
-------------------------------+-----------------------------
When registering a Custom Post Type or a Custom Taxonomy, we're able to
pass translations to labels, but can't do it in slugs.
Why we can't do this:
'rewrite' => array(
'slug' => _x('Books', 'post type general name', 'your-plugin-
textdomain'
),
In sites like WordCamp sites, for example, its weird to a Brazilian
Sponsor see /sponsor instead of /patrocinador in post slug.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29630>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list