[wp-trac] [WordPress Trac] #9123: The word 'Pending' for posts must be separated

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 13 14:38:42 GMT 2009


#9123: The word 'Pending'  for posts must be separated
--------------------------+-------------------------------------------------
 Reporter:  lilyfan       |       Owner:  nbachiyski
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  2.7.2     
Component:  i18n          |     Version:            
 Severity:  normal        |    Keywords:  pending   
--------------------------+-------------------------------------------------
 In edit.php, posts in pending preview are shown as "Pending".

 In php code, {{{__()}}} function is used for this localizing string.


   {{{$post_states[] = __('Pending');}}}

   (line 3289 of wp-admin/includes/template.php)

 But, in po file, the string for "Pending" is plural forms.

 {{{
   #: wp-admin/includes/dashboard.php:244
   #: wp-admin/includes/template.php:3289
   msgid "Pending"
   msgid_plural "Pending"
   msgstr[0] "承認待ち"
 }}}
   (line 3943 of wp-content/languages/ja.po)

 Therefore, translation for this string is failed!!

 The word 'Pending' is also used for comments. Line 3943 of ja.po is for
 pending comments.

 The root cause is:
 (1) mismatch of using 'pending' between posts and comments.
 (2) mismatch of sigle/plural forms at php code and at po file.

 I suggest to make "Pending|posts" string for this.

   $post_states[] = _c('Pending|posts');

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


More information about the wp-trac mailing list