Make WordPress Core

Ticket #15859: 15859.diff

File 15859.diff, 967 bytes (added by zeo, 14 years ago)

Add plural support.

  • wp-content/themes/twentyten/loop.php

     
    8282                                                <div class="gallery-thumb">
    8383                                                        <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a>
    8484                                                </div><!-- .gallery-thumb -->
    85                                                 <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ),
     85                                                <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s</a>.', 'twentyten' ),
    8686                                                                'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
    87                                                                 $total_images
     87                                                                sprintf( _n( '%s photo', '%s photos', $total_images ), number_format_i18n( $total_images ) )
    8888                                                        ); ?></em></p>
    8989                                <?php endif; ?>
    9090                                                <?php the_excerpt(); ?>