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.php

    r31200 r31941  
    414414        $num_keys_salts = count( $keys_salts );
    415415?>
    416     <p><?php
    417         echo _n( 'This unique authentication key is also missing from your <code>wp-config.php</code> file.', 'These unique authentication keys are also missing from your <code>wp-config.php</code> file.', $num_keys_salts ); ?> <?php _e( 'To make your installation more secure, you should also add:' ) ?></p>
     416    <p>
     417        <?php
     418            if ( 1 == $num_keys_salts ) {
     419                _e( 'This unique authentication key is also missing from your <code>wp-config.php</code> file.' );
     420            } else {
     421                _e( 'These unique authentication keys are also missing from your <code>wp-config.php</code> file.' );
     422            }
     423        ?>
     424        <?php _e( 'To make your installation more secure, you should also add:' ); ?>
     425    </p>
    418426    <textarea class="code" readonly="readonly" cols="100" rows="<?php echo $num_keys_salts; ?>"><?php echo esc_textarea( $keys_salts_str ); ?></textarea>
    419427<?php
Note: See TracChangeset for help on using the changeset viewer.