WordPress.org

Make WordPress Core

Changeset 15222


Ignore:
Timestamp:
06/11/2010 04:15:25 PM (11 years ago)
Author:
wpmuguru
Message:

arrange twentyten strings for easier translation, props zeo, fixes #13824

Location:
trunk/wp-content/themes/twentyten
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/functions.php

    r15212 r15222  
    494494 */
    495495function twentyten_posted_on() {
    496     printf( __( '<span %1$s>Posted on</span> %2$s by %3$s', 'twentyten' ),
    497         'class="meta-prep meta-prep-author"',
    498         sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a> <span class="meta-sep">',
     496    printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
     497        'meta-prep meta-prep-author',
     498        sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
    499499            get_permalink(),
    500500            esc_attr( get_the_time() ),
    501501            get_the_date()
    502502        ),
    503         sprintf( '</span> <span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
     503        sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    504504            get_author_posts_url( get_the_author_meta( 'ID' ) ),
    505505            sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
  • trunk/wp-content/themes/twentyten/loop.php

    r15194 r15222  
    143143                <?php if ( count( get_the_category() ) ) : ?>
    144144                    <span class="cat-links">
    145                         <span class="entry-utility-prep entry-utility-prep-cat-links"><?php printf( __('Posted in %s', 'twentyten' ), '</span> ' . get_the_category_list( ', ' ) ); ?>
     145                        <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
    146146                    </span>
    147147                    <span class="meta-sep">|</span>
     
    152152                ?>
    153153                    <span class="tag-links">
    154                         <span class="entry-utility-prep entry-utility-prep-tag-links"><?php printf( __('Tagged %s', 'twentyten'), '</span> ' . $tags_list ); ?>
     154                        <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
    155155                    </span>
    156156                    <span class="meta-sep">|</span>
Note: See TracChangeset for help on using the changeset viewer.