Plugins: Don't use _n() for singular/plural strings which have no placeholder for a number.

Fixes #33239.
See #28502.

git-svn-id: https://develop.svn.wordpress.org/trunk@34521 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2015-09-24 21:06:50 +00:00
parent 55bb8b8c0b
commit d1fbe56dfc

View File

@ -444,10 +444,12 @@ if ( ! empty( $invalid ) ) {
<?php else : ?>
<div id="message" class="updated notice is-dismissible">
<p>
<?php echo _n(
'The selected plugin has been <strong>deleted</strong>.',
'The selected plugins have been <strong>deleted</strong>.',
$plugins_to_delete );
<?php
if ( 1 == $plugins_to_delete ) {
_e( 'The selected plugin has been <strong>deleted</strong>.' );
} else {
_e( 'The selected plugins have been <strong>deleted</strong>.' );
}
?>
</p>
</div>