[wp-trac] [WordPress Trac] #46908: Allow correct plural handling in settings for comments

WordPress Trac noreply at wordpress.org
Sat Apr 13 13:38:27 UTC 2019


#46908: Allow correct plural handling in settings for comments
--------------------------+----------------------------------------
 Reporter:  tobifjellner  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:  trunk
 Severity:  normal        |   Keywords:  good-first-bug needs-patch
  Focuses:                |
--------------------------+----------------------------------------
 Location: /wp-admin/includes/class-wp-debug-data.php  around line 82


 {{{
 printf(
 __( 'Automatically close comments on articles older than %s days' ),
 '</label> <label for="close_comments_days_old"><input
 name="close_comments_days_old" type="number" min="0" step="1"
 id="close_comments_days_old" value="' . esc_attr( get_option(
 'close_comments_days_old' ) ) . '" class="small-text" />'
 );
 }}}

 The string "Automatically close comments on articles older than %s days"
 ought to be put in _n() to have the translated string correctly reflect
 the currently chosen number of days. (In Russian, for instance, 21, 22 and
 25 days give you different forms of the word "days")

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


More information about the wp-trac mailing list