Skip to content

I18N: Standardize translatable strings across admin and themes #8805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/js/_enqueues/admin/edit-comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ window.setCommentsList = function() {
approvedDiff = -1;
pendingDiff = 1;

// User clicked "Delete Permanently".
// User clicked "Delete permanently".
} else if ( targetParent.is( 'span.delete' ) ) {
if ( spammed ) {
spamDiff = -1;
Expand Down
2 changes: 1 addition & 1 deletion src/js/_enqueues/admin/plugin-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ jQuery( function( $ ) {
});

/*
* When a user presses the "Upload Plugin" button, show the upload form in place
* When a user presses the "Upload plugin" button, show the upload form in place
* rather than sending them to the devoted upload plugin page.
* The `?tab=upload` page still exists for no-js support and for plugins that
* might access it directly. When we're in this page, let the link behave
Expand Down
2 changes: 1 addition & 1 deletion src/js/_enqueues/vendor/tinymce/langs/wp-langs-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
paste: {
paste_text_desc: "Paste as Plain Text",
paste_word_desc: "Paste from Word",
selectall_desc: "Select All",
selectall_desc: "Select all",
plaintext_mode_sticky: "Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.",
plaintext_mode: "Paste is now in plain text mode. Click again to toggle back to regular paste mode."
},
Expand Down
4 changes: 2 additions & 2 deletions src/js/_enqueues/wp/customize/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ window.wp = window.wp || {};
return window.location = src;
}

// Store the document title prior to opening the Live Preview.
// Store the document title prior to opening the Live preview.
this.originalDocumentTitle = document.title;

this.active = true;
Expand Down Expand Up @@ -223,7 +223,7 @@ window.wp = window.wp || {};
self.active = false;
self.trigger( 'close' );

// Restore document title prior to opening the Live Preview.
// Restore document title prior to opening the Live preview.
if ( self.originalDocumentTitle ) {
document.title = self.originalDocumentTitle;
}
Expand Down
4 changes: 2 additions & 2 deletions src/js/_enqueues/wp/editor/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ window.wp = window.wp || {};

/**
* Marking the start and end element with `data-mce-object-selection` helps
* discern when the selected object is a Live Preview selection.
* discern when the selected object is a Live preview selection.
*
* This way we can adjust the selection to properly select only the content, ignoring
* whitespace inserted around the selected object by the Editor.
Expand Down Expand Up @@ -780,7 +780,7 @@ window.wp = window.wp || {};

if (endMatch) {
/**
* Adjust the selection index, if the selection contains a Live Preview object or not.
* Adjust the selection index, if the selection contains a Live preview object or not.
*
* Check where the `data-mce-object-selection` attribute is set above for more context.
*/
Expand Down
18 changes: 9 additions & 9 deletions src/js/_enqueues/wp/updates.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@

$card.find( '.update-now' )
.attr( 'aria-label', false )
.text( __( 'Update Now' ) );
.text( __( 'Update now' ) );
}, 200 );
} );
}
Expand Down Expand Up @@ -969,7 +969,7 @@
buttonText = _x( 'Network Activate', 'plugin' );
ariaLabel = sprintf(
/* translators: %s: Plugin name. */
_x( 'Network Activate %s', 'plugin' ),
_x( 'Network activate %s', 'plugin' ),
response.pluginName
);

Expand Down Expand Up @@ -1797,11 +1797,11 @@
'aria-label',
sprintf(
/* translators: %s: Theme name. */
_x( 'Network Activate %s', 'theme' ),
_x( 'Network activate %s', 'theme' ),
response.themeName
)
)
.text( __( 'Network Enable' ) );
.text( __( 'Network enable' ) );
} else {
$message
.attr(
Expand All @@ -1818,12 +1818,12 @@

if ( response.customizeUrl ) {

// Transform the 'Preview' button into a 'Live Preview' button.
// Transform the 'Preview' button into a 'Live preview' button.
$message.siblings( '.preview' ).replaceWith( function () {
return $( '<a>' )
.attr( 'href', response.customizeUrl )
.addClass( 'button load-customize' )
.text( __( 'Live Preview' ) );
.text( __( 'Live preview' ) );
} );
}
}, 1000 );
Expand Down Expand Up @@ -2634,7 +2634,7 @@

$message
.removeClass( 'updating-message' )
.text( _x( 'Install Now', 'plugin' ) );
.text( _x( 'Install now', 'plugin' ) );

wp.a11y.speak( __( 'Update canceled.' ) );
} );
Expand Down Expand Up @@ -3036,7 +3036,7 @@
.append( $( '<a />', {
'class': 'current',
'href': searchLocation,
'text': __( 'Search Results' )
'text': __( 'Search results' )
} ) );

$( '.wp-filter .filter-links .current' )
Expand Down Expand Up @@ -3180,7 +3180,7 @@
} );

/**
* Trigger a search event when the "Try Again" button is clicked.
* Trigger a search event when the "Try again" button is clicked.
*
* @since 4.9.0
*/
Expand Down
2 changes: 1 addition & 1 deletion src/js/media/views/button/delete-selected-permanently.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var Button = wp.media.view.Button,
/**
* wp.media.view.DeleteSelectedPermanentlyButton
*
* When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic
* When MEDIA_TRASH is true, a button that handles bulk Delete permanently logic
*
* @memberOf wp.media.view
*
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/edit-form-comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@

<div id="major-publishing-actions">
<div id="delete-action">
<?php echo "<a class='submitdelete deletion' href='" . wp_nonce_url( 'comment.php?action=' . ( ! EMPTY_TRASH_DAYS ? 'deletecomment' : 'trashcomment' ) . "&amp;c=$comment->comment_ID&amp;_wp_original_http_referer=" . urlencode( wp_get_referer() ), 'delete-comment_' . $comment->comment_ID ) . "'>" . ( ! EMPTY_TRASH_DAYS ? __( 'Delete Permanently' ) : __( 'Move to Trash' ) ) . "</a>\n"; ?>
<?php echo "<a class='submitdelete deletion' href='" . wp_nonce_url( 'comment.php?action=' . ( ! EMPTY_TRASH_DAYS ? 'deletecomment' : 'trashcomment' ) . "&amp;c=$comment->comment_ID&amp;_wp_original_http_referer=" . urlencode( wp_get_referer() ), 'delete-comment_' . $comment->comment_ID ) . "'>" . ( ! EMPTY_TRASH_DAYS ? __( 'Delete permanently' ) : __( 'Move to trash' ) ) . "</a>\n"; ?>
</div>
<div id="publishing-action">
<?php submit_button( __( 'Update' ), 'primary large', 'save', false ); ?>
Expand Down
6 changes: 3 additions & 3 deletions src/wp-admin/erase-personal-data.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Privacy tools, Erase Personal Data screen.
* Privacy tools, Erase personal data screen.
*
* @package WordPress
* @subpackage Administration
Expand Down Expand Up @@ -104,14 +104,14 @@
?>

<div class="wrap nosubsub">
<h1><?php esc_html_e( 'Erase Personal Data' ); ?></h1>
<h1><?php esc_html_e( 'Erase personal data' ); ?></h1>
<p><?php _e( 'This tool helps site owners comply with local laws and regulations by deleting or anonymizing known data for a given user.' ); ?></p>
<hr class="wp-header-end" />

<?php settings_errors(); ?>

<form action="<?php echo esc_url( admin_url( 'erase-personal-data.php' ) ); ?>" method="post" class="wp-privacy-request-form">
<h2><?php esc_html_e( 'Add Data Erasure Request' ); ?></h2>
<h2><?php esc_html_e( 'Add Data erasure Request' ); ?></h2>
<div class="wp-privacy-request-form-field">
<table class="form-table">
<tr>
Expand Down
4 changes: 2 additions & 2 deletions src/wp-admin/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
array(
'id' => 'overview',
'title' => __( 'Overview' ),
'content' => '<p>' . __( 'This screen lists links to plugins to import data from blogging/content management platforms. Choose the platform you want to import from, and click Install Now when you are prompted in the popup window. If your platform is not listed, click the link to search the plugin directory for other importer plugins to see if there is one for your platform.' ) . '</p>' .
'content' => '<p>' . __( 'This screen lists links to plugins to import data from blogging/content management platforms. Choose the platform you want to import from, and click Install now when you are prompted in the popup window. If your platform is not listed, click the link to search the plugin directory for other importer plugins to see if there is one for your platform.' ) . '</p>' .
'<p>' . __( 'In previous versions of WordPress, all importers were built-in. They have been turned into plugins since most people only use them once or infrequently.' ) . '</p>',
)
);
Expand Down Expand Up @@ -163,7 +163,7 @@
esc_attr( $data[0] ),
/* translators: %s: Importer name. */
esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $data[0] ) ),
_x( 'Install Now', 'plugin' )
_x( 'Install now', 'plugin' )
);
} else {
$action = sprintf(
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/ajax-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2273,7 +2273,7 @@ function wp_ajax_find_posts() {
$stat = __( 'Scheduled' );
break;
case 'pending':
$stat = __( 'Pending Review' );
$stat = __( 'Pending review' );
break;
case 'draft':
$stat = __( 'Draft' );
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-plugin-installer-skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function after() {
$install_actions['network_activate'] = sprintf(
'<a class="button button-primary" href="%s" target="_parent">%s</a>',
wp_nonce_url( 'plugins.php?action=activate&amp;networkwide=1&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ),
_x( 'Network Activate', 'plugin' )
_x( 'Network activate', 'plugin' )
);
unset( $install_actions['activate_plugin'] );
}
Expand Down
6 changes: 3 additions & 3 deletions src/wp-admin/includes/class-theme-installer-skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ public function after() {
'<a href="%s" class="hide-if-no-customize load-customize">' .
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
esc_url( $customize_url ),
__( 'Live Preview' ),
__( 'Live preview' ),
/* translators: Hidden accessibility text. %s: Theme name. */
sprintf( __( 'Live Preview &#8220;%s&#8221;' ), $name )
sprintf( __( 'Live preview &#8220;%s&#8221;' ), $name )
);
}

Expand All @@ -153,7 +153,7 @@ public function after() {
$install_actions['network_enable'] = sprintf(
'<a href="%s" target="_parent">%s</a>',
esc_url( wp_nonce_url( 'themes.php?action=enable&amp;theme=' . urlencode( $stylesheet ), 'enable-theme_' . $stylesheet ) ),
__( 'Network Enable' )
__( 'Network enable' )
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/wp-admin/includes/class-theme-upgrader-skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ public function after() {
'<a href="%s" class="hide-if-no-customize load-customize">' .
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
esc_url( $customize_url ),
__( 'Live Preview' ),
__( 'Live preview' ),
/* translators: Hidden accessibility text. %s: Theme name. */
sprintf( __( 'Live Preview &#8220;%s&#8221;' ), $name )
sprintf( __( 'Live preview &#8220;%s&#8221;' ), $name )
);
}

Expand Down
6 changes: 3 additions & 3 deletions src/wp-admin/includes/class-wp-comments-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) {
esc_url( $unspam_url ),
"delete:the-comment-list:comment-{$comment->comment_ID}:66cc66:unspam=1",
esc_attr__( 'Restore this comment from the spam' ),
_x( 'Not Spam', 'comment' )
_x( 'Not spam', 'comment' )
);
}

Expand All @@ -808,7 +808,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) {
esc_url( $delete_url ),
"delete:the-comment-list:comment-{$comment->comment_ID}::delete=1",
esc_attr__( 'Delete this comment permanently' ),
__( 'Delete Permanently' )
__( 'Delete permanently' )
);
} else {
$actions['trash'] = sprintf(
Expand Down Expand Up @@ -837,7 +837,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) {
'edit',
'vim-q comment-inline',
esc_attr__( 'Quick edit this comment inline' ),
__( 'Quick&nbsp;Edit' )
__( 'Quick&nbsp;edit' )
);

$actions['reply'] = sprintf(
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-wp-debug-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ private static function get_wp_active_theme(): array {
}

return array(
'label' => __( 'Active Theme' ),
'label' => __( 'Active theme' ),
'fields' => $fields,
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/wp-admin/includes/class-wp-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ protected function pagination( $which ) {
'<span id="table-paging" class="paging-input">' .
'<span class="tablenav-paging-text">',
/* translators: Hidden accessibility text. */
__( 'Current Page' )
__( 'Current page' )
);
} else {
$html_current_page = sprintf(
Expand All @@ -1114,7 +1114,7 @@ protected function pagination( $which ) {
name='paged' value='%s' size='%d' aria-describedby='table-paging' />" .
"<span class='tablenav-paging-text'>",
/* translators: Hidden accessibility text. */
__( 'Current Page' ),
__( 'Current page' ),
$current,
strlen( $total_pages )
);
Expand Down
6 changes: 3 additions & 3 deletions src/wp-admin/includes/class-wp-media-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public function column_title( $post ) {
'<a href="%s" aria-label="%s">',
get_edit_post_link( $post->ID ),
/* translators: %s: Attachment title. */
esc_attr( sprintf( __( '&#8220;%s&#8221; (Edit)' ), $title ) )
esc_attr( sprintf( __( '&#8220;%s&#8221; (edit)' ), $title ) )
);
$link_end = '</a>';
}
Expand Down Expand Up @@ -807,7 +807,7 @@ private function _get_row_actions( $post, $att_title ) {
$show_confirmation,
/* translators: %s: Attachment title. */
esc_attr( sprintf( __( 'Delete &#8220;%s&#8221; permanently' ), $att_title ) ),
__( 'Delete Permanently' )
__( 'Delete permanently' )
);
}
}
Expand Down Expand Up @@ -865,7 +865,7 @@ private function _get_row_actions( $post, $att_title ) {
* @since 2.8.0
*
* @param string[] $actions An array of action links for each attachment.
* Includes 'Edit', 'Delete Permanently', 'View',
* Includes 'Edit', 'Delete permanently', 'View',
* 'Copy URL' and 'Download file'.
* @param WP_Post $post WP_Post object for the current attachment.
* @param bool $detached Whether the list table contains media not attached
Expand Down
8 changes: 4 additions & 4 deletions src/wp-admin/includes/class-wp-ms-sites-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ public function get_columns() {
$sites_columns = array(
'cb' => '<input type="checkbox" />',
'blogname' => __( 'URL' ),
'lastupdated' => __( 'Last Updated' ),
'lastupdated' => __( 'Last updated' ),
'registered' => _x( 'Registered', 'site' ),
'users' => __( 'Users' ),
);
Expand Down Expand Up @@ -400,7 +400,7 @@ protected function get_sortable_columns() {

return array(
'blogname' => array( 'blogname', false, $blogname_abbr, $blogname_orderby_text ),
'lastupdated' => array( 'lastupdated', true, __( 'Last Updated' ), __( 'Table ordered by Last Updated.' ) ),
'lastupdated' => array( 'lastupdated', true, __( 'Last updated' ), __( 'Table ordered by Last updated.' ) ),
'registered' => array( 'blog_id', true, _x( 'Registered', 'site' ), __( 'Table ordered by Site Registered Date.' ), 'desc' ),
);
}
Expand Down Expand Up @@ -806,7 +806,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) {
'unspamblog_' . $blog['blog_id']
)
),
_x( 'Not Spam', 'site' )
_x( 'Not spam', 'site' )
);
} else {
$actions['spam'] = sprintf(
Expand Down Expand Up @@ -847,7 +847,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) {
* The 'Edit', 'Dashboard', 'Delete', and 'Visit' links are displayed by
* default for each site. The site's status determines whether to show the
* 'Activate' or 'Deactivate' link, 'Unarchive' or 'Archive' links, and
* 'Not Spam' or 'Spam' link for each site.
* 'Not spam' or 'Spam' link for each site.
*
* @since 3.1.0
*
Expand Down
Loading
Loading