[wp-trac] [WordPress Trac] #16406: Admin bar localization

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 10 22:26:54 UTC 2011


#16406: Admin bar localization
--------------------------+------------------
 Reporter:  pavelevap     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.2
Component:  I18N          |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by nacin):

 name_admin_bar simply cannot default to Page and Post in
 get_post_type_labels(), it would cause duplicate items in the bar.

 We need a good way to handle name_admin_bar as a new string, while
 allowing singular_name to override it if missing, while also preventing a
 generic name from making its way into the object. Need to choose
 practicality over translations here.

 We've already made special cases in _get_custom_object_labels() for
 menu_name, all_items, etc. -- but this one requires a bit more, as it does
 require defaults (so it may be applied to the post/page post types
 themselves), but we simply cannot use the defaults.

 Can anyone come up with a patch?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16406#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list