|
152 | 152 | $comments_count = wp_count_comments( $post_id ); |
153 | 153 | $draft_or_post_title = wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ); |
154 | 154 | if ( $comments_count->moderated > 0 ) { |
155 | | - /* translators: 1: comments count, 2: post title */ |
156 | 155 | $title = sprintf( |
| 156 | + /* translators: 1: comments count, 2: post title */ |
157 | 157 | __( 'Comments (%1$s) on “%2$s”' ), |
158 | 158 | number_format_i18n( $comments_count->moderated ), |
159 | 159 | $draft_or_post_title |
160 | 160 | ); |
161 | 161 | } else { |
162 | | - /* translators: %s: post title */ |
163 | 162 | $title = sprintf( |
| 163 | + /* translators: %s: post title */ |
164 | 164 | __( 'Comments on “%s”' ), |
165 | 165 | $draft_or_post_title |
166 | 166 | ); |
167 | 167 | } |
168 | 168 | } else { |
169 | 169 | $comments_count = wp_count_comments(); |
170 | 170 | if ( $comments_count->moderated > 0 ) { |
171 | | - /* translators: %s: comments count */ |
172 | 171 | $title = sprintf( |
| 172 | + /* translators: %s: comments count */ |
173 | 173 | __( 'Comments (%s)' ), |
174 | 174 | number_format_i18n( $comments_count->moderated ) |
175 | 175 | ); |
|
225 | 225 | <h1 class="wp-heading-inline"> |
226 | 226 | <?php |
227 | 227 | if ( $post_id ) { |
228 | | - /* translators: %s: link to post */ |
229 | 228 | printf( |
| 229 | + /* translators: %s: link to post */ |
230 | 230 | __( 'Comments on “%s”' ), |
231 | 231 | sprintf( |
232 | 232 | '<a href="%1$s">%2$s</a>', |
|
243 | 243 | <?php |
244 | 244 | if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { |
245 | 245 | echo '<span class="subtitle">'; |
246 | | - /* translators: %s: search keywords */ |
247 | 246 | printf( |
| 247 | + /* translators: %s: search keywords */ |
248 | 248 | __( 'Search results for “%s”' ), |
249 | 249 | wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' ) |
250 | 250 | ); |
|
282 | 282 |
|
283 | 283 | if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 || $same > 0 ) { |
284 | 284 | if ( $approved > 0 ) { |
285 | | - /* translators: %s: number of comments approved */ |
| 285 | + /* translators: %s: number of comments */ |
286 | 286 | $messages[] = sprintf( _n( '%s comment approved', '%s comments approved', $approved ), $approved ); |
287 | 287 | } |
288 | 288 |
|
289 | 289 | if ( $spammed > 0 ) { |
290 | 290 | $ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] : 0; |
291 | | - /* translators: %s: number of comments marked as spam */ |
| 291 | + /* translators: %s: number of comments */ |
292 | 292 | $messages[] = sprintf( _n( '%s comment marked as spam.', '%s comments marked as spam.', $spammed ), $spammed ) . ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=unspam&ids=$ids", 'bulk-comments' ) ) . '">' . __( 'Undo' ) . '</a><br />'; |
293 | 293 | } |
294 | 294 |
|
295 | 295 | if ( $unspammed > 0 ) { |
296 | | - /* translators: %s: number of comments restored from the spam */ |
| 296 | + /* translators: %s: number of comments */ |
297 | 297 | $messages[] = sprintf( _n( '%s comment restored from the spam', '%s comments restored from the spam', $unspammed ), $unspammed ); |
298 | 298 | } |
299 | 299 |
|
300 | 300 | if ( $trashed > 0 ) { |
301 | 301 | $ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] : 0; |
302 | | - /* translators: %s: number of comments moved to the Trash */ |
| 302 | + /* translators: %s: number of comments */ |
303 | 303 | $messages[] = sprintf( _n( '%s comment moved to the Trash.', '%s comments moved to the Trash.', $trashed ), $trashed ) . ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=untrash&ids=$ids", 'bulk-comments' ) ) . '">' . __( 'Undo' ) . '</a><br />'; |
304 | 304 | } |
305 | 305 |
|
306 | 306 | if ( $untrashed > 0 ) { |
307 | | - /* translators: %s: number of comments restored from the Trash */ |
| 307 | + /* translators: %s: number of comments */ |
308 | 308 | $messages[] = sprintf( _n( '%s comment restored from the Trash', '%s comments restored from the Trash', $untrashed ), $untrashed ); |
309 | 309 | } |
310 | 310 |
|
311 | 311 | if ( $deleted > 0 ) { |
312 | | - /* translators: %s: number of comments permanently deleted */ |
| 312 | + /* translators: %s: number of comments */ |
313 | 313 | $messages[] = sprintf( _n( '%s comment permanently deleted', '%s comments permanently deleted', $deleted ), $deleted ); |
314 | 314 | } |
315 | 315 |
|
|
0 commit comments