Handle 'This gallery contains X photos' properly in Twenty Ten. fixes #15858.

git-svn-id: https://develop.svn.wordpress.org/trunk@17072 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-12-20 09:34:58 +00:00
parent 18edc09e6a
commit 21ea69a1d7
1 changed files with 2 additions and 2 deletions

View File

@ -82,9 +82,9 @@ $comment_number_template = _n( '1 Comment', '% Comments', get_comments_number(),
<div class="gallery-thumb">
<a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a>
</div><!-- .gallery-thumb -->
<p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ),
<p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyten' ),
'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
$total_images
number_format_i18n( $total_images )
); ?></em></p>
<?php endif; ?>
<?php the_excerpt(); ?>