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

    r9903 r10606  
    9999            $count = count($tags);
    100100
    101             echo '<p>' . sprintf( __ngettext('Done! <strong>%s</strong> tag were read.', 'Done! <strong>%s</strong> tags were read.', $count), $count ) . '<br /></p>';
     101            echo '<p>' . sprintf( _n('Done! <strong>%s</strong> tag were read.', 'Done! <strong>%s</strong> tags were read.', $count), $count ) . '<br /></p>';
    102102            echo '<p>' . __('The following tags were found:') . '</p>';
    103103
     
    151151            $count = count($posts);
    152152
    153             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>';
     153            echo '<p>' . sprintf( _n('Done! <strong>%s</strong> tag to post relationships were read.', 'Done! <strong>%s</strong> tags to post relationships were read.', $count), $count ) . '<br /></p>';
    154154
    155155        }
     
    172172        $tags_added = $this->tag2post();
    173173
    174         echo '<p>' . sprintf( __ngettext( 'Done! <strong>%s</strong> tag were added!', 'Done! <strong>%s</strong> tags were added!', $tags_added ), $tags_added ) . '<br /></p>';
     174        echo '<p>' . sprintf( _n( 'Done! <strong>%s</strong> tag were added!', 'Done! <strong>%s</strong> tags were added!', $tags_added ), $tags_added ) . '<br /></p>';
    175175
    176176        echo '<form action="admin.php?import=utw&amp;step=4" method="post">';
Note: See TracChangeset for help on using the changeset viewer.