From 81b809e3d649f9016eac22d85f4f4860fa21d9e3 Mon Sep 17 00:00:00 2001 From: whyisjake Date: Mon, 6 Jul 2020 21:52:21 +0000 Subject: [PATCH] Administration: Move more table strings to sentence casing. WordPress as a project has moved largely to sentence casing for UI elements in the admin. This commit moves several string$ * Move to trash * Mark as spam * Permanently delete comment * Approve comment * In response to * Bulk actions * Not spam * Sumitted on * Delete permanently * Add media * Upload files * Upload images * Add media * Bulk select * Restore from trash * Search media * Attachment details * Create gallery * Edit gallery * Cancel gallery * Add to gallery * Image details * Replace image * Cancel edit * Edit image * Choose image * Select and crop * Skip cropping * Crop image * Audio details * Replace audio * Add audio source * Video details * Replace video * Add video source * Select poster image * Add subtitles * Create audio playlist * Edit audio playlist. * Cancel audio playlist * Create video playlist * Edit video playlist * Add to video playlist * Filter media Fixes #40244. Props afercia, bhargavbhandari90, rcutmore, webzunft, manojlovic, jeremyfelt, desrosj, lschuyler, SergeyBiryukov, whyisjake. Built from https://develop.svn.wordpress.org/trunk@48352 git-svn-id: http://core.svn.wordpress.org/trunk@48121 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/comment.php | 10 +-- wp-admin/edit-comments.php | 6 +- wp-admin/edit-form-comment.php | 2 +- wp-admin/edit.php | 6 +- .../includes/class-wp-comments-list-table.php | 12 +-- wp-admin/includes/class-wp-list-table.php | 4 +- .../includes/class-wp-media-list-table.php | 6 +- .../includes/class-wp-posts-list-table.php | 4 +- wp-admin/includes/meta-boxes.php | 10 +-- wp-admin/users.php | 4 +- wp-includes/media-template.php | 12 +-- wp-includes/media.php | 80 +++++++++---------- wp-includes/version.php | 2 +- 13 files changed, 79 insertions(+), 79 deletions(-) diff --git a/wp-admin/comment.php b/wp-admin/comment.php index 4db8c5784f..0687f07888 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -125,19 +125,19 @@ switch ( $action ) { switch ( $action ) { case 'spam': $caution_msg = __( 'You are about to mark the following comment as spam:' ); - $button = _x( 'Mark as Spam', 'comment' ); + $button = _x( 'Mark as spam', 'comment' ); break; case 'trash': $caution_msg = __( 'You are about to move the following comment to the Trash:' ); - $button = __( 'Move to Trash' ); + $button = __( 'Move to trash' ); break; case 'delete': $caution_msg = __( 'You are about to delete the following comment:' ); - $button = __( 'Permanently Delete Comment' ); + $button = __( 'Permanently delete comment' ); break; default: $caution_msg = __( 'You are about to approve the following comment:' ); - $button = __( 'Approve Comment' ); + $button = __( 'Approve comment' ); break; } @@ -179,7 +179,7 @@ switch ( $action ) { - + comment_post_ID; diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 978040065f..2ced05ab2d 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -172,7 +172,7 @@ get_current_screen()->add_help_tab( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => - '

' . __( 'You can manage comments made on your site similar to the way you manage posts and other content. This screen is customizable in the same ways as other management screens, and you can act on comments using the on-hover action links or the Bulk Actions.' ) . '

', + '

' . __( 'You can manage comments made on your site similar to the way you manage posts and other content. This screen is customizable in the same ways as other management screens, and you can act on comments using the on-hover action links or the bulk actions.' ) . '

', ) ); get_current_screen()->add_help_tab( @@ -183,8 +183,8 @@ get_current_screen()->add_help_tab( '

' . __( 'A red bar on the left means the comment is waiting for you to moderate it.' ) . '

' . '

' . __( 'In the Author column, in addition to the author’s name, email address, and blog URL, the commenter’s IP address is shown. Clicking on this link will show you all the comments made from this IP address.' ) . '

' . '

' . __( 'In the Comment column, hovering over any comment gives you options to approve, reply (and approve), quick edit, edit, spam mark, or trash that comment.' ) . '

' . - '

' . __( 'In the In Response To column, there are three elements. The text is the name of the post that inspired the comment, and links to the post editor for that entry. The View Post link leads to that post on your live site. The small bubble with the number in it shows the number of approved comments that post has received. If there are pending comments, a red notification circle with the number of pending comments is displayed. Clicking the notification circle will filter the comments screen to show only pending comments on that post.' ) . '

' . - '

' . __( 'In the Submitted On column, the date and time the comment was left on your site appears. Clicking on the date/time link will take you to that comment on your live site.' ) . '

' . + '

' . __( 'In the In response to column, there are three elements. The text is the name of the post that inspired the comment, and links to the post editor for that entry. The View Post link leads to that post on your live site. The small bubble with the number in it shows the number of approved comments that post has received. If there are pending comments, a red notification circle with the number of pending comments is displayed. Clicking the notification circle will filter the comments screen to show only pending comments on that post.' ) . '

' . + '

' . __( 'In the Submitted on column, the date and time the comment was left on your site appears. Clicking on the date/time link will take you to that comment on your live site.' ) . '

' . '

' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link to the side to learn more.' ) . '

', ) ); diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 38f6c7b9b0..e7fe548a80 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -202,7 +202,7 @@ endif;
-comment_ID&_wp_original_http_referer=" . urlencode( wp_get_referer() ), 'delete-comment_' . $comment->comment_ID ) . "'>" . ( ! EMPTY_TRASH_DAYS ? __( 'Delete Permanently' ) : __( 'Move to Trash' ) ) . "\n"; ?> +comment_ID&_wp_original_http_referer=" . urlencode( wp_get_referer() ), 'delete-comment_' . $comment->comment_ID ) . "'>" . ( ! EMPTY_TRASH_DAYS ? __( 'Delete Permanently' ) : __( 'Move to trash' ) ) . "\n"; ?>
diff --git a/wp-admin/edit.php b/wp-admin/edit.php index f6e85059f3..35aca175d4 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -264,9 +264,9 @@ if ( 'post' === $post_type ) { get_current_screen()->add_help_tab( array( 'id' => 'bulk-actions', - 'title' => __( 'Bulk Actions' ), + 'title' => __( 'Bulk actions' ), 'content' => - '

' . __( 'You can also edit or move multiple posts to the Trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.' ) . '

' . + '

' . __( 'You can also edit or move multiple posts to the Trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk actions menu and click Apply.' ) . '

' . '

' . __( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.' ) . '

', ) ); @@ -292,7 +292,7 @@ if ( 'post' === $post_type ) { 'title' => __( 'Managing Pages' ), 'content' => '

' . __( 'Managing pages is very similar to managing posts, and the screens can be customized in the same way.' ) . '

' . - '

' . __( 'You can also perform the same types of actions, including narrowing the list by using the filters, acting on a page using the action links that appear when you hover over a row, or using the Bulk Actions menu to edit the metadata for multiple pages at once.' ) . '

', + '

' . __( 'You can also perform the same types of actions, including narrowing the list by using the filters, acting on a page using the action links that appear when you hover over a row, or using the Bulk actions menu to edit the metadata for multiple pages at once.' ) . '

', ) ); diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index e3678b60d5..904a2dce47 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -351,19 +351,19 @@ class WP_Comments_List_Table extends WP_List_Table { $actions['approve'] = __( 'Approve' ); } if ( in_array( $comment_status, array( 'all', 'moderated', 'approved', 'trash' ), true ) ) { - $actions['spam'] = _x( 'Mark as Spam', 'comment' ); + $actions['spam'] = _x( 'Mark as spam', 'comment' ); } if ( 'trash' === $comment_status ) { $actions['untrash'] = __( 'Restore' ); } elseif ( 'spam' === $comment_status ) { - $actions['unspam'] = _x( 'Not Spam', 'comment' ); + $actions['unspam'] = _x( 'Not spam', 'comment' ); } if ( in_array( $comment_status, array( 'trash', 'spam' ), true ) || ! EMPTY_TRASH_DAYS ) { - $actions['delete'] = __( 'Delete Permanently' ); + $actions['delete'] = __( 'Delete permanently' ); } else { - $actions['trash'] = __( 'Move to Trash' ); + $actions['trash'] = __( 'Move to trash' ); } return $actions; @@ -467,10 +467,10 @@ class WP_Comments_List_Table extends WP_List_Table { if ( ! $post_id ) { /* translators: Column name or table row header. */ - $columns['response'] = __( 'In Response To' ); + $columns['response'] = __( 'In response to' ); } - $columns['date'] = _x( 'Submitted On', 'column name' ); + $columns['date'] = _x( 'Submitted on', 'column name' ); return $columns; } diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index 7cf6f0725f..e6d829e39f 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -445,7 +445,7 @@ class WP_List_Table { $this->_actions = $this->get_bulk_actions(); /** - * Filters the list table Bulk Actions drop-down. + * Filters the list table bulk actions drop-down. * * The dynamic portion of the hook name, `$this->screen->id`, refers * to the ID of the current screen, usually a string. @@ -469,7 +469,7 @@ class WP_List_Table { echo ''; echo '