Opened 6 years ago
Closed 6 years ago
#46908 closed defect (bug) (duplicate)
Allow correct plural handling in settings for comments
Reported by: | tobifjellner | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | I18N | Keywords: | |
Focuses: | Cc: |
Description
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")
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
I don't think
_n()
can be used here.%s
is not simply a placeholder for a static number but an input field to set the number of days.