WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/20/2009 07:35:16 PM (13 years ago)
Author:
ryan
Message:

Use _n(). Props nbachiyski. fixes #9111

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r10554 r10606  
    599599 */
    600600function default_topic_count_text( $count ) {
    601     return sprintf( __ngettext('%s topic', '%s topics', $count), number_format_i18n( $count ) );
     601    return sprintf( _n('%s topic', '%s topics', $count), number_format_i18n( $count ) );
    602602}
    603603
     
    639639    if ( !isset( $args['topic_count_text_callback'] ) && isset( $args['single_text'] ) && isset( $args['multiple_text'] ) ) {
    640640        $body = 'return sprintf (
    641             __ngettext('.var_export($args['single_text'], true).', '.var_export($args['multiple_text'], true).', $count),
     641            _n('.var_export($args['single_text'], true).', '.var_export($args['multiple_text'], true).', $count),
    642642            number_format_i18n( $count ));';
    643643        $args['topic_count_text_callback'] = create_function('$count', $body);
Note: See TracChangeset for help on using the changeset viewer.