[wp-trac] [WordPress Trac] #13651: Problem with plural form in comments_number
WordPress Trac
wp-trac at lists.automattic.com
Fri Dec 3 17:53:34 UTC 2010
#13651: Problem with plural form in comments_number
--------------------------+-------------------------------------------------
Reporter: pavelevap | Owner: nbachiyski
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.1
Component: I18N | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Comment(by nbachiyski):
I had do deprecate both {{{comments_number()}}} and
{{{comments_popup_link()}}}, because both used the pseudo-plural style.
They are replaced by {{{comments_number_text()}}},
{{{comments_number_link()}}} and their {{{get_*}}} counterparts.
Here are example usages:
{{{
comments_number_text( __( 'Zero Comments' ), _n_noop( 'One Comment', '%s
Comments' ) );
comments_number_link( __( 'Zero Comments', 'twentyten' ), _n_noop( 'One
Comment', '%s Comments', 'twentyten' ), __( 'Comments are as off as your
as my sense of humour' ), array( 'class' => 'my-css-class') );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13651#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list