WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 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:

Description

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 6 years ago.
Patch to fix message in pluggable.php

Download all attachments as: .zip

Change History (4)

thenlich6 years ago

Patch to fix message in pluggable.php

comment:1 thenlich6 years ago

  • Milestone changed from 2.7 to 2.5.2

comment:2 ryan6 years ago

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

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

comment:3 ryan6 years ago

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