Make WordPress Core


Ignore:
Timestamp:
12/20/2007 05:05:06 PM (17 years ago)
Author:
ryan
Message:

Use ngettext() for plurals. Props darkdragon. see #4865

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r6400 r6430  
    632632    $notify_message .= sprintf( __('Delete it: %s'), get_option('siteurl')."/wp-admin/comment.php?action=cdc&c=$comment_id" ) . "\r\n";
    633633    $notify_message .= sprintf( __('Spam it: %s'), get_option('siteurl')."/wp-admin/comment.php?action=cdc&dt=spam&c=$comment_id" ) . "\r\n";
    634     $notify_message .= sprintf( __('Currently %s comments are waiting for approval. Please visit the moderation panel:'), $comments_waiting ) . "\r\n";
     634    $strCommentsPending = sprintf( __ngettext('%s comment', '%s comments', $comments_waiting), $comments_waiting );
     635    $notify_message .= sprintf( __('Currently %s are waiting for approval. Please visit the moderation panel:'), $strCommentsPending ) . "\r\n";
    635636    $notify_message .= get_option('siteurl') . "/wp-admin/moderation.php\r\n";
    636637
Note: See TracChangeset for help on using the changeset viewer.