Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#6993 closed defect (bug) (fixed)

Incorrect singular/plural form in string

Reported by: thenlich Owned by:
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.5.1
Component: I18N Keywords:
Focuses: Cc:


In wp-includes/pluggable.php:897 there is a message:

	$strCommentsPending = sprintf( __ngettext('%s comment', '%s comments', $comments_waiting), $comments_waiting );
	$notify_message .= sprintf( __('Currently %s are waiting for approval. Please visit the moderation panel:'), $strCommentsPending ) . "\r\n";

Which expands to "Currently 1 comment are waiting..." when $comments_waiting is 1, it should be "Currently 1 comment is waiting..."

This is also a problem of how to translate this.

Attachments (1)

pluggable-transl.patch (1.1 KB) - added by thenlich 10 years ago.
Patch to fix message in pluggable.php

Download all attachments as: .zip

Change History (4)

10 years ago

Patch to fix message in pluggable.php

#1 @thenlich
10 years ago

  • Milestone changed from 2.7 to 2.5.2

#2 @ryan
10 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [7996]) gettext fix from thenlich. fixes #6993 for trunk

#3 @ryan
10 years ago

  • Milestone changed from 2.5.2 to 2.6
Note: See TracTickets for help on using tickets.