WordPress.org

Make WordPress Core

Ticket #44360: 44360-wp-admin-includes-dir.patch

File 44360-wp-admin-includes-dir.patch, 21.3 KB (added by flipkeijzer, 17 months ago)

44360-wp-admin-includes-dir

  • src/wp-admin/includes/ajax-actions.php

    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 ) { 
    390390                                        'time'                 => $time,
    391391                                        'in_moderation'        => $counts->moderated,
    392392                                        'i18n_comments_text'   => sprintf(
     393                                                /* translators: %s: number of comments approved */
    393394                                                _n( '%s Comment', '%s Comments', $counts->approved ),
    394395                                                number_format_i18n( $counts->approved )
    395396                                        ),
    396397                                        'i18n_moderation_text' => sprintf(
     398                                                /* translators: %s: number of comments in moderation */
    397399                                                _nx( '%s in moderation', '%s in moderation', $counts->moderated, 'comments' ),
    398400                                                number_format_i18n( $counts->moderated )
    399401                                        ),
    function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) { 
    452454                        'supplemental' => array(
    453455                                'status'           => $comment ? $comment->comment_approved : '',
    454456                                'postId'           => $comment ? $comment->comment_post_ID : '',
     457                                /* translators: %s: number of comments */
    455458                                'total_items_i18n' => sprintf( _n( '%s item', '%s items', $total ), number_format_i18n( $total ) ),
    456459                                'total_pages'      => ceil( $total / $per_page ),
    457460                                'total_pages_i18n' => number_format_i18n( ceil( $total / $per_page ) ),
    function wp_ajax_dim_comment() { 
    833836                $x = new WP_Ajax_Response(
    834837                        array(
    835838                                'what' => 'comment',
     839                                /* translators: %d: comment ID */
    836840                                'id'   => new WP_Error( 'invalid_comment', sprintf( __( 'Comment %d does not exist' ), $id ) ),
    837841                        )
    838842                );
    function wp_ajax_replyto_comment( $action ) { 
    12101214        $response['supplemental'] = array(
    12111215                'in_moderation'        => $counts->moderated,
    12121216                'i18n_comments_text'   => sprintf(
     1217                        /* translators: $s: number of comments approved */
    12131218                        _n( '%s Comment', '%s Comments', $counts->approved ),
    12141219                        number_format_i18n( $counts->approved )
    12151220                ),
    12161221                'i18n_moderation_text' => sprintf(
     1222                        /* translators: $s: number of comments moderated */
    12171223                        _nx( '%s in moderation', '%s in moderation', $counts->moderated, 'comments' ),
    12181224                        number_format_i18n( $counts->moderated )
    12191225                ),
    function wp_ajax_inline_save() { 
    18071813        if ( $last = wp_check_post_lock( $post_ID ) ) {
    18081814                $last_user      = get_userdata( $last );
    18091815                $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                );
    18111823                wp_die();
    18121824        }
    18131825
    function wp_ajax_wp_fullscreen_save_post() { 
    25032515
    25042516        if ( $last_id = get_post_meta( $post_id, '_edit_last', true ) ) {
    25052517                $last_user   = get_userdata( $last_id );
     2518                /* translators: 1: display_name of last user, 2: date of last edit, 3: time of last edit. */
    25062519                $last_edited = sprintf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), $last_date, $last_time );
    25072520        } else {
     2521                /* translators: 1: date of last edit, 2: time of last edit. */
    25082522                $last_edited = sprintf( __( 'Last edited on %1$s at %2$s' ), $last_date, $last_time );
    25092523        }
    25102524
    function wp_ajax_parse_embed() { 
    33253339                wp_send_json_error(
    33263340                        array(
    33273341                                'type'    => 'not-embeddable',
     3342                                /* translators: %s: URL which cannot be embedded, between code tags */
    33283343                                'message' => sprintf( __( '%s failed to embed.' ), '<code>' . esc_html( $url ) . '</code>' ),
    33293344                        )
    33303345                );
  • src/wp-admin/includes/bookmark.php

    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() { 
    319319
    320320        if ( $really_can_manage_links && current_user_can( 'install_plugins' ) ) {
    321321                $link = network_admin_url( 'plugin-install.php?tab=search&amp;s=Link+Manager' );
     322                /* translators: %s: URL of link manager plugin */
    322323                wp_die( sprintf( __( 'If you are looking to use the link manager, please install the <a href="%s">Link Manager</a> plugin.' ), $link ) );
    323324        }
    324325
  • src/wp-admin/includes/class-bulk-plugin-upgrader-skin.php

    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 { 
    2020
    2121        public function add_strings() {
    2222                parent::add_strings();
     23                /* translators: 1: name of plugin being updated, 2: number of updating plugin, 3: total number of plugins being updated */
    2324                $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)' );
    2425        }
    2526
  • src/wp-admin/includes/class-bulk-theme-upgrader-skin.php

    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 { 
    2020
    2121        public function add_strings() {
    2222                parent::add_strings();
     23                /* translators: 1: name of theme being updated, 2: number of updating themes, 3: total number of themes being updated */
    2324                $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Theme %1$s (%2$d/%3$d)' );
    2425        }
    2526
  • src/wp-admin/includes/class-language-pack-upgrader-skin.php

    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 { 
    4747
    4848                echo '<div class="update-messages lp-show-latest">';
    4949
     50                /* translators: 1: name of project, 2: language */
    5051                printf( '<h2>' . __( 'Updating translations for %1$s (%2$s)&#8230;' ) . '</h2>', $name, $this->language_update->language );
    5152        }
    5253
  • src/wp-admin/includes/class-language-pack-upgrader.php

    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 { 
    338338                if ( ! $mo || ! $po ) {
    339339                        return new WP_Error(
    340340                                'incompatible_archive_pomo', $this->strings['incompatible_archive'],
    341                                 /* translators: 1: .po, 2: .mo */
    342341                                sprintf(
     342                                        /* translators: 1: .po, 2: .mo */
    343343                                        __( 'The language pack is missing either the %1$s or %2$s files.' ),
    344344                                        '<code>.po</code>',
    345345                                        '<code>.mo</code>'
  • src/wp-admin/includes/class-plugin-installer-skin.php

    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 { 
    4242         */
    4343        public function before() {
    4444                if ( ! empty( $this->api ) ) {
     45                        /* translators: 1: name of API, 2: version of API */
    4546                        $this->upgrader->strings['process_success'] = sprintf( __( 'Successfully installed the plugin <strong>%1$s %2$s</strong>.' ), $this->api->name, $this->api->version );
    4647                }
    4748        }
  • src/wp-admin/includes/class-theme-installer-skin.php

    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 { 
    8181                                ),
    8282                                admin_url( 'customize.php' )
    8383                        );
     84                        /* translators: %s: theme name */
    8485                        $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 &#8220;%s&#8221;' ), $name ) . '</span></a>';
    8586                }
     87                /* translators: %s: theme name */
    8688                $install_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink"><span aria-hidden="true">' . __( 'Activate' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Activate &#8220;%s&#8221;' ), $name ) . '</span></a>';
    8789
    8890                if ( is_network_admin() && current_user_can( 'manage_network_themes' ) ) {
  • src/wp-admin/includes/class-theme-upgrader-skin.php

    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 { 
    6464                        );
    6565                        if ( get_stylesheet() == $stylesheet ) {
    6666                                if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
     67                                        /* translators: %s: theme name */
    6768                                        $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 &#8220;%s&#8221;' ), $name ) . '</span></a>';
    6869                                }
    6970                        } elseif ( current_user_can( 'switch_themes' ) ) {
    7071                                if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
     72                                        /* translators: %s: theme name */
    7173                                        $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 &#8220;%s&#8221;' ), $name ) . '</span></a>';
    7274                                }
     75                                /* translators: %s: theme name */
    7376                                $update_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink"><span aria-hidden="true">' . __( 'Activate' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Activate &#8220;%s&#8221;' ), $name ) . '</span></a>';
    7477                        }
    7578
  • src/wp-admin/includes/class-theme-upgrader.php

    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 { 
    469469                if ( ! file_exists( $working_directory . 'style.css' ) ) {
    470470                        return new WP_Error(
    471471                                'incompatible_archive_theme_no_style', $this->strings['incompatible_archive'],
    472                                 /* translators: %s: style.css */
    473472                                sprintf(
     473                                        /* translators: %s: style.css */
    474474                                        __( 'The theme is missing the %s stylesheet.' ),
    475475                                        '<code>style.css</code>'
    476476                                )
    class Theme_Upgrader extends WP_Upgrader { 
    487487                if ( empty( $info['Name'] ) ) {
    488488                        return new WP_Error(
    489489                                'incompatible_archive_theme_no_name', $this->strings['incompatible_archive'],
    490                                 /* translators: %s: style.css */
    491490                                sprintf(
     491                                        /* translators: %s: style.css */
    492492                                        __( 'The %s stylesheet doesn&#8217;t contain a valid theme header.' ),
    493493                                        '<code>style.css</code>'
    494494                                )
    class Theme_Upgrader extends WP_Upgrader { 
    499499                if ( empty( $info['Template'] ) && ! file_exists( $working_directory . 'index.php' ) ) {
    500500                        return new WP_Error(
    501501                                'incompatible_archive_theme_no_index', $this->strings['incompatible_archive'],
    502                                 /* translators: %s: index.php */
    503502                                sprintf(
     503                                        /* translators: %s: index.php */
    504504                                        __( 'The theme is missing the %s file.' ),
    505505                                        '<code>index.php</code>'
    506506                                )
  • src/wp-admin/includes/class-walker-nav-menu-checklist.php

    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 { 
    9595                        /** This filter is documented in wp-includes/post-template.php */
    9696                        $title = apply_filters( 'the_title', $item->post_title, $item->ID );
    9797                        if ( ! empty( $item->front_or_home ) && _x( 'Home', 'nav menu home label' ) !== $title ) {
     98                                /* translators: %s: front page title */
    9899                                $title = sprintf( _x( 'Home: %s', 'nav menu front page title' ), $title );
    99100                        }
    100101                }
  • src/wp-admin/includes/class-walker-nav-menu-edit.php

    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 { 
    217217                                <div class="menu-item-actions description-wide submitbox">
    218218                                        <?php if ( 'custom' != $item->type && $original_title !== false ) : ?>
    219219                                                <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                                                        ?>
    221224                                                </p>
    222225                                        <?php endif; ?>
    223226                                        <a class="item-delete submitdelete deletion" id="delete-<?php echo $item_id; ?>" href="
  • src/wp-admin/includes/class-wp-automatic-updater.php

    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 { 
    307307                $upgrader_item = $item;
    308308                switch ( $type ) {
    309309                        case 'core':
     310                                /* translators: %s: WordPress version */
    310311                                $skin->feedback( __( 'Updating to WordPress %s' ), $item->version );
     312                                /* translators: %s: WordPress version */
    311313                                $item_name = sprintf( __( 'WordPress %s' ), $item->version );
    312314                                break;
    313315                        case 'theme':
    314316                                $upgrader_item = $item->theme;
    315317                                $theme         = wp_get_theme( $upgrader_item );
    316318                                $item_name     = $theme->Get( 'Name' );
     319                                /* translators: %s: Theme name */
    317320                                $skin->feedback( __( 'Updating theme: %s' ), $item_name );
    318321                                break;
    319322                        case 'plugin':
    320323                                $upgrader_item = $item->plugin;
    321324                                $plugin_data   = get_plugin_data( $context . '/' . $upgrader_item );
    322325                                $item_name     = $plugin_data['Name'];
     326                                /* translators: %s: Plugin name */
    323327                                $skin->feedback( __( 'Updating plugin: %s' ), $item_name );
    324328                                break;
    325329                        case 'translation':
    326330                                $language_item_name = $upgrader->get_name_for_update( $item );
     331                                /* translators: %s: Name of language item */
    327332                                $item_name          = sprintf( __( 'Translations for %s' ), $language_item_name );
     333                                /* translators: 1: Name of language item, 2: Language */
    328334                                $skin->feedback( sprintf( __( 'Updating translations for %1$s (%2$s)&#8230;' ), $language_item_name, $item->language ) );
    329335                                break;
    330336                }
    class WP_Automatic_Updater { 
    659665
    660666                switch ( $type ) {
    661667                        case 'success':
     668                                /* translators: 1: Home URL, 2: WordPress version */
    662669                                $body .= sprintf( __( 'Howdy! Your site at %1$s has been updated automatically to WordPress %2$s.' ), home_url(), $core_update->current );
    663670                                $body .= "\n\n";
    664671                                if ( ! $newer_version_available ) {
    class WP_Automatic_Updater { 
    667674
    668675                                // Can only reference the About screen if their update was successful.
    669676                                list( $about_version ) = explode( '-', $core_update->current, 2 );
     677                                /* translators: %s: WordPress core version */
    670678                                $body                 .= sprintf( __( 'For more on version %s, see the About WordPress screen:' ), $about_version );
    671679                                $body                 .= "\n" . admin_url( 'about.php' );
    672680
    673681                                if ( $newer_version_available ) {
     682                                        /* translators: %s: WordPress core latest version */
    674683                                        $body .= "\n\n" . sprintf( __( 'WordPress %s is also now available.' ), $next_user_core_update->current ) . ' ';
    675684                                        $body .= __( 'Updating is easy and only takes a few moments:' );
    676685                                        $body .= "\n" . network_admin_url( 'update-core.php' );
    class WP_Automatic_Updater { 
    680689
    681690                        case 'fail':
    682691                        case 'manual':
     692                                /* translators: 1: Home URL, 2: WordPress core latest version */
    683693                                $body .= sprintf( __( 'Please update your site at %1$s to WordPress %2$s.' ), home_url(), $next_user_core_update->current );
    684694
    685695                                $body .= "\n\n";
    class WP_Automatic_Updater { 
    696706
    697707                        case 'critical':
    698708                                if ( $newer_version_available ) {
     709                                        /* translators: 1: Home URL, 2: WordPress core latest version */
    699710                                        $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 );
    700711                                } else {
     712                                        /* translators: 1: Home URL, 2: Core update version */
    701713                                        $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 );
    702714                                }
    703715
    class WP_Automatic_Updater { 
    711723                $critical_support = 'critical' === $type && ! empty( $core_update->support_email );
    712724                if ( $critical_support ) {
    713725                        // Support offer if available.
     726                        /* translators: %s: Support e-mail */
    714727                        $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 );
    715728                } else {
    716729                        // Add a note about the support forums.
    class WP_Automatic_Updater { 
    737750
    738751                if ( 'critical' == $type && is_wp_error( $result ) ) {
    739752                        $body .= "\n***\n\n";
     753                        /* translators: %s: WordPress version */
    740754                        $body .= sprintf( __( 'Your site was running version %s.' ), get_bloginfo( 'version' ) );
    741755                        $body .= ' ' . __( 'We have some data that describes the error your site encountered.' );
    742756                        $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 { 
    754768                                        continue;
    755769                                }
    756770                                $error_code = $error->get_error_code();
     771                                /* translators: %s: Error code */
    757772                                $body      .= "\n\n" . sprintf( __( 'Error code: %s' ), $error_code );
    758773                                if ( 'rollback_was_required' == $error_code ) {
    759774                                        continue;
    class WP_Automatic_Updater { 
    812827                $body     = array();
    813828                $failures = 0;
    814829
     830                /* translators: %s: Network home URL */
    815831                $body[] = sprintf( __( 'WordPress site: %s' ), network_home_url( '/' ) );
    816832
    817833                // Core
    818834                if ( isset( $this->update_results['core'] ) ) {
    819835                        $result = $this->update_results['core'][0];
    820836                        if ( $result->result && ! is_wp_error( $result->result ) ) {
     837                                /* translators: %s: WordPress core version */
    821838                                $body[] = sprintf( __( 'SUCCESS: WordPress was successfully updated to %s' ), $result->name );
    822839                        } else {
     840                                /* translators: %s: WordPress core version */
    823841                                $body[] = sprintf( __( 'FAILED: WordPress failed to update to %s' ), $result->name );
    824842                                $failures++;
    825843                        }
    class WP_Automatic_Updater { 
    841859
    842860                                $body[] = $messages[ $type ];
    843861                                foreach ( wp_list_pluck( $success_items, 'name' ) as $name ) {
     862                                        /* translators: %s: name of plugin / theme / translations */
    844863                                        $body[] = ' * ' . sprintf( __( 'SUCCESS: %s' ), $name );
    845864                                }
    846865                        }
    class WP_Automatic_Updater { 
    855874                                $body[] = $messages[ $type ];
    856875                                foreach ( $this->update_results[ $type ] as $item ) {
    857876                                        if ( ! $item->result || is_wp_error( $item->result ) ) {
     877                                                /* translators: %s: name of plugin / theme / translations */
    858878                                                $body[] = ' * ' . sprintf( __( 'FAILED: %s' ), $item->name );
    859879                                                $failures++;
    860880                                        }
    Thanks! -- The WordPress Team" 
    881901                        );
    882902                        $body[] = '';
    883903
     904                        /* translators: %s: site title */
    884905                        $subject = sprintf( __( '[%s] There were failures during background updates' ), $site_title );
    885906                } else {
     907                        /* translators: %s: site title */
    886908                        $subject = sprintf( __( '[%s] Background updates have finished' ), $site_title );
    887909                }
    888910