ngettext fixes from nbachiyski. fixes #6261

git-svn-id: https://develop.svn.wordpress.org/trunk@7397 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-03-19 16:00:09 +00:00
parent 1107f63d47
commit 4dcc023818
10 changed files with 49 additions and 23 deletions

View File

@@ -98,7 +98,7 @@ foreach ( $post_mime_types as $mime_type => $label ) {
$class = ' class="current"';
$type_links[] = "<li><a href=\"upload.php?post_mime_type=$mime_type\"$class>" .
sprintf($label[2], $num_posts[$mime_type]) . '</a>';
sprintf(__ngettext($label[2][0], $label[2][1], $num_posts[$mime_type]), $num_posts[$mime_type]) . '</a>';
}
echo implode(' | </li>', $type_links) . '</li>';
unset($type_links);