From a2e29eb65b2e6d4c67db32dc5212c16647346e66 Mon Sep 17 00:00:00 2001
From: jrfnl <663378+jrfnl@users.noreply.github.com>
Date: Thu, 14 Jun 2018 16:00:06 +0200
Subject: [PATCH] Add translators comments for /wp-admin/includes - ticket
44360
---
src/wp-admin/includes/ajax-actions.php | 17 ++++++++++++++++-
src/wp-admin/includes/bookmark.php | 1 +
.../includes/class-bulk-plugin-upgrader-skin.php | 1 +
.../includes/class-bulk-theme-upgrader-skin.php | 1 +
.../includes/class-language-pack-upgrader-skin.php | 1 +
.../includes/class-language-pack-upgrader.php | 2 +-
.../includes/class-plugin-installer-skin.php | 1 +
.../includes/class-theme-installer-skin.php | 2 ++
.../includes/class-theme-upgrader-skin.php | 3 +++
src/wp-admin/includes/class-theme-upgrader.php | 6 +++---
.../includes/class-walker-nav-menu-checklist.php | 1 +
.../includes/class-walker-nav-menu-edit.php | 5 ++++-
.../includes/class-wp-automatic-updater.php | 22 ++++++++++++++++++++++
13 files changed, 57 insertions(+), 6 deletions(-)
diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php
index 04c31e51d3..4dfe806579 100644
a
|
b
|
function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) { |
390 | 390 | 'time' => $time, |
391 | 391 | 'in_moderation' => $counts->moderated, |
392 | 392 | 'i18n_comments_text' => sprintf( |
| 393 | /* translators: %s: number of comments approved */ |
393 | 394 | _n( '%s Comment', '%s Comments', $counts->approved ), |
394 | 395 | number_format_i18n( $counts->approved ) |
395 | 396 | ), |
396 | 397 | 'i18n_moderation_text' => sprintf( |
| 398 | /* translators: %s: number of comments in moderation */ |
397 | 399 | _nx( '%s in moderation', '%s in moderation', $counts->moderated, 'comments' ), |
398 | 400 | number_format_i18n( $counts->moderated ) |
399 | 401 | ), |
… |
… |
function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) { |
452 | 454 | 'supplemental' => array( |
453 | 455 | 'status' => $comment ? $comment->comment_approved : '', |
454 | 456 | 'postId' => $comment ? $comment->comment_post_ID : '', |
| 457 | /* translators: %s: number of comments */ |
455 | 458 | 'total_items_i18n' => sprintf( _n( '%s item', '%s items', $total ), number_format_i18n( $total ) ), |
456 | 459 | 'total_pages' => ceil( $total / $per_page ), |
457 | 460 | 'total_pages_i18n' => number_format_i18n( ceil( $total / $per_page ) ), |
… |
… |
function wp_ajax_dim_comment() { |
833 | 836 | $x = new WP_Ajax_Response( |
834 | 837 | array( |
835 | 838 | 'what' => 'comment', |
| 839 | /* translators: %d: comment ID */ |
836 | 840 | 'id' => new WP_Error( 'invalid_comment', sprintf( __( 'Comment %d does not exist' ), $id ) ), |
837 | 841 | ) |
838 | 842 | ); |
… |
… |
function wp_ajax_replyto_comment( $action ) { |
1210 | 1214 | $response['supplemental'] = array( |
1211 | 1215 | 'in_moderation' => $counts->moderated, |
1212 | 1216 | 'i18n_comments_text' => sprintf( |
| 1217 | /* translators: $s: number of comments approved */ |
1213 | 1218 | _n( '%s Comment', '%s Comments', $counts->approved ), |
1214 | 1219 | number_format_i18n( $counts->approved ) |
1215 | 1220 | ), |
1216 | 1221 | 'i18n_moderation_text' => sprintf( |
| 1222 | /* translators: $s: number of comments moderated */ |
1217 | 1223 | _nx( '%s in moderation', '%s in moderation', $counts->moderated, 'comments' ), |
1218 | 1224 | number_format_i18n( $counts->moderated ) |
1219 | 1225 | ), |
… |
… |
function wp_ajax_inline_save() { |
1807 | 1813 | if ( $last = wp_check_post_lock( $post_ID ) ) { |
1808 | 1814 | $last_user = get_userdata( $last ); |
1809 | 1815 | $last_user_name = $last_user ? $last_user->display_name : __( 'Someone' ); |
1810 | | 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 ) ); |
| 1816 | printf( $_POST['post_type'] == 'page' ? |
| 1817 | /* translators: %s: user who is currently editing the page */ |
| 1818 | __( 'Saving is disabled: %s is currently editing this page.' ) : |
| 1819 | /* translators: %s: user who is currently editing the page */ |
| 1820 | __( 'Saving is disabled: %s is currently editing this post.' ), |
| 1821 | esc_html( $last_user_name ) |
| 1822 | ); |
1811 | 1823 | wp_die(); |
1812 | 1824 | } |
1813 | 1825 | |
… |
… |
function wp_ajax_wp_fullscreen_save_post() { |
2503 | 2515 | |
2504 | 2516 | if ( $last_id = get_post_meta( $post_id, '_edit_last', true ) ) { |
2505 | 2517 | $last_user = get_userdata( $last_id ); |
| 2518 | /* translators: 1: display_name of last user, 2: date of last edit, 3: time of last edit. */ |
2506 | 2519 | $last_edited = sprintf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), $last_date, $last_time ); |
2507 | 2520 | } else { |
| 2521 | /* translators: 1: date of last edit, 2: time of last edit. */ |
2508 | 2522 | $last_edited = sprintf( __( 'Last edited on %1$s at %2$s' ), $last_date, $last_time ); |
2509 | 2523 | } |
2510 | 2524 | |
… |
… |
function wp_ajax_parse_embed() { |
3325 | 3339 | wp_send_json_error( |
3326 | 3340 | array( |
3327 | 3341 | 'type' => 'not-embeddable', |
| 3342 | /* translators: %s: URL which cannot be embedded, between code tags */ |
3328 | 3343 | 'message' => sprintf( __( '%s failed to embed.' ), '<code>' . esc_html( $url ) . '</code>' ), |
3329 | 3344 | ) |
3330 | 3345 | ); |
diff --git a/src/wp-admin/includes/bookmark.php b/src/wp-admin/includes/bookmark.php
index 5475d3d67f..fa425dda04 100644
a
|
b
|
function wp_link_manager_disabled_message() { |
319 | 319 | |
320 | 320 | if ( $really_can_manage_links && current_user_can( 'install_plugins' ) ) { |
321 | 321 | $link = network_admin_url( 'plugin-install.php?tab=search&s=Link+Manager' ); |
| 322 | /* translators: %s: URL of link manager plugin */ |
322 | 323 | wp_die( sprintf( __( 'If you are looking to use the link manager, please install the <a href="%s">Link Manager</a> plugin.' ), $link ) ); |
323 | 324 | } |
324 | 325 | |
diff --git a/src/wp-admin/includes/class-bulk-plugin-upgrader-skin.php b/src/wp-admin/includes/class-bulk-plugin-upgrader-skin.php
index 4b407f76d6..a568d6b107 100644
a
|
b
|
class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin { |
20 | 20 | |
21 | 21 | public function add_strings() { |
22 | 22 | parent::add_strings(); |
| 23 | /* translators: 1: name of plugin being updated, 2: number of updating plugin, 3: total number of plugins being updated */ |
23 | 24 | $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)' ); |
24 | 25 | } |
25 | 26 | |
diff --git a/src/wp-admin/includes/class-bulk-theme-upgrader-skin.php b/src/wp-admin/includes/class-bulk-theme-upgrader-skin.php
index 1ac8d3c6c5..ce426e0154 100644
a
|
b
|
class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin { |
20 | 20 | |
21 | 21 | public function add_strings() { |
22 | 22 | parent::add_strings(); |
| 23 | /* translators: 1: name of theme being updated, 2: number of updating themes, 3: total number of themes being updated */ |
23 | 24 | $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Theme %1$s (%2$d/%3$d)' ); |
24 | 25 | } |
25 | 26 | |
diff --git a/src/wp-admin/includes/class-language-pack-upgrader-skin.php b/src/wp-admin/includes/class-language-pack-upgrader-skin.php
index 3eb46cfd87..1d59cc73cb 100644
a
|
b
|
class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin { |
47 | 47 | |
48 | 48 | echo '<div class="update-messages lp-show-latest">'; |
49 | 49 | |
| 50 | /* translators: 1: name of project, 2: language */ |
50 | 51 | printf( '<h2>' . __( 'Updating translations for %1$s (%2$s)…' ) . '</h2>', $name, $this->language_update->language ); |
51 | 52 | } |
52 | 53 | |
diff --git a/src/wp-admin/includes/class-language-pack-upgrader.php b/src/wp-admin/includes/class-language-pack-upgrader.php
index 8e808608fa..aa170bb044 100644
a
|
b
|
class Language_Pack_Upgrader extends WP_Upgrader { |
338 | 338 | if ( ! $mo || ! $po ) { |
339 | 339 | return new WP_Error( |
340 | 340 | 'incompatible_archive_pomo', $this->strings['incompatible_archive'], |
341 | | /* translators: 1: .po, 2: .mo */ |
342 | 341 | sprintf( |
| 342 | /* translators: 1: .po, 2: .mo */ |
343 | 343 | __( 'The language pack is missing either the %1$s or %2$s files.' ), |
344 | 344 | '<code>.po</code>', |
345 | 345 | '<code>.mo</code>' |
diff --git a/src/wp-admin/includes/class-plugin-installer-skin.php b/src/wp-admin/includes/class-plugin-installer-skin.php
index b4d2574451..1d6dd01876 100644
a
|
b
|
class Plugin_Installer_Skin extends WP_Upgrader_Skin { |
42 | 42 | */ |
43 | 43 | public function before() { |
44 | 44 | if ( ! empty( $this->api ) ) { |
| 45 | /* translators: 1: name of API, 2: version of API */ |
45 | 46 | $this->upgrader->strings['process_success'] = sprintf( __( 'Successfully installed the plugin <strong>%1$s %2$s</strong>.' ), $this->api->name, $this->api->version ); |
46 | 47 | } |
47 | 48 | } |
diff --git a/src/wp-admin/includes/class-theme-installer-skin.php b/src/wp-admin/includes/class-theme-installer-skin.php
index 9d1a7993f8..c73222bfdb 100644
a
|
b
|
class Theme_Installer_Skin extends WP_Upgrader_Skin { |
81 | 81 | ), |
82 | 82 | admin_url( 'customize.php' ) |
83 | 83 | ); |
| 84 | /* translators: %s: theme name */ |
84 | 85 | $install_actions['preview'] = '<a href="' . esc_url( $customize_url ) . '" class="hide-if-no-customize load-customize"><span aria-hidden="true">' . __( 'Live Preview' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Live Preview “%s”' ), $name ) . '</span></a>'; |
85 | 86 | } |
| 87 | /* translators: %s: theme name */ |
86 | 88 | $install_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink"><span aria-hidden="true">' . __( 'Activate' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Activate “%s”' ), $name ) . '</span></a>'; |
87 | 89 | |
88 | 90 | if ( is_network_admin() && current_user_can( 'manage_network_themes' ) ) { |
diff --git a/src/wp-admin/includes/class-theme-upgrader-skin.php b/src/wp-admin/includes/class-theme-upgrader-skin.php
index 68569321b6..e08bf77bf6 100644
a
|
b
|
class Theme_Upgrader_Skin extends WP_Upgrader_Skin { |
64 | 64 | ); |
65 | 65 | if ( get_stylesheet() == $stylesheet ) { |
66 | 66 | if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { |
| 67 | /* translators: %s: theme name */ |
67 | 68 | $update_actions['preview'] = '<a href="' . esc_url( $customize_url ) . '" class="hide-if-no-customize load-customize"><span aria-hidden="true">' . __( 'Customize' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Customize “%s”' ), $name ) . '</span></a>'; |
68 | 69 | } |
69 | 70 | } elseif ( current_user_can( 'switch_themes' ) ) { |
70 | 71 | if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { |
| 72 | /* translators: %s: theme name */ |
71 | 73 | $update_actions['preview'] = '<a href="' . esc_url( $customize_url ) . '" class="hide-if-no-customize load-customize"><span aria-hidden="true">' . __( 'Live Preview' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Live Preview “%s”' ), $name ) . '</span></a>'; |
72 | 74 | } |
| 75 | /* translators: %s: theme name */ |
73 | 76 | $update_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink"><span aria-hidden="true">' . __( 'Activate' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Activate “%s”' ), $name ) . '</span></a>'; |
74 | 77 | } |
75 | 78 | |
diff --git a/src/wp-admin/includes/class-theme-upgrader.php b/src/wp-admin/includes/class-theme-upgrader.php
index 1a561ab69c..a6de048f22 100644
a
|
b
|
class Theme_Upgrader extends WP_Upgrader { |
469 | 469 | if ( ! file_exists( $working_directory . 'style.css' ) ) { |
470 | 470 | return new WP_Error( |
471 | 471 | 'incompatible_archive_theme_no_style', $this->strings['incompatible_archive'], |
472 | | /* translators: %s: style.css */ |
473 | 472 | sprintf( |
| 473 | /* translators: %s: style.css */ |
474 | 474 | __( 'The theme is missing the %s stylesheet.' ), |
475 | 475 | '<code>style.css</code>' |
476 | 476 | ) |
… |
… |
class Theme_Upgrader extends WP_Upgrader { |
487 | 487 | if ( empty( $info['Name'] ) ) { |
488 | 488 | return new WP_Error( |
489 | 489 | 'incompatible_archive_theme_no_name', $this->strings['incompatible_archive'], |
490 | | /* translators: %s: style.css */ |
491 | 490 | sprintf( |
| 491 | /* translators: %s: style.css */ |
492 | 492 | __( 'The %s stylesheet doesn’t contain a valid theme header.' ), |
493 | 493 | '<code>style.css</code>' |
494 | 494 | ) |
… |
… |
class Theme_Upgrader extends WP_Upgrader { |
499 | 499 | if ( empty( $info['Template'] ) && ! file_exists( $working_directory . 'index.php' ) ) { |
500 | 500 | return new WP_Error( |
501 | 501 | 'incompatible_archive_theme_no_index', $this->strings['incompatible_archive'], |
502 | | /* translators: %s: index.php */ |
503 | 502 | sprintf( |
| 503 | /* translators: %s: index.php */ |
504 | 504 | __( 'The theme is missing the %s file.' ), |
505 | 505 | '<code>index.php</code>' |
506 | 506 | ) |
diff --git a/src/wp-admin/includes/class-walker-nav-menu-checklist.php b/src/wp-admin/includes/class-walker-nav-menu-checklist.php
index 881e9e7192..994cc040f3 100644
a
|
b
|
class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu { |
95 | 95 | /** This filter is documented in wp-includes/post-template.php */ |
96 | 96 | $title = apply_filters( 'the_title', $item->post_title, $item->ID ); |
97 | 97 | if ( ! empty( $item->front_or_home ) && _x( 'Home', 'nav menu home label' ) !== $title ) { |
| 98 | /* translators: %s: front page title */ |
98 | 99 | $title = sprintf( _x( 'Home: %s', 'nav menu front page title' ), $title ); |
99 | 100 | } |
100 | 101 | } |
diff --git a/src/wp-admin/includes/class-walker-nav-menu-edit.php b/src/wp-admin/includes/class-walker-nav-menu-edit.php
index d53c0c8988..bd27724e48 100644
a
|
b
|
class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { |
217 | 217 | <div class="menu-item-actions description-wide submitbox"> |
218 | 218 | <?php if ( 'custom' != $item->type && $original_title !== false ) : ?> |
219 | 219 | <p class="link-to-original"> |
220 | | <?php printf( __( 'Original: %s' ), '<a href="' . esc_attr( $item->url ) . '">' . esc_html( $original_title ) . '</a>' ); ?> |
| 220 | <?php |
| 221 | /* translators: %s: original title */ |
| 222 | printf( __( 'Original: %s' ), '<a href="' . esc_attr( $item->url ) . '">' . esc_html( $original_title ) . '</a>' ); |
| 223 | ?> |
221 | 224 | </p> |
222 | 225 | <?php endif; ?> |
223 | 226 | <a class="item-delete submitdelete deletion" id="delete-<?php echo $item_id; ?>" href=" |
diff --git a/src/wp-admin/includes/class-wp-automatic-updater.php b/src/wp-admin/includes/class-wp-automatic-updater.php
index 59b16a59e8..c8b1f1e1ed 100644
a
|
b
|
class WP_Automatic_Updater { |
307 | 307 | $upgrader_item = $item; |
308 | 308 | switch ( $type ) { |
309 | 309 | case 'core': |
| 310 | /* translators: %s: WordPress version */ |
310 | 311 | $skin->feedback( __( 'Updating to WordPress %s' ), $item->version ); |
| 312 | /* translators: %s: WordPress version */ |
311 | 313 | $item_name = sprintf( __( 'WordPress %s' ), $item->version ); |
312 | 314 | break; |
313 | 315 | case 'theme': |
314 | 316 | $upgrader_item = $item->theme; |
315 | 317 | $theme = wp_get_theme( $upgrader_item ); |
316 | 318 | $item_name = $theme->Get( 'Name' ); |
| 319 | /* translators: %s: Theme name */ |
317 | 320 | $skin->feedback( __( 'Updating theme: %s' ), $item_name ); |
318 | 321 | break; |
319 | 322 | case 'plugin': |
320 | 323 | $upgrader_item = $item->plugin; |
321 | 324 | $plugin_data = get_plugin_data( $context . '/' . $upgrader_item ); |
322 | 325 | $item_name = $plugin_data['Name']; |
| 326 | /* translators: %s: Plugin name */ |
323 | 327 | $skin->feedback( __( 'Updating plugin: %s' ), $item_name ); |
324 | 328 | break; |
325 | 329 | case 'translation': |
326 | 330 | $language_item_name = $upgrader->get_name_for_update( $item ); |
| 331 | /* translators: %s: Name of language item */ |
327 | 332 | $item_name = sprintf( __( 'Translations for %s' ), $language_item_name ); |
| 333 | /* translators: 1: Name of language item, 2: Language */ |
328 | 334 | $skin->feedback( sprintf( __( 'Updating translations for %1$s (%2$s)…' ), $language_item_name, $item->language ) ); |
329 | 335 | break; |
330 | 336 | } |
… |
… |
class WP_Automatic_Updater { |
659 | 665 | |
660 | 666 | switch ( $type ) { |
661 | 667 | case 'success': |
| 668 | /* translators: 1: Home URL, 2: WordPress version */ |
662 | 669 | $body .= sprintf( __( 'Howdy! Your site at %1$s has been updated automatically to WordPress %2$s.' ), home_url(), $core_update->current ); |
663 | 670 | $body .= "\n\n"; |
664 | 671 | if ( ! $newer_version_available ) { |
… |
… |
class WP_Automatic_Updater { |
667 | 674 | |
668 | 675 | // Can only reference the About screen if their update was successful. |
669 | 676 | list( $about_version ) = explode( '-', $core_update->current, 2 ); |
| 677 | /* translators: %s: WordPress core version */ |
670 | 678 | $body .= sprintf( __( 'For more on version %s, see the About WordPress screen:' ), $about_version ); |
671 | 679 | $body .= "\n" . admin_url( 'about.php' ); |
672 | 680 | |
673 | 681 | if ( $newer_version_available ) { |
| 682 | /* translators: %s: WordPress core latest version */ |
674 | 683 | $body .= "\n\n" . sprintf( __( 'WordPress %s is also now available.' ), $next_user_core_update->current ) . ' '; |
675 | 684 | $body .= __( 'Updating is easy and only takes a few moments:' ); |
676 | 685 | $body .= "\n" . network_admin_url( 'update-core.php' ); |
… |
… |
class WP_Automatic_Updater { |
680 | 689 | |
681 | 690 | case 'fail': |
682 | 691 | case 'manual': |
| 692 | /* translators: 1: Home URL, 2: WordPress core latest version */ |
683 | 693 | $body .= sprintf( __( 'Please update your site at %1$s to WordPress %2$s.' ), home_url(), $next_user_core_update->current ); |
684 | 694 | |
685 | 695 | $body .= "\n\n"; |
… |
… |
class WP_Automatic_Updater { |
696 | 706 | |
697 | 707 | case 'critical': |
698 | 708 | if ( $newer_version_available ) { |
| 709 | /* translators: 1: Home URL, 2: WordPress core latest version */ |
699 | 710 | $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 ); |
700 | 711 | } else { |
| 712 | /* translators: 1: Home URL, 2: Core update version */ |
701 | 713 | $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 ); |
702 | 714 | } |
703 | 715 | |
… |
… |
class WP_Automatic_Updater { |
711 | 723 | $critical_support = 'critical' === $type && ! empty( $core_update->support_email ); |
712 | 724 | if ( $critical_support ) { |
713 | 725 | // Support offer if available. |
| 726 | /* translators: %s: Support e-mail */ |
714 | 727 | $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 ); |
715 | 728 | } else { |
716 | 729 | // Add a note about the support forums. |
… |
… |
class WP_Automatic_Updater { |
737 | 750 | |
738 | 751 | if ( 'critical' == $type && is_wp_error( $result ) ) { |
739 | 752 | $body .= "\n***\n\n"; |
| 753 | /* translators: %s: WordPress version */ |
740 | 754 | $body .= sprintf( __( 'Your site was running version %s.' ), get_bloginfo( 'version' ) ); |
741 | 755 | $body .= ' ' . __( 'We have some data that describes the error your site encountered.' ); |
742 | 756 | $body .= ' ' . __( 'Your hosting company, support forum volunteers, or a friendly developer may be able to use this information to help you:' ); |
… |
… |
class WP_Automatic_Updater { |
754 | 768 | continue; |
755 | 769 | } |
756 | 770 | $error_code = $error->get_error_code(); |
| 771 | /* translators: %s: Error code */ |
757 | 772 | $body .= "\n\n" . sprintf( __( 'Error code: %s' ), $error_code ); |
758 | 773 | if ( 'rollback_was_required' == $error_code ) { |
759 | 774 | continue; |
… |
… |
class WP_Automatic_Updater { |
812 | 827 | $body = array(); |
813 | 828 | $failures = 0; |
814 | 829 | |
| 830 | /* translators: %s: Network home URL */ |
815 | 831 | $body[] = sprintf( __( 'WordPress site: %s' ), network_home_url( '/' ) ); |
816 | 832 | |
817 | 833 | // Core |
818 | 834 | if ( isset( $this->update_results['core'] ) ) { |
819 | 835 | $result = $this->update_results['core'][0]; |
820 | 836 | if ( $result->result && ! is_wp_error( $result->result ) ) { |
| 837 | /* translators: %s: WordPress core version */ |
821 | 838 | $body[] = sprintf( __( 'SUCCESS: WordPress was successfully updated to %s' ), $result->name ); |
822 | 839 | } else { |
| 840 | /* translators: %s: WordPress core version */ |
823 | 841 | $body[] = sprintf( __( 'FAILED: WordPress failed to update to %s' ), $result->name ); |
824 | 842 | $failures++; |
825 | 843 | } |
… |
… |
class WP_Automatic_Updater { |
841 | 859 | |
842 | 860 | $body[] = $messages[ $type ]; |
843 | 861 | foreach ( wp_list_pluck( $success_items, 'name' ) as $name ) { |
| 862 | /* translators: %s: name of plugin / theme / translations */ |
844 | 863 | $body[] = ' * ' . sprintf( __( 'SUCCESS: %s' ), $name ); |
845 | 864 | } |
846 | 865 | } |
… |
… |
class WP_Automatic_Updater { |
855 | 874 | $body[] = $messages[ $type ]; |
856 | 875 | foreach ( $this->update_results[ $type ] as $item ) { |
857 | 876 | if ( ! $item->result || is_wp_error( $item->result ) ) { |
| 877 | /* translators: %s: name of plugin / theme / translations */ |
858 | 878 | $body[] = ' * ' . sprintf( __( 'FAILED: %s' ), $item->name ); |
859 | 879 | $failures++; |
860 | 880 | } |
… |
… |
Thanks! -- The WordPress Team" |
881 | 901 | ); |
882 | 902 | $body[] = ''; |
883 | 903 | |
| 904 | /* translators: %s: site title */ |
884 | 905 | $subject = sprintf( __( '[%s] There were failures during background updates' ), $site_title ); |
885 | 906 | } else { |
| 907 | /* translators: %s: site title */ |
886 | 908 | $subject = sprintf( __( '[%s] Background updates have finished' ), $site_title ); |
887 | 909 | } |
888 | 910 | |