WordPress.org

Make WordPress Core

Ticket #44360: wp-admin-network.2.diff

File wp-admin-network.2.diff, 9.5 KB (added by niq1982, 17 months ago)

Fixes to translator comments in /wp-admin/network/ folder

  • src/wp-admin/network/menu.php

    diff --git a/src/wp-admin/network/menu.php b/src/wp-admin/network/menu.php
    index dbd77fd..58d8118 100644
    a b if ( current_user_can( 'update_core' ) ) { 
    2424
    2525$update_data = wp_get_update_data();
    2626if ( $update_data['counts']['total'] ) {
     27        /* translators: %s: the number of available updates to plugins */
    2728        $submenu['index.php'][10] = array( sprintf( __( 'Updates %s' ), "<span class='update-plugins count-{$update_data['counts']['total']}'><span class='update-count'>" . number_format_i18n( $update_data['counts']['total'] ) . '</span></span>' ), $cap, 'update-core.php' );
    2829} else {
    2930        $submenu['index.php'][10] = array( __( 'Updates' ), $cap, 'update-core.php' );
    $submenu['users.php'][5] = array( __( 'All Users' ), 'manage_network_users', 'u 
    4546$submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'create_users', 'user-new.php' );
    4647
    4748if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) {
     49        /* translators: %s: the number of available updates to themes */
    4850        $menu[15] = array( sprintf( __( 'Themes %s' ), "<span class='update-plugins count-{$update_data['counts']['themes']}'><span class='theme-count'>" . number_format_i18n( $update_data['counts']['themes'] ) . '</span></span>' ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' );
    4951} else {
    5052        $menu[15] = array( __( 'Themes' ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' );
    $submenu['themes.php'][10] = array( _x( 'Add New', 'theme' ), 'install_themes', 
    5456$submenu['themes.php'][15] = array( __( 'Theme Editor' ), 'edit_themes', 'theme-editor.php' );
    5557
    5658if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) {
     59        /* translators: %s: the number of available updates to plugins */
    5760        $menu[20] = array( sprintf( __( 'Plugins %s' ), "<span class='update-plugins count-{$update_data['counts']['plugins']}'><span class='plugin-count'>" . number_format_i18n( $update_data['counts']['plugins'] ) . '</span></span>' ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' );
    5861} else {
    5962        $menu[20] = array( __( 'Plugins' ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' );
  • src/wp-admin/network/settings.php

    diff --git a/src/wp-admin/network/settings.php b/src/wp-admin/network/settings.php
    index a15462a..38bccb1 100644
    a b if ( isset( $_GET['updated'] ) ) { 
    207207                                        <?php
    208208                                        if ( is_subdomain_install() ) {
    209209                                                echo '<p class="description">';
    210                                                 /* translators: 1: NOBLOGREDIRECT, 2: wp-config.php */
    211210                                                printf(
     211                                                        /* translators: 1: NOBLOGREDIRECT; 2: wp-config.php */
    212212                                                        __( 'If registration is disabled, please set %1$s in %2$s to a URL you will redirect visitors to if they visit a non-existent site.' ),
    213213                                                        '<code>NOBLOGREDIRECT</code>',
    214214                                                        '<code>wp-config.php</code>'
    if ( isset( $_GET['updated'] ) ) { 
    362362                        <tr>
    363363                                <th scope="row"><?php _e( 'Site upload space' ); ?></th>
    364364                                <td>
     365                                        <?php /* translators: %s: amount of megabytes to limit uploads to */ ?>
    365366                                        <label><input type="checkbox" id="upload_space_check_disabled" name="upload_space_check_disabled" value="0"<?php checked( (bool) get_site_option( 'upload_space_check_disabled' ), false ); ?>/> <?php printf( __( 'Limit total size of files uploaded to %s MB' ), '</label><label><input name="blog_upload_space" type="number" min="0" style="width: 100px" id="blog_upload_space" aria-describedby="blog-upload-space-desc" value="' . esc_attr( get_site_option( 'blog_upload_space', 100 ) ) . '" />' ); ?></label><br />
    366367                                        <p class="screen-reader-text" id="blog-upload-space-desc">
    367368                                                <?php _e( 'Size in megabytes' ); ?>
  • src/wp-admin/network/site-new.php

    diff --git a/src/wp-admin/network/site-new.php b/src/wp-admin/network/site-new.php
    index 70d9f1c..81802e0 100644
    a b if ( isset( $_REQUEST['action'] ) && 'add-site' == $_REQUEST['action'] ) { 
    5252
    5353                if ( in_array( $domain, $subdirectory_reserved_names ) ) {
    5454                        wp_die(
    55                                 /* translators: %s: reserved names list */
    5655                                sprintf(
     56                                        /* translators: %s: reserved names list */
    5757                                        __( 'The following words are reserved for use by WordPress functions and cannot be used as blog names: %s' ),
    5858                                        '<code>' . implode( '</code>, <code>', $subdirectory_reserved_names ) . '</code>'
    5959                                )
  • src/wp-admin/network/site-themes.php

    diff --git a/src/wp-admin/network/site-themes.php b/src/wp-admin/network/site-themes.php
    index 497de2a..b0ee208 100644
    a b if ( isset( $_GET['enabled'] ) ) { 
    190190        if ( 1 == $enabled ) {
    191191                $message = __( 'Theme enabled.' );
    192192        } else {
     193                /* translators: %s: amount of themes enabled in the network */
    193194                $message = _n( '%s theme enabled.', '%s themes enabled.', $enabled );
    194195        }
    195196        echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>';
    if ( isset( $_GET['enabled'] ) ) { 
    198199        if ( 1 == $disabled ) {
    199200                $message = __( 'Theme disabled.' );
    200201        } else {
     202                /* translators: %s: amount of themes disabled in the network */
    201203                $message = _n( '%s theme disabled.', '%s themes disabled.', $disabled );
    202204        }
    203205        echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>';
  • src/wp-admin/network/sites.php

    diff --git a/src/wp-admin/network/sites.php b/src/wp-admin/network/sites.php
    index 6c2de15..839aac1 100644
    a b if ( isset( $_GET['action'] ) ) { 
    6161
    6262        // A list of valid actions and their associated messaging for confirmation output.
    6363        $manage_actions = array(
     64                /* translators: %s:  URL of the site about to be activated */
    6465                'activateblog'   => __( 'You are about to activate the site %s.' ),
     66                /* translators: %s:  URL of the site about to be deactivated */
    6567                'deactivateblog' => __( 'You are about to deactivate the site %s.' ),
     68                /* translators: %s:  URL of the site about to be unarchived */
    6669                'unarchiveblog'  => __( 'You are about to unarchive the site %s.' ),
     70                /* translators: %s:  URL of the site about to be archived */
    6771                'archiveblog'    => __( 'You are about to archive the site %s.' ),
     72                /* translators: %s:  URL of the site about to be unspammed */
    6873                'unspamblog'     => __( 'You are about to unspam the site %s.' ),
     74                /* translators: %s:  URL of the site about to be marked as spam */
    6975                'spamblog'       => __( 'You are about to mark the site %s as spam.' ),
     76                /* translators: %s:  URL of the site about to be deleted */
    7077                'deleteblog'     => __( 'You are about to delete the site %s.' ),
     78                /* translators: %s:  URL of the site about to be marked as mature */
    7179                'unmatureblog'   => __( 'You are about to mark the site %s as mature.' ),
     80                /* translators: %s:  URL of the site about to be marked as not mature */
    7281                'matureblog'     => __( 'You are about to mark the site %s as not mature.' ),
    7382        );
    7483
    if ( isset( $_GET['action'] ) ) { 
    151160                                if ( ! current_user_can( 'delete_site', $site_id ) ) {
    152161                                        $site         = get_site( $site_id );
    153162                                        $site_address = untrailingslashit( $site->domain . $site->path );
    154 
     163                                        /* translators: %s:  URL of the site user is not allowed to delete */
    155164                                        wp_die( sprintf( __( 'Sorry, you are not allowed to delete the site %s.' ), $site_address ), 403 );
    156165                                }
    157166
  • src/wp-admin/network/themes.php

    diff --git a/src/wp-admin/network/themes.php b/src/wp-admin/network/themes.php
    index fbfa8b4..d037874 100644
    a b if ( isset( $_GET['enabled'] ) ) { 
    284284        if ( 1 == $enabled ) {
    285285                $message = __( 'Theme enabled.' );
    286286        } else {
     287                /* translators: %s: amount of themes enabled */
    287288                $message = _n( '%s theme enabled.', '%s themes enabled.', $enabled );
    288289        }
    289290        echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>';
    if ( isset( $_GET['enabled'] ) ) { 
    292293        if ( 1 == $disabled ) {
    293294                $message = __( 'Theme disabled.' );
    294295        } else {
     296                /* translators: %s: amount of themes disabled */
    295297                $message = _n( '%s theme disabled.', '%s themes disabled.', $disabled );
    296298        }
    297299        echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>';
    if ( isset( $_GET['enabled'] ) ) { 
    300302        if ( 1 == $deleted ) {
    301303                $message = __( 'Theme deleted.' );
    302304        } else {
     305                /* translators: %s: amount of themes deleted */
    303306                $message = _n( '%s theme deleted.', '%s themes deleted.', $deleted );
    304307        }
    305308        echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $deleted ) ) . '</p></div>';
  • src/wp-admin/network/users.php

    diff --git a/src/wp-admin/network/users.php b/src/wp-admin/network/users.php
    index 3ae8f6f..e9b6c07 100644
    a b if ( isset( $_GET['action'] ) ) { 
    7171                                                        case 'spam':
    7272                                                                $user = get_userdata( $user_id );
    7373                                                                if ( is_super_admin( $user->ID ) ) {
     74                                                                        /* translators: %s: user login name being modified */
    7475                                                                        wp_die( sprintf( __( 'Warning! User cannot be modified. The user %s is a network administrator.' ), esc_html( $user->user_login ) ) );
    7576                                                                }
    7677