Make WordPress Core

Ticket #13198: twentyten_printf_fixes.patch

File twentyten_printf_fixes.patch, 4.2 KB (added by dimadin, 15 years ago)

Fixing some printf i18n issues

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

     
    2222
    2323                                        <div class="entry-meta">
    2424                                                <?php
    25                                                         printf(__( '<span class="meta-prep meta-prep-author"> By </span> <span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 'twentyten'),
     25                                                        printf(__( '<span class="meta-prep meta-prep-author">By </span> <span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 'twentyten'),
    2626                                                                get_author_posts_url( get_the_author_meta( 'ID' ) ),
    2727                                                                sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
    2828                                                                get_the_author()
  • wp-content/themes/twentyten/footer.php

     
    2424
    2525                        <div id="site-generator">
    2626                                <?php do_action('twentyten_credits' ); ?>
    27                                 <a href="http://wordpress.org/" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a>
     27                                <?php _e( '<a href="http://wordpress.org/" title="Semantic Personal Publishing Platform" rel="generator">Proudly powered by WordPress.</a>' , 'twentyten' ); ?>
    2828                        </div>
    2929
    3030                </div><!-- #colophon -->
  • wp-content/themes/twentyten/single.php

     
    2424                                        <h1 class="entry-title"><?php the_title(); ?></h1>
    2525
    2626                                        <div class="entry-meta">
    27                                                 <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
    28                                                 <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a>
    29                                                 <span class="meta-sep"><?php _e( ' by ', 'twentyten' ); ?></span>
    30                                                 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span>
     27                                                <?php
     28                                                        printf( __( '<span class="meta-prep meta-prep-author">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a> <span class="meta-sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyten' ),
     29                                                                get_permalink(),
     30                                                                esc_attr( get_the_time() ),
     31                                                                get_the_date(),
     32                                                                get_author_posts_url( get_the_author_meta( 'ID' ) ),
     33                                                                sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
     34                                                                get_the_author()
     35                                                        );
     36                                                ?>
    3137                                        </div><!-- .entry-meta -->
    3238
    3339                                        <div class="entry-content">
     
    4147                                                        <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
    4248                                                </div><!-- #author-avatar -->
    4349                                                <div id="author-description">
    44                                                         <h2><?php _e( 'About ', 'twentyten' ); ?><?php the_author(); ?></h2>
     50                                                        <h2><?php printf( esc_attr__( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
    4551                                                        <?php the_author_meta( 'description' ); ?>
    4652                                                        <div id="author-link">
    47                                                                 <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php _e( 'View all posts by ', 'twentyten' ); ?><?php the_author(); ?> &rarr;</a>
     53                                                                <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php printf( esc_attr__( 'View all posts by %s &rarr;', 'twentyten' ), get_the_author() ); ?></a>
    4854                                                        </div><!-- #author-link -->
    4955                                                </div><!-- #author-description -->
    5056                                        </div><!-- .entry-author-info -->