Make WordPress Core


Ignore:
Timestamp:
04/08/2022 12:01:18 AM (2 years ago)
Author:
SergeyBiryukov
Message:

I18N: Add missing translator comment for application password helper text for Super Admins.

Follow-up to [53101].

See #53234.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/authorize-application.php

    r53101 r53102  
    162162            $blogs       = get_blogs_of_user( $user->ID, true );
    163163            $blogs_count = count( $blogs );
     164
    164165            if ( $blogs_count > 1 ) {
    165166                ?>
     
    167168                    <?php
    168169                    /* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */
    169                     $msg_fmt = _n(
     170                    $message = _n(
    170171                        'This will grant access to <a href="%1$s">the %2$s site in this installation that you have permissions on</a>.',
    171172                        'This will grant access to <a href="%1$s">all %2$s sites in this installation that you have permissions on</a>.',
    172173                        $blogs_count
    173174                    );
     175
    174176                    if ( is_super_admin() ) {
    175                         $msg_fmt  = _n(
     177                        /* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */
     178                        $message = _n(
    176179                            'This will grant access to <a href="%1$s">the %2$s site on the network as you have Super Admin rights</a>.',
    177180                            'This will grant access to <a href="%1$s">all %2$s sites on the network as you have Super Admin rights</a>.',
     
    179182                        );
    180183                    }
     184
    181185                    printf(
    182                         $msg_fmt,
     186                        $message,
    183187                        admin_url( 'my-sites.php' ),
    184188                        number_format_i18n( $blogs_count )
Note: See TracChangeset for help on using the changeset viewer.