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/jkw.php

    r6423 r6430  
    8585        } else {
    8686            $count = count($metakeys);
    87             echo '<p>' . sprintf( __('Done! <strong>%s</strong> posts with tags were read.'), $count ) . '<br /></p>';
     87            echo '<p>' . sprintf( __ngettext('Done! <strong>%s</strong> post with tags were read.', 'Done! <strong>%s</strong> posts with tags were read.', $count), $count ) . '<br /></p>';
    8888            echo '<ul>';
    8989            foreach ( $metakeys as $post_meta ) {
     
    126126        } else {
    127127            $count = count($metakeys);
    128             echo '<p>' . sprintf( __('Done! <strong>%s</strong> tags were read.'), $count ) . '<br /></p>';
     128            echo '<p>' . sprintf( __ngettext('Done! <strong>%s</strong> tag were read.', 'Done! <strong>%s</strong> tags were read.', $count), $count ) . '<br /></p>';
    129129            echo '<ul>';
    130130            foreach ( $metakeys as $post_meta ) {
Note: See TracChangeset for help on using the changeset viewer.