Make WordPress Core


Ignore:
Timestamp:
12/20/2007 05:05:06 PM (18 years ago)
Author:
ryan
Message:

Use ngettext() for plurals. Props darkdragon. see #4865

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/stp.php

    r6423 r6430  
    7474            add_option('stpimp_posts', $posts);
    7575            $count = count($posts);
    76             echo '<p>' . sprintf( __('Done! <strong>%s</strong> tag to post relationships were read.'), $count ) . '<br /></p>';
     76            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>';
    7777        }
    7878
     
    9292        $tags_added = $this->tag2post();
    9393       
    94         echo '<p>' . sprintf( __('Done! <strong>%s</strong> tags where added!'), $tags_added ) . '<br /></p>';
     94        echo '<p>' . sprintf( __ngettext('Done! <strong>%s</strong> tags where added!', 'Done! <strong>%s</strong> tags where added!', $tags_added), $tags_added ) . '<br /></p>';
    9595        echo '<form action="admin.php?import=stp&amp;step=3" method="post">';
    9696        wp_nonce_field('import-stp');
Note: See TracChangeset for help on using the changeset viewer.