Make WordPress Core


Ignore:
Timestamp:
12/21/2006 11:06:18 PM (18 years ago)
Author:
markjaquith
Message:

i18n fixes, logic cleanup, wording clarifications, and more from nbachiyski. fixes #3474

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/moderation.php

    r4655 r4658  
    7373    $spam     = (int) $_GET['spam'];
    7474    if ($approved) {
    75         if ('1' == $approved) {
    76             echo __("1 comment approved") . " <br/>\n";
    77         } else {
    78          echo sprintf(__("%s comments approved <br />"), $approved) . "\n";
    79         }
     75        printf(__ngettext('%s comment approved', '%s comments approved', $approved), $approved);
     76        echo "<br/>\n";
    8077    }
    8178    if ($deleted) {
    82         if ('1' == $deleted) {
    83             echo __("1 comment deleted") . " <br/>\n";
    84         } else {
    85             echo sprintf(__("%s comments deleted"), $deleted) . " <br/>\n";
    86         }
     79        printf(__ngettext('%s comment deleted', '%s comments deleted', $deleted), $deleted);
     80        echo "<br/>\n";
    8781    }
    8882    if ($spam) {
    89         if ('1' == $spam) {
    90             echo __("1 comment marked as spam") . " <br/>\n";
    91         } else {
    92             echo sprintf(__("%s comments marked as spam"), $spam) . " <br/>\n";
    93         }
     83        printf(__ngettext('%s comment marked as spam', '%s comments marked as spam', $spam), $spam);
     84        echo "<br/>\n";
    9485    }
    9586    if ($ignored) {
    96         if ('1' == $ignored) {
    97             echo __("1 comment unchanged") . " <br/>\n";
    98         } else {
    99             echo sprintf(__("%s comments unchanged"), $ignored) . " <br/>\n";
    100         }
     87        printf(__ngettext('%s comment unchanged', '%s comments unchanged', $ignored), $ignored);
     88        echo "<br/>\n";
    10189    }
    10290    echo "</p></div>\n";
Note: See TracChangeset for help on using the changeset viewer.