[wp-trac] [WordPress Trac] #12968: I18n-friendly strings for the new system of post types

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 11 22:59:51 UTC 2010


#12968: I18n-friendly strings for the new system of post types
--------------------------+-------------------------------------------------
 Reporter:  demetris      |       Owner:  nbachiyski 
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  i18n          |     Version:  3.0        
 Severity:  blocker       |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
 In the new system of post types, which is also used by core for
 registering the default post types, UI strings for the types are
 constructed with {{{fprint}}}, and are of the form '''Edit %s''', '''Add
 New %s''', etc.

 In fact, this is the only possible way at the moment, since the only
 language/string information a post type provides upon registration is the
 singular and plural form of its label, {{{singular_label}}} and
 {{{label}}}.  But this does not work for i18n, since even simple phrases
 like “Edit Posts” can have many structural differences across languages:
 word order, parts of speech, grammatical genders, grammatical cases, etc.

 An obvious solution would be to have post types specify full strings for
 their labels.  Supposing we’ll go with this solution, here are some ideas
 for arguments to get us started, based on some names ryan suggested in the
 long ticket for custom post types (#9674).

  *  {{{add_new_label}}} (for the edit screen, it would take values like
 “Add new Post”, or “Add new Book Review”)
  *  {{{add_new_label_short}}} (for the menu on the left)
  *  {{{edit_label}}}
  *  {{{edit_label_plural}}}

 And some more:

  *  {{{delete_label}}} (for sending to the bin)
  *  {{{delete_label_perm}}} (for obliterating from the bin)
  *  {{{restore_label}}} (for restoring from the bin)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12968>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list