Index: /trunk/src/wp-admin/includes/ajax-actions.php
===================================================================
--- /trunk/src/wp-admin/includes/ajax-actions.php (revision 43597)
+++ /trunk/src/wp-admin/includes/ajax-actions.php (revision 43598)
@@ -391,8 +391,10 @@
'in_moderation' => $counts->moderated,
'i18n_comments_text' => sprintf(
+ /* translators: %s: number of comments approved */
_n( '%s Comment', '%s Comments', $counts->approved ),
number_format_i18n( $counts->approved )
),
'i18n_moderation_text' => sprintf(
+ /* translators: %s: number of comments in moderation */
_nx( '%s in moderation', '%s in moderation', $counts->moderated, 'comments' ),
number_format_i18n( $counts->moderated )
@@ -453,4 +455,5 @@
'status' => $comment ? $comment->comment_approved : '',
'postId' => $comment ? $comment->comment_post_ID : '',
+ /* translators: %s: number of comments */
'total_items_i18n' => sprintf( _n( '%s item', '%s items', $total ), number_format_i18n( $total ) ),
'total_pages' => ceil( $total / $per_page ),
@@ -836,4 +839,5 @@
array(
'what' => 'comment',
+ /* translators: %d: comment ID */
'id' => new WP_Error( 'invalid_comment', sprintf( __( 'Comment %d does not exist' ), $id ) ),
)
@@ -1215,8 +1219,10 @@
'in_moderation' => $counts->moderated,
'i18n_comments_text' => sprintf(
+ /* translators: %s: number of comments approved */
_n( '%s Comment', '%s Comments', $counts->approved ),
number_format_i18n( $counts->approved )
),
'i18n_moderation_text' => sprintf(
+ /* translators: %s: number of comments moderated */
_nx( '%s in moderation', '%s in moderation', $counts->moderated, 'comments' ),
number_format_i18n( $counts->moderated )
@@ -1814,5 +1820,13 @@
$last_user = get_userdata( $last );
$last_user_name = $last_user ? $last_user->display_name : __( 'Someone' );
- printf( $_POST['post_type'] == 'page' ? __( 'Saving is disabled: %s is currently editing this page.' ) : __( 'Saving is disabled: %s is currently editing this post.' ), esc_html( $last_user_name ) );
+
+ /* translators: %s: user who is currently editing the post */
+ $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 */
+ $msg_template = __( 'Saving is disabled: %s is currently editing this page.' );
+ }
+
+ printf( $msg_template, esc_html( $last_user_name ) );
wp_die();
}
@@ -2509,7 +2523,9 @@
if ( $last_id = get_post_meta( $post_id, '_edit_last', true ) ) {
- $last_user = get_userdata( $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. */
$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. */
$last_edited = sprintf( __( 'Last edited on %1$s at %2$s' ), $last_date, $last_time );
}
@@ -3337,4 +3353,5 @@
array(
'type' => 'not-embeddable',
+ /* translators: %s: URL which cannot be embedded, between code tags */
'message' => sprintf( __( '%s failed to embed.' ), '' . esc_html( $url ) . '
' ),
)
Index: /trunk/src/wp-admin/includes/bookmark.php
===================================================================
--- /trunk/src/wp-admin/includes/bookmark.php (revision 43597)
+++ /trunk/src/wp-admin/includes/bookmark.php (revision 43598)
@@ -320,4 +320,5 @@
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 */
wp_die( sprintf( __( 'If you are looking to use the link manager, please install the Link Manager plugin.' ), $link ) );
}
Index: /trunk/src/wp-admin/includes/class-bulk-plugin-upgrader-skin.php
===================================================================
--- /trunk/src/wp-admin/includes/class-bulk-plugin-upgrader-skin.php (revision 43597)
+++ /trunk/src/wp-admin/includes/class-bulk-plugin-upgrader-skin.php (revision 43598)
@@ -21,4 +21,5 @@
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 */
$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)' );
}
Index: /trunk/src/wp-admin/includes/class-bulk-theme-upgrader-skin.php
===================================================================
--- /trunk/src/wp-admin/includes/class-bulk-theme-upgrader-skin.php (revision 43597)
+++ /trunk/src/wp-admin/includes/class-bulk-theme-upgrader-skin.php (revision 43598)
@@ -21,4 +21,5 @@
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 */
$this->upgrader->strings['skin_before_update_header'] = __( 'Updating Theme %1$s (%2$d/%3$d)' );
}
Index: /trunk/src/wp-admin/includes/class-language-pack-upgrader-skin.php
===================================================================
--- /trunk/src/wp-admin/includes/class-language-pack-upgrader-skin.php (revision 43597)
+++ /trunk/src/wp-admin/includes/class-language-pack-upgrader-skin.php (revision 43598)
@@ -48,4 +48,5 @@
echo '
';
+ /* translators: 1: name of project, 2: language */
printf( '
' . __( 'Updating translations for %1$s (%2$s)…' ) . '
', $name, $this->language_update->language );
}
Index: /trunk/src/wp-admin/includes/class-language-pack-upgrader.php
===================================================================
--- /trunk/src/wp-admin/includes/class-language-pack-upgrader.php (revision 43597)
+++ /trunk/src/wp-admin/includes/class-language-pack-upgrader.php (revision 43598)
@@ -344,6 +344,6 @@
'incompatible_archive_pomo',
$this->strings['incompatible_archive'],
- /* translators: 1: .po, 2: .mo */
sprintf(
+ /* translators: 1: .po, 2: .mo */
__( 'The language pack is missing either the %1$s or %2$s files.' ),
'
.po
',
Index: /trunk/src/wp-admin/includes/class-plugin-installer-skin.php
===================================================================
--- /trunk/src/wp-admin/includes/class-plugin-installer-skin.php (revision 43597)
+++ /trunk/src/wp-admin/includes/class-plugin-installer-skin.php (revision 43598)
@@ -43,4 +43,5 @@
public function before() {
if ( ! empty( $this->api ) ) {
+ /* translators: 1: name of API, 2: version of API */
$this->upgrader->strings['process_success'] = sprintf( __( 'Successfully installed the plugin
%1$s %2$s.' ), $this->api->name, $this->api->version );
}
Index: /trunk/src/wp-admin/includes/class-theme-installer-skin.php
===================================================================
--- /trunk/src/wp-admin/includes/class-theme-installer-skin.php (revision 43597)
+++ /trunk/src/wp-admin/includes/class-theme-installer-skin.php (revision 43598)
@@ -76,5 +76,5 @@
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
- $customize_url = add_query_arg(
+ $customize_url = add_query_arg(
array(
'theme' => urlencode( $stylesheet ),
@@ -83,7 +83,13 @@
admin_url( 'customize.php' )
);
- $install_actions['preview'] = '
' . __( 'Live Preview' ) . '' . sprintf( __( 'Live Preview “%s”' ), $name ) . '';
+ $install_actions['preview'] = '
';
+ $install_actions['preview'] .= '' . __( 'Live Preview' ) . '';
+ /* translators: %s: theme name */
+ $install_actions['preview'] .= '' . sprintf( __( 'Live Preview “%s”' ), $name ) . '';
}
- $install_actions['activate'] = '
' . __( 'Activate' ) . '' . sprintf( __( 'Activate “%s”' ), $name ) . '';
+ $install_actions['activate'] = '
';
+ $install_actions['activate'] .= '' . __( 'Activate' ) . '';
+ /* translators: %s: theme name */
+ $install_actions['activate'] .= '' . sprintf( __( 'Activate “%s”' ), $name ) . '';
if ( is_network_admin() && current_user_can( 'manage_network_themes' ) ) {
Index: /trunk/src/wp-admin/includes/class-theme-upgrader-skin.php
===================================================================
--- /trunk/src/wp-admin/includes/class-theme-upgrader-skin.php (revision 43597)
+++ /trunk/src/wp-admin/includes/class-theme-upgrader-skin.php (revision 43598)
@@ -66,11 +66,20 @@
if ( get_stylesheet() == $stylesheet ) {
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
- $update_actions['preview'] = '
' . __( 'Customize' ) . '' . sprintf( __( 'Customize “%s”' ), $name ) . '';
+ $update_actions['preview'] = '
';
+ $update_actions['preview'] .= '' . __( 'Customize' ) . '';
+ /* translators: %s: theme name */
+ $update_actions['preview'] .= '' . sprintf( __( 'Customize “%s”' ), $name ) . '';
}
} elseif ( current_user_can( 'switch_themes' ) ) {
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
- $update_actions['preview'] = '
' . __( 'Live Preview' ) . '' . sprintf( __( 'Live Preview “%s”' ), $name ) . '';
+ $update_actions['preview'] = '
';
+ $update_actions['preview'] .= '' . __( 'Live Preview' ) . '';
+ /* translators: %s: theme name */
+ $update_actions['preview'] .= '' . sprintf( __( 'Live Preview “%s”' ), $name ) . '';
}
- $update_actions['activate'] = '
' . __( 'Activate' ) . '' . sprintf( __( 'Activate “%s”' ), $name ) . '';
+ $update_actions['activate'] = '
';
+ $update_actions['activate'] .= '' . __( 'Activate' ) . '';
+ /* translators: %s: theme name */
+ $update_actions['activate'] .= '' . sprintf( __( 'Activate “%s”' ), $name ) . '';
}
Index: /trunk/src/wp-admin/includes/class-theme-upgrader.php
===================================================================
--- /trunk/src/wp-admin/includes/class-theme-upgrader.php (revision 43597)
+++ /trunk/src/wp-admin/includes/class-theme-upgrader.php (revision 43598)
@@ -474,6 +474,6 @@
'incompatible_archive_theme_no_style',
$this->strings['incompatible_archive'],
- /* translators: %s: style.css */
sprintf(
+ /* translators: %s: style.css */
__( 'The theme is missing the %s stylesheet.' ),
'
style.css
'
@@ -494,6 +494,6 @@
'incompatible_archive_theme_no_name',
$this->strings['incompatible_archive'],
- /* translators: %s: style.css */
sprintf(
+ /* translators: %s: style.css */
__( 'The %s stylesheet doesn’t contain a valid theme header.' ),
'
style.css
'
@@ -507,6 +507,6 @@
'incompatible_archive_theme_no_index',
$this->strings['incompatible_archive'],
- /* translators: %s: index.php */
sprintf(
+ /* translators: %s: index.php */
__( 'The theme is missing the %s file.' ),
'
index.php
'
Index: /trunk/src/wp-admin/includes/class-walker-nav-menu-checklist.php
===================================================================
--- /trunk/src/wp-admin/includes/class-walker-nav-menu-checklist.php (revision 43597)
+++ /trunk/src/wp-admin/includes/class-walker-nav-menu-checklist.php (revision 43598)
@@ -96,4 +96,5 @@
$title = apply_filters( 'the_title', $item->post_title, $item->ID );
if ( ! empty( $item->front_or_home ) && _x( 'Home', 'nav menu home label' ) !== $title ) {
+ /* translators: %s: front page title */
$title = sprintf( _x( 'Home: %s', 'nav menu front page title' ), $title );
}
Index: /trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php
===================================================================
--- /trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php (revision 43597)
+++ /trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php (revision 43598)
@@ -218,5 +218,8 @@
type && $original_title !== false ) : ?>
- url ) . '">' . esc_html( $original_title ) . '' ); ?>
+ url ) . '">' . esc_html( $original_title ) . '' );
+ ?>
Index: /trunk/src/wp-admin/includes/class-wp-automatic-updater.php
===================================================================
--- /trunk/src/wp-admin/includes/class-wp-automatic-updater.php (revision 43597)
+++ /trunk/src/wp-admin/includes/class-wp-automatic-updater.php (revision 43598)
@@ -308,5 +308,7 @@
switch ( $type ) {
case 'core':
+ /* translators: %s: WordPress version */
$skin->feedback( __( 'Updating to WordPress %s' ), $item->version );
+ /* translators: %s: WordPress version */
$item_name = sprintf( __( 'WordPress %s' ), $item->version );
break;
@@ -315,4 +317,5 @@
$theme = wp_get_theme( $upgrader_item );
$item_name = $theme->Get( 'Name' );
+ /* translators: %s: Theme name */
$skin->feedback( __( 'Updating theme: %s' ), $item_name );
break;
@@ -321,9 +324,12 @@
$plugin_data = get_plugin_data( $context . '/' . $upgrader_item );
$item_name = $plugin_data['Name'];
+ /* translators: %s: Plugin name */
$skin->feedback( __( 'Updating plugin: %s' ), $item_name );
break;
case 'translation':
$language_item_name = $upgrader->get_name_for_update( $item );
- $item_name = sprintf( __( 'Translations for %s' ), $language_item_name );
+ /* translators: %s: Name of language item */
+ $item_name = sprintf( __( 'Translations for %s' ), $language_item_name );
+ /* translators: 1: Name of language item, 2: Language */
$skin->feedback( sprintf( __( 'Updating translations for %1$s (%2$s)…' ), $language_item_name, $item->language ) );
break;
@@ -663,4 +669,5 @@
switch ( $type ) {
case 'success':
+ /* translators: 1: Home URL, 2: WordPress version */
$body .= sprintf( __( 'Howdy! Your site at %1$s has been updated automatically to WordPress %2$s.' ), home_url(), $core_update->current );
$body .= "\n\n";
@@ -671,8 +678,10 @@
// Can only reference the About screen if their update was successful.
list( $about_version ) = explode( '-', $core_update->current, 2 );
- $body .= sprintf( __( 'For more on version %s, see the About WordPress screen:' ), $about_version );
- $body .= "\n" . admin_url( 'about.php' );
+ /* translators: %s: WordPress core version */
+ $body .= sprintf( __( 'For more on version %s, see the About WordPress screen:' ), $about_version );
+ $body .= "\n" . admin_url( 'about.php' );
if ( $newer_version_available ) {
+ /* translators: %s: WordPress core latest version */
$body .= "\n\n" . sprintf( __( 'WordPress %s is also now available.' ), $next_user_core_update->current ) . ' ';
$body .= __( 'Updating is easy and only takes a few moments:' );
@@ -684,4 +693,5 @@
case 'fail':
case 'manual':
+ /* translators: 1: Home URL, 2: WordPress core latest version */
$body .= sprintf( __( 'Please update your site at %1$s to WordPress %2$s.' ), home_url(), $next_user_core_update->current );
@@ -700,6 +710,8 @@
case 'critical':
if ( $newer_version_available ) {
+ /* translators: 1: Home URL, 2: WordPress core latest version */
$body .= sprintf( __( 'Your site at %1$s experienced a critical failure while trying to update WordPress to version %2$s.' ), home_url(), $core_update->current );
} else {
+ /* translators: 1: Home URL, 2: Core update version */
$body .= sprintf( __( 'Your site at %1$s experienced a critical failure while trying to update to the latest version of WordPress, %2$s.' ), home_url(), $core_update->current );
}
@@ -715,4 +727,5 @@
if ( $critical_support ) {
// Support offer if available.
+ /* translators: %s: Support e-mail */
$body .= "\n\n" . sprintf( __( 'The WordPress team is willing to help you. Forward this email to %s and the team will work with you to make sure your site is working.' ), $core_update->support_email );
} else {
@@ -741,4 +754,5 @@
if ( 'critical' == $type && is_wp_error( $result ) ) {
$body .= "\n***\n\n";
+ /* translators: %s: WordPress version */
$body .= sprintf( __( 'Your site was running version %s.' ), get_bloginfo( 'version' ) );
$body .= ' ' . __( 'We have some data that describes the error your site encountered.' );
@@ -758,5 +772,6 @@
}
$error_code = $error->get_error_code();
- $body .= "\n\n" . sprintf( __( 'Error code: %s' ), $error_code );
+ /* translators: %s: Error code */
+ $body .= "\n\n" . sprintf( __( 'Error code: %s' ), $error_code );
if ( 'rollback_was_required' == $error_code ) {
continue;
@@ -816,4 +831,5 @@
$failures = 0;
+ /* translators: %s: Network home URL */
$body[] = sprintf( __( 'WordPress site: %s' ), network_home_url( '/' ) );
@@ -822,6 +838,8 @@
$result = $this->update_results['core'][0];
if ( $result->result && ! is_wp_error( $result->result ) ) {
+ /* translators: %s: WordPress core version */
$body[] = sprintf( __( 'SUCCESS: WordPress was successfully updated to %s' ), $result->name );
} else {
+ /* translators: %s: WordPress core version */
$body[] = sprintf( __( 'FAILED: WordPress failed to update to %s' ), $result->name );
$failures++;
@@ -845,4 +863,5 @@
$body[] = $messages[ $type ];
foreach ( wp_list_pluck( $success_items, 'name' ) as $name ) {
+ /* translators: %s: name of plugin / theme / translations */
$body[] = ' * ' . sprintf( __( 'SUCCESS: %s' ), $name );
}
@@ -859,4 +878,5 @@
foreach ( $this->update_results[ $type ] as $item ) {
if ( ! $item->result || is_wp_error( $item->result ) ) {
+ /* translators: %s: name of plugin / theme / translations */
$body[] = ' * ' . sprintf( __( 'FAILED: %s' ), $item->name );
$failures++;
@@ -885,6 +905,8 @@
$body[] = '';
+ /* translators: %s: site title */
$subject = sprintf( __( '[%s] There were failures during background updates' ), $site_title );
} else {
+ /* translators: %s: site title */
$subject = sprintf( __( '[%s] Background updates have finished' ), $site_title );
}