Make WordPress Core

Ticket #15859: 15859-2.diff

File 15859-2.diff, 1.1 KB (added by zeo, 14 years ago)

Add plural support and move href and title attribute inside. Also add translators note.

  • 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' ),
    86                                                                 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
    87                                                                 $total_images
     85                                                <p><em><?php /* translators: 1: permalink, 2: post title, 3: number of photos */ printf( __( 'This gallery contains <a href="%1$s" title="Permalink to %2$s" rel="bookmark">%3$s</a>.', 'twentyten' ),
     86                                                                get_permalink(),
     87                                                                the_title_attribute( 'echo=0' ),
     88                                                                sprintf( _n( '%s photo', '%s photos', $total_images ), number_format_i18n( $total_images ) )
    8889                                                        ); ?></em></p>
    8990                                <?php endif; ?>
    9091                                                <?php the_excerpt(); ?>