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-admin/import/greymatter.php

    r6125 r6430  
    273273                if ($numAddedComments > 0) {
    274274                    echo ': ';
    275                     printf(__('imported %d comment(s)'), $numAddedComments);
     275                printf(__('imported %s'), sprintf( __ngettext('%s comment', '%s comments', $numAddedComments) , $numAddedComments) );
    276276                }
    277277                $preExisting = $numComments - numAddedComments;
    278278                if ($preExisting > 0) {
    279279                    echo ' ';
    280                     printf(__('ignored %d pre-existing comments'), $preExisting);
     280                    printf(__('ignored %s'), sprintf( __ngettext( '%s pre-existing comment', '%s pre-existing comments', $preExisting ) , $preExisting) );
    281281                }
    282282            }
Note: See TracChangeset for help on using the changeset viewer.