Make WordPress Core


Ignore:
Timestamp:
04/08/2022 12:01:18 AM (3 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/user-edit.php

    r53101 r53102  
    743743                                    $blogs       = get_blogs_of_user( $user_id, true );
    744744                                    $blogs_count = count( $blogs );
     745
    745746                                    if ( $blogs_count > 1 ) :
    746747                                        ?>
     
    748749                                            <?php
    749750                                            /* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */
    750                                             $msg_fmt = _n(
     751                                            $message = _n(
    751752                                                'Application passwords grant access to <a href="%1$s">the %2$s site in this installation that you have permissions on</a>.',
    752753                                                'Application passwords grant access to <a href="%1$s">all %2$s sites in this installation that you have permissions on</a>.',
    753754                                                $blogs_count
    754755                                            );
     756
    755757                                            if ( is_super_admin( $user_id ) ) {
    756                                                 $msg_fmt = _n(
     758                                                /* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */
     759                                                $message = _n(
    757760                                                    'Application passwords grant access to <a href="%1$s">the %2$s site on the network as you have Super Admin rights</a>.',
    758761                                                    'Application passwords grant access to <a href="%1$s">all %2$s sites on the network as you have Super Admin rights</a>.',
     
    760763                                                );
    761764                                            }
     765
    762766                                            printf(
    763                                                 $msg_fmt,
     767                                                $message,
    764768                                                admin_url( 'my-sites.php' ),
    765769                                                number_format_i18n( $blogs_count )
Note: See TracChangeset for help on using the changeset viewer.