diff --git a/wp-admin/about.php b/wp-admin/about.php
index cc0db6a8b9..2731a54a1c 100644
--- a/wp-admin/about.php
+++ b/wp-admin/about.php
@@ -77,7 +77,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
if ( current_user_can( 'install_plugins' ) ) {
printf(
- /* translators: 1: link to /wp-admin/site-health.php 2: link to /wp-admin/site-health.php?tab=debug */
+ /* translators: 1: link to /wp-admin/site-health.php, 2: link to /wp-admin/site-health.php?tab=debug */
__( ' Check your site status, and learn how to debug issues.' ),
admin_url( 'site-health.php' ),
admin_url( 'site-health.php?tab=debug' )
@@ -142,7 +142,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
*/
+ /* translators: 1: wp_body_open, 2:
*/
__( '5.2 introduces a %1$s hook, which lets themes support injecting code right at the beginning of the %2$s element.' ),
'wp_body_open',
'<body>'
diff --git a/wp-admin/admin-footer.php b/wp-admin/admin-footer.php
index 1061f6b9a7..0a77d3ac14 100644
--- a/wp-admin/admin-footer.php
+++ b/wp-admin/admin-footer.php
@@ -32,6 +32,7 @@ global $hook_suffix;
?>
%2$s',
@@ -243,8 +243,8 @@ if ( $post_id ) {
';
- /* translators: %s: search keywords */
printf(
+ /* translators: %s: search keywords */
__( 'Search results for “%s”' ),
wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' )
);
@@ -282,34 +282,34 @@ if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $
if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 || $same > 0 ) {
if ( $approved > 0 ) {
- /* translators: %s: number of comments approved */
+ /* translators: %s: number of comments */
$messages[] = sprintf( _n( '%s comment approved', '%s comments approved', $approved ), $approved );
}
if ( $spammed > 0 ) {
$ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] : 0;
- /* translators: %s: number of comments marked as spam */
+ /* translators: %s: number of comments */
$messages[] = sprintf( _n( '%s comment marked as spam.', '%s comments marked as spam.', $spammed ), $spammed ) . ' ' . __( 'Undo' ) . ' ';
}
if ( $unspammed > 0 ) {
- /* translators: %s: number of comments restored from the spam */
+ /* translators: %s: number of comments */
$messages[] = sprintf( _n( '%s comment restored from the spam', '%s comments restored from the spam', $unspammed ), $unspammed );
}
if ( $trashed > 0 ) {
$ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] : 0;
- /* translators: %s: number of comments moved to the Trash */
+ /* translators: %s: number of comments */
$messages[] = sprintf( _n( '%s comment moved to the Trash.', '%s comments moved to the Trash.', $trashed ), $trashed ) . ' ' . __( 'Undo' ) . ' ';
}
if ( $untrashed > 0 ) {
- /* translators: %s: number of comments restored from the Trash */
+ /* translators: %s: number of comments */
$messages[] = sprintf( _n( '%s comment restored from the Trash', '%s comments restored from the Trash', $untrashed ), $untrashed );
}
if ( $deleted > 0 ) {
- /* translators: %s: number of comments permanently deleted */
+ /* translators: %s: number of comments */
$messages[] = sprintf( _n( '%s comment permanently deleted', '%s comments permanently deleted', $deleted ), $deleted );
}
diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php
index 977448aaf5..9e6ed11e0c 100644
--- a/wp-admin/edit-form-advanced.php
+++ b/wp-admin/edit-form-advanced.php
@@ -180,6 +180,7 @@ $messages['post'] = array(
6 => __( 'Post published.' ) . $view_post_link_html,
7 => __( 'Post saved.' ),
8 => __( 'Post submitted.' ) . $preview_post_link_html,
+ /* translators: %s: scheduled date for the post */
9 => sprintf( __( 'Post scheduled for: %s.' ), '' . $scheduled_date . '' ) . $scheduled_post_link_html,
10 => __( 'Post draft updated.' ) . $preview_post_link_html,
);
@@ -194,6 +195,7 @@ $messages['page'] = array(
6 => __( 'Page published.' ) . $view_page_link_html,
7 => __( 'Page saved.' ),
8 => __( 'Page submitted.' ) . $preview_page_link_html,
+ /* translators: %s: scheduled date for the page */
9 => sprintf( __( 'Page scheduled for: %s.' ), '' . $scheduled_date . '' ) . $scheduled_page_link_html,
10 => __( 'Page draft updated.' ) . $preview_page_link_html,
);
@@ -238,7 +240,11 @@ $form_extra .= "post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) {
foreach ( _wp_post_revision_fields( $post ) as $autosave_field => $_autosave_field ) {
if ( normalize_whitespace( $autosave->$autosave_field ) != normalize_whitespace( $post->$autosave_field ) ) {
- $notice = sprintf( __( 'There is an autosave of this post that is more recent than the version below. View the autosave' ), get_edit_post_link( $autosave->ID ) );
+ $notice = sprintf(
+ /* translators: %s: URL to view the autosave */
+ __( 'There is an autosave of this post that is more recent than the version below. View the autosave' ),
+ get_edit_post_link( $autosave->ID )
+ );
break;
}
}
@@ -292,7 +298,11 @@ if ( 'post' == $post_type ) {
);
get_current_screen()->set_help_sidebar(
- '
' . sprintf( __( 'You can also create posts with the Press This bookmarklet.' ), 'tools.php' ) . '
' .
+ '
' . sprintf(
+ /* translators: %s: URL to Press This bookmarklet */
+ __( 'You can also create posts with the Press This bookmarklet.' ),
+ 'tools.php'
+ ) . '
' . sprintf( __( '%s — This allows you to associate an image with your post without inserting it. This is usually useful only if your theme makes use of the image as a post thumbnail on the home page, a custom header, etc.' ), esc_html( $post_type_object->labels->featured_image ) ) . '
';
+ $publish_box .= '
' . sprintf(
+ /* translators: %s: Featured Image */
+ __( '%s — This allows you to associate an image with your post without inserting it. This is usually useful only if your theme makes use of the image as a post thumbnail on the home page, a custom header, etc.' ),
+ esc_html( $post_type_object->labels->featured_image )
+ ) . '
' . sprintf( __( 'You can use categories to define sections of your site and group related posts. The default category is “Uncategorized” until you change it in your writing settings.' ), 'options-writing.php' ) . '
';
+ $help = '
' . sprintf(
+ /* translators: %s: URL to Writing Settings screen */
+ __( 'You can use categories to define sections of your site and group related posts. The default category is “Uncategorized” until you change it in your writing settings.' ),
+ 'options-writing.php'
+ ) . '
' . __( 'You can create groups of links by using Link Categories. Link Category names must be unique and Link Categories are separate from the categories you use for posts.' ) . '
- category to tag converter.' ), esc_url( $import_link ) ); ?>
+ category to tag converter.' ),
+ esc_url( $import_link )
+ );
+ ?>
-
tag to category converter.' ), esc_url( $import_link ) ); ?>
+
+ tag to category converter.' ),
+ esc_url( $import_link )
+ );
+ ?>
+
_n( '%s post updated.', '%s posts updated.', $bulk_counts['updated'] ),
'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 post not updated, somebody is editing it.' ) :
+ /* translators: %s: number of posts */
_n( '%s post not updated, somebody is editing it.', '%s posts not updated, somebody is editing them.', $bulk_counts['locked'] ),
+ /* translators: %s: number of posts */
'deleted' => _n( '%s post permanently deleted.', '%s posts permanently deleted.', $bulk_counts['deleted'] ),
+ /* translators: %s: number of posts */
'trashed' => _n( '%s post moved to the Trash.', '%s posts moved to the Trash.', $bulk_counts['trashed'] ),
+ /* translators: %s: number of posts */
'untrashed' => _n( '%s post restored from the Trash.', '%s posts restored from the Trash.', $bulk_counts['untrashed'] ),
);
$bulk_messages['page'] = array(
+ /* translators: %s: number of pages */
'updated' => _n( '%s page updated.', '%s pages updated.', $bulk_counts['updated'] ),
'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 page not updated, somebody is editing it.' ) :
+ /* translators: %s: number of pages */
_n( '%s page not updated, somebody is editing it.', '%s pages not updated, somebody is editing them.', $bulk_counts['locked'] ),
+ /* translators: %s: number of pages */
'deleted' => _n( '%s page permanently deleted.', '%s pages permanently deleted.', $bulk_counts['deleted'] ),
+ /* translators: %s: number of pages */
'trashed' => _n( '%s page moved to the Trash.', '%s pages moved to the Trash.', $bulk_counts['trashed'] ),
+ /* translators: %s: number of pages */
'untrashed' => _n( '%s page restored from the Trash.', '%s pages restored from the Trash.', $bulk_counts['untrashed'] ),
);
$bulk_messages['wp_block'] = array(
+ /* translators: %s: number of blocks */
'updated' => _n( '%s block updated.', '%s blocks updated.', $bulk_counts['updated'] ),
- 'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) : _n( '%s block not updated, somebody is editing it.', '%s blocks not updated, somebody is editing them.', $bulk_counts['locked'] ),
+ 'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) :
+ /* translators: %s: number of blocks */
+ _n( '%s block not updated, somebody is editing it.', '%s blocks not updated, somebody is editing them.', $bulk_counts['locked'] ),
+ /* translators: %s: number of blocks */
'deleted' => _n( '%s block permanently deleted.', '%s blocks permanently deleted.', $bulk_counts['deleted'] ),
+ /* translators: %s: number of blocks */
'trashed' => _n( '%s block moved to the Trash.', '%s blocks moved to the Trash.', $bulk_counts['trashed'] ),
+ /* translators: %s: number of blocks */
'untrashed' => _n( '%s block restored from the Trash.', '%s blocks restored from the Trash.', $bulk_counts['untrashed'] ),
);
diff --git a/wp-admin/freedoms.php b/wp-admin/freedoms.php
index e860ebbe83..9b59d820df 100644
--- a/wp-admin/freedoms.php
+++ b/wp-admin/freedoms.php
@@ -114,7 +114,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
$plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
$themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
printf(
- /* translators: %s: https://wordpress.org/about/license/ */
+ /* translators: 1: URL to Plugins screen, 2: URL to Themes screen, 3: https://wordpress.org/about/license/ */
__( 'Every plugin and theme in WordPress.org’s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding plugins and themes there. If you get a plugin or theme from another source, make sure to ask them if it’s GPL first. If they don’t respect the WordPress license, we don’t recommend them.' ),
$plugins_url,
$themes_url,
diff --git a/wp-admin/import.php b/wp-admin/import.php
index bf0eb60cec..c3fbcfd7b7 100644
--- a/wp-admin/import.php
+++ b/wp-admin/import.php
@@ -223,7 +223,11 @@ if ( empty( $importers ) ) {
}
if ( current_user_can( 'install_plugins' ) ) {
- echo '
' . sprintf( __( 'If the importer you need is not listed, search the plugin directory to see if an importer is available.' ), esc_url( network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) ) ) . '
';
+ echo '
' . sprintf(
+ /* translators: %s: URL to Add Plugins screen */
+ __( 'If the importer you need is not listed, search the plugin directory to see if an importer is available.' ),
+ esc_url( network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) )
+ ) . '
';
}
?>
diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php
index 5ad5eac8a6..c1f5c8f1fc 100644
--- a/wp-admin/includes/ajax-actions.php
+++ b/wp-admin/includes/ajax-actions.php
@@ -314,7 +314,7 @@ function wp_ajax_autocomplete_user() {
foreach ( $users as $user ) {
$return[] = array(
- /* translators: 1: user_login, 2: user_email */
+ /* translators: 1: user login, 2: user email address */
'label' => sprintf( _x( '%1$s (%2$s)', 'user autocomplete result' ), $user->user_login, $user->user_email ),
'value' => $user->$field,
);
@@ -454,12 +454,12 @@ function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) {
'time' => $time,
'in_moderation' => $counts->moderated,
'i18n_comments_text' => sprintf(
- /* translators: %s: number of comments approved */
+ /* translators: %s: number of comments */
_n( '%s Comment', '%s Comments', $counts->approved ),
number_format_i18n( $counts->approved )
),
'i18n_moderation_text' => sprintf(
- /* translators: %s: number of comments in moderation */
+ /* translators: %s: number of comments */
_n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ),
number_format_i18n( $counts->moderated )
),
@@ -526,7 +526,7 @@ function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) {
'time' => $time,
'in_moderation' => $counts->moderated,
'i18n_moderation_text' => sprintf(
- /* translators: %s: number of comments in moderation */
+ /* translators: %s: number of comments */
_n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ),
number_format_i18n( $counts->moderated )
),
@@ -913,8 +913,11 @@ function wp_ajax_dim_comment() {
$x = new WP_Ajax_Response(
array(
'what' => 'comment',
- /* translators: %d: comment ID */
- 'id' => new WP_Error( 'invalid_comment', sprintf( __( 'Comment %d does not exist' ), $id ) ),
+ 'id' => new WP_Error(
+ 'invalid_comment',
+ /* translators: %d: comment ID */
+ sprintf( __( 'Comment %d does not exist' ), $id )
+ ),
)
);
$x->send();
@@ -1301,12 +1304,12 @@ function wp_ajax_replyto_comment( $action ) {
$response['supplemental'] = array(
'in_moderation' => $counts->moderated,
'i18n_comments_text' => sprintf(
- /* translators: %s: number of comments approved */
+ /* translators: %s: number of comments */
_n( '%s Comment', '%s Comments', $counts->approved ),
number_format_i18n( $counts->approved )
),
'i18n_moderation_text' => sprintf(
- /* translators: %s: number of comments in moderation */
+ /* translators: %s: number of comments */
_n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ),
number_format_i18n( $counts->moderated )
),
@@ -1914,10 +1917,11 @@ function wp_ajax_inline_save() {
$last_user = get_userdata( $last );
$last_user_name = $last_user ? $last_user->display_name : __( 'Someone' );
- /* translators: %s: user who is currently editing the post */
+ /* translators: %s: user's display name */
$msg_template = __( 'Saving is disabled: %s is currently editing this post.' );
+
if ( $_POST['post_type'] == 'page' ) {
- /* translators: %s: user who is currently editing the page */
+ /* translators: %s: user's display name */
$msg_template = __( 'Saving is disabled: %s is currently editing this page.' );
}
@@ -2626,7 +2630,7 @@ function wp_ajax_wp_fullscreen_save_post() {
$last_id = get_post_meta( $post_id, '_edit_last', true );
if ( $last_id ) {
$last_user = get_userdata( $last_id );
- /* translators: 1: display_name of last user, 2: date of last edit, 3: time of last edit. */
+ /* translators: 1: user's display name, 2: date of last edit, 3: time of last edit. */
$last_edited = sprintf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), $last_date, $last_time );
} else {
/* translators: 1: date of last edit, 2: time of last edit. */
@@ -3480,7 +3484,7 @@ function wp_ajax_parse_embed() {
wp_send_json_error(
array(
'type' => 'not-embeddable',
- /* translators: %s: URL which cannot be embedded, between code tags */
+ /* translators: %s: URL that could not be embedded */
'message' => sprintf( __( '%s failed to embed.' ), '' . esc_html( $url ) . '' ),
)
);
diff --git a/wp-admin/includes/bookmark.php b/wp-admin/includes/bookmark.php
index 05165dd9d1..73102b96a1 100644
--- a/wp-admin/includes/bookmark.php
+++ b/wp-admin/includes/bookmark.php
@@ -319,7 +319,7 @@ function wp_link_manager_disabled_message() {
if ( $really_can_manage_links && current_user_can( 'install_plugins' ) ) {
$link = network_admin_url( 'plugin-install.php?tab=search&s=Link+Manager' );
- /* translators: %s: URL of link manager plugin */
+ /* translators: %s: URL to install the Link Manager plugin */
wp_die( sprintf( __( 'If you are looking to use the link manager, please install the Link Manager plugin.' ), $link ) );
}
diff --git a/wp-admin/includes/class-bulk-plugin-upgrader-skin.php b/wp-admin/includes/class-bulk-plugin-upgrader-skin.php
index a568d6b107..62b877918a 100644
--- a/wp-admin/includes/class-bulk-plugin-upgrader-skin.php
+++ b/wp-admin/includes/class-bulk-plugin-upgrader-skin.php
@@ -20,7 +20,7 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
public function add_strings() {
parent::add_strings();
- /* translators: 1: name of plugin being updated, 2: number of updating plugin, 3: total number of plugins being updated */
+ /* translators: 1: plugin name, 2: number of the plugin, 3: total number of plugins being updated */
$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)' );
}
@@ -43,10 +43,20 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
*/
public function bulk_footer() {
parent::bulk_footer();
+
$update_actions = array(
- 'plugins_page' => '' . __( 'Return to Plugins page' ) . '',
- 'updates_page' => '' . __( 'Return to WordPress Updates page' ) . '',
+ 'plugins_page' => sprintf(
+ '%s',
+ self_admin_url( 'plugins.php' ),
+ __( 'Return to Plugins page' )
+ ),
+ 'updates_page' => sprintf(
+ '%s',
+ self_admin_url( 'update-core.php' ),
+ __( 'Return to WordPress Updates page' )
+ ),
);
+
if ( ! current_user_can( 'activate_plugins' ) ) {
unset( $update_actions['plugins_page'] );
}
diff --git a/wp-admin/includes/class-bulk-theme-upgrader-skin.php b/wp-admin/includes/class-bulk-theme-upgrader-skin.php
index ce426e0154..687a921529 100644
--- a/wp-admin/includes/class-bulk-theme-upgrader-skin.php
+++ b/wp-admin/includes/class-bulk-theme-upgrader-skin.php
@@ -20,7 +20,7 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
public function add_strings() {
parent::add_strings();
- /* translators: 1: name of theme being updated, 2: number of updating themes, 3: total number of themes being updated */
+ /* translators: 1: theme name, 2: number of the theme, 3: total number of themes being updated */
$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Theme %1$s (%2$d/%3$d)' );
}
@@ -43,10 +43,20 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
*/
public function bulk_footer() {
parent::bulk_footer();
+
$update_actions = array(
- 'themes_page' => '' . __( 'Return to Themes page' ) . '',
- 'updates_page' => '' . __( 'Return to WordPress Updates page' ) . '',
+ 'themes_page' => sprintf(
+ '%s',
+ self_admin_url( 'themes.php' ),
+ __( 'Return to Themes page' )
+ ),
+ 'updates_page' => sprintf(
+ '%s',
+ self_admin_url( 'update-core.php' ),
+ __( 'Return to WordPress Updates page' )
+ ),
);
+
if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) {
unset( $update_actions['themes_page'] );
}
diff --git a/wp-admin/includes/class-custom-background.php b/wp-admin/includes/class-custom-background.php
index 0e463bd0ca..16ba6c0f33 100644
--- a/wp-admin/includes/class-custom-background.php
+++ b/wp-admin/includes/class-custom-background.php
@@ -229,10 +229,11 @@ class Custom_Background {
Customizer.' ),
- admin_url( 'customize.php?autofocus[control]=background_image' )
- );
+ printf(
+ /* translators: %s: URL to background image configuration in Customizer */
+ __( 'You can now manage and live-preview Custom Backgrounds in the Customizer.' ),
+ admin_url( 'customize.php?autofocus[control]=background_image' )
+ );
?>
' . sprintf( __( 'For most themes, the header text is your Site Title and Tagline, as defined in the General Settings section.' ), admin_url( 'options-general.php' ) ) . '
' .
+ '
' . sprintf(
+ /* translators: %s: URL to General Settings screen */
+ __( 'For most themes, the header text is your Site Title and Tagline, as defined in the General Settings section.' ),
+ admin_url( 'options-general.php' )
+ ) .
+ '
' .
'
' . __( 'In the Header Text section of this page, you can choose whether to display this text or hide it. You can also choose a color for the text by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. “#ff0000” for red, or by choosing a color using the color picker.' ) . '
' .
'
' . __( 'Don’t forget to click “Save Changes” when you’re done!' ) . '
',
)
@@ -473,10 +478,11 @@ class Custom_Image_Header {
Customizer.' ),
- admin_url( 'customize.php?autofocus[control]=header_image' )
- );
+ printf(
+ /* translators: %s: URL to header image configuration in Customizer */
+ __( 'You can now manage and live-preview Custom Header in the Customizer.' ),
+ admin_url( 'customize.php?autofocus[control]=header_image' )
+ );
?>
';
@@ -1495,14 +1508,14 @@ function wp_dashboard_browser_nag() {
if ( $response ) {
if ( $response['insecure'] ) {
- /* translators: %s: browser name and link */
$msg = sprintf(
+ /* translators: %s: browser name and link */
__( "It looks like you're using an insecure version of %s. Using an outdated browser makes your computer unsafe. For the best WordPress experience, please update your browser." ),
sprintf( '%s', esc_url( $response['update_url'] ), esc_html( $response['name'] ) )
);
} else {
- /* translators: %s: browser name and link */
$msg = sprintf(
+ /* translators: %s: browser name and link */
__( "It looks like you're using an old version of %s. For the best WordPress experience, please update your browser." ),
sprintf( '%s', esc_url( $response['update_url'] ), esc_html( $response['name'] ) )
);
@@ -1523,7 +1536,13 @@ function wp_dashboard_browser_nag() {
$browsehappy = add_query_arg( 'locale', $locale, $browsehappy );
}
- $notice .= '
' . sprintf( __( 'Update %2$s or learn how to browse happy' ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ), esc_url( $browsehappy ) ) . '
';
+ /* translators: %s: an asterisk symbol (*) */
+ sprintf( __( 'Required fields are marked %s' ), '*' ) .
+ '' .
+ '
' . $item . '
';
}
foreach ( $hidden_fields as $hidden_field => $value ) {
@@ -1956,7 +1962,11 @@ function media_upload_form( $errors = null ) {
global $type, $tab, $is_IE, $is_opera;
if ( ! _device_can_upload() ) {
- echo '
' . sprintf( __( 'The web browser on your device cannot be used to upload files. You may be able to use the native app for your device instead.' ), 'https://apps.wordpress.org/' ) . '
';
+ echo '
' . sprintf(
+ /* translators: %s: https://apps.wordpress.org/ */
+ __( 'The web browser on your device cannot be used to upload files. You may be able to use the native app for your device instead.' ),
+ 'https://apps.wordpress.org/'
+ ) . '
diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php
index b4d8ec3a65..97b999010b 100644
--- a/wp-admin/includes/misc.php
+++ b/wp-admin/includes/misc.php
@@ -1013,7 +1013,10 @@ function wp_check_locked_posts( $response, $data, $screen_id ) {
if ( $user_id ) {
$user = get_userdata( $user_id );
if ( $user && current_user_can( 'edit_post', $post_id ) ) {
- $send = array( 'text' => sprintf( __( '%s is currently editing' ), $user->display_name ) );
+ $send = array(
+ /* translators: %s: user's display name */
+ 'text' => sprintf( __( '%s is currently editing' ), $user->display_name ),
+ );
$avatar = get_avatar( $user->ID, 18 );
if ( $avatar && preg_match( "|src='([^']+)'|", $avatar, $matches ) ) {
@@ -1061,6 +1064,7 @@ function wp_refresh_post_lock( $response, $data, $screen_id ) {
$user = get_userdata( $user_id );
if ( $user ) {
$error = array(
+ /* translators: %s: user's display name */
'text' => sprintf( __( '%s has taken over and is currently editing.' ), $user->display_name ),
);
@@ -1186,9 +1190,9 @@ function heartbeat_autosave( $response, $data ) {
} else {
/* translators: draft saved date format, see https://secure.php.net/date */
$draft_saved_date_format = __( 'g:i:s a' );
- /* translators: %s: date and time */
$response['wp_autosave'] = array(
'success' => true,
+ /* translators: %s: date and time */
'message' => sprintf( __( 'Draft saved at %s.' ), date_i18n( $draft_saved_date_format ) ),
);
}
@@ -1341,8 +1345,15 @@ All at ###SITENAME###
$content = str_replace( '###SITENAME###', wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), $content );
$content = str_replace( '###SITEURL###', home_url(), $content );
- /* translators: New admin email address notification email subject. %s: Site title */
- wp_mail( $value, sprintf( __( '[%s] New Admin Email Address' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ), $content );
+ wp_mail(
+ $value,
+ sprintf(
+ /* translators: New admin email address notification email subject. %s: Site title */
+ __( '[%s] New Admin Email Address' ),
+ wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES )
+ ),
+ $content
+ );
if ( $switched_locale ) {
restore_previous_locale();
diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php
index 83b74630cb..283f6aa078 100644
--- a/wp-admin/includes/ms.php
+++ b/wp-admin/includes/ms.php
@@ -579,10 +579,21 @@ function _access_denied_splash() {
$blog_name = get_bloginfo( 'name' );
if ( empty( $blogs ) ) {
- wp_die( sprintf( __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), $blog_name ), 403 );
+ wp_die(
+ sprintf(
+ /* translators: 1: Site title */
+ __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ),
+ $blog_name
+ ),
+ 403
+ );
}
- $output = '
' . sprintf( __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), $blog_name ) . '
';
+ $output = '
' . sprintf(
+ /* translators: 1: Site title */
+ __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ),
+ $blog_name
+ ) . '
';
$output .= '
' . __( 'If you reached this screen by accident and meant to visit one of your own sites, here are some shortcuts to help you find your way.' ) . '
" . sprintf( __( 'Thank you for Updating! Please visit the Upgrade Network page to update all your sites.' ), esc_url( network_admin_url( 'upgrade.php' ) ) ) . '
';
+ echo "
" . sprintf(
+ /* translators: %s: URL to Upgrade Network screen */
+ __( 'Thank you for Updating! Please visit the Upgrade Network page to update all your sites.' ),
+ esc_url( network_admin_url( 'upgrade.php' ) )
+ ) . '