[wp-trac] [WordPress Trac] #29630: Translatable slug in registe_post_type and register_taxonomy

WordPress Trac noreply at wordpress.org
Thu Sep 11 21:17:20 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             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by ocean90):

 * keywords:   => reporter-feedback


Old description:

> 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.

New description:

 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.

--

Comment:

 Hello gugaalves,

 this is already possible, what does't work for you in detail?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29630#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list