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

    r6423 r6430  
    8585            $count = count($tags);
    8686
    87             echo '<p>' . sprintf( __('Done! <strong>%s</strong> tags were read.'), $count ) . '<br /></p>';
     87            echo '<p>' . sprintf( __ngettext('Done! <strong>%s</strong> tag were read.', 'Done! <strong>%s</strong> tags were read.', $count), $count ) . '<br /></p>';
    8888            echo '<p>' . __('The following tags were found:') . '</p>';
    8989
     
    137137            $count = count($posts);
    138138
    139             echo '<p>' . sprintf( __('Done! <strong>%s</strong> tag to post relationships were read.'), $count ) . '<br /></p>';
     139            echo '<p>' . sprintf( __ngettext('Done! <strong>%s</strong> tag to post relationships were read.', 'Done! <strong>%s</strong> tags to post relationships were read.', $count), $count ) . '<br /></p>';
    140140
    141141        }
     
    158158        $tags_added = $this->tag2post();
    159159
    160         echo '<p>' . sprintf( __('Done! <strong>%s</strong> tags were added!'), $tags_added ) . '<br /></p>';
     160        echo '<p>' . sprintf( __ngettext( 'Done! <strong>%s</strong> tag were added!', 'Done! <strong>%s</strong> tags were added!', $tags_added ), $tags_added ) . '<br /></p>';
    161161
    162162        echo '<form action="admin.php?import=utw&amp;step=4" method="post">';
Note: See TracChangeset for help on using the changeset viewer.