[wp-trac] [WordPress Trac] #41150: post_categories_meta_box() function should use a taxonomy label for "Most used" tab text

WordPress Trac noreply at wordpress.org
Sat Jun 24 12:57:44 UTC 2017


#41150: post_categories_meta_box() function should use a taxonomy label for "Most
used" tab text
-------------------------------+-----------------------------
 Reporter:  jlambe             |      Owner:
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Taxonomy           |    Version:  trunk
 Severity:  normal             |   Keywords:
  Focuses:  ui, accessibility  |
-------------------------------+-----------------------------
 This issue is regarding the auto-generated metabox for a custom taxonomy.

 When defining a custom hierarchical taxonomy in another language (in this
 case French), we do not have control of the text label displayed into the
 "Most used" tab.

 When looking at source code, the first tab is calling this in order to
 display a custom label text for the first tab:

 {{{#!php
     <?php echo $taxonomy->labels->all_items; ?>
 }}}

 It grabs the taxonomy labels property and use its `all_items` property
 where the second tab is only echoing this:

 {{{#!php
     <?php _e( 'Most Used' ); ?>
 }}}

 It could be a real enhancement to introduce a new label property for the
 `register_taxonomy` function. Like `most_used` for example so users can
 edit that second tab label text. With this idea, the above line code could
 be for this second tab:

 {{{#!php
     <?php echo $taxonomy->labels->most_used; ?>
 }}}

 Our issue here is that the French translation is showing a female word
 translation (not sure how to say that in English but here is the
 translation "Les plus utilisé'''e'''s"). A user experience issue is
 appearing here if we define a male taxonomy name because the translation
 should be "Les plus utilisés".

 On the other side, I do think it's not a good to globally change the `Most
 used` text label and the idea of having a new label `most_used` property
 per taxonomy could improve the user experience.

 What do you think?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41150>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list