Make WordPress Core


Ignore:
Timestamp:
03/31/2015 06:44:46 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Decouple strings where the singular and plural form are not just the same string with different numbers, but essentially two different strings.

This allows for using proper plural forms in languages with more than two forms, and also resolves string conflicts when the same string is present in both singular and plural form.

fixes #28502.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/users.php

    r31696 r31941  
    2525    <h2><?php esc_html_e( 'Users' ); ?></h2>
    2626
    27     <?php if ( count( $users ) > 1 ) : ?>
     27    <?php if ( 1 == count( $users ) ) : ?>
     28        <p><?php _e( 'You have chosen to delete the user from all networks and sites.' ); ?></p>
     29    <?php else : ?>
    2830        <p><?php _e( 'You have chosen to delete the following users from all networks and sites.' ); ?></p>
    29     <?php else : ?>
    30         <p><?php _e( 'You have chosen to delete the user from all networks and sites.' ); ?></p>
    3131    <?php endif; ?>
    3232
     
    104104    do_action( 'delete_user_form', $current_user );
    105105
    106     if ( count( $users ) > 1 ) : ?>
     106    if ( 1 == count( $users ) ) : ?>
     107        <p><?php _e( 'Once you hit &#8220;Confirm Deletion&#8221;, the user will be permanently removed.' ); ?></p>
     108    <?php else : ?>
    107109        <p><?php _e( 'Once you hit &#8220;Confirm Deletion&#8221;, these users will be permanently removed.' ); ?></p>
    108     <?php else : ?>
    109         <p><?php _e( 'Once you hit &#8220;Confirm Deletion&#8221;, the user will be permanently removed.' ); ?></p>
    110110    <?php endif;
    111111
Note: See TracChangeset for help on using the changeset viewer.