WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/28/2010 11:43:04 AM (11 years ago)
Author:
dd32
Message:

Better internationalisation for TwentyTen. Props filosofo. Fixes #12384

File:
1 edited

Legend:

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

    r13157 r13498  
    1212
    1313                    <div class="entry-meta">
    14                         <span class="meta-prep meta-prep-author"><?php _e( 'By ', 'twentyten' ); ?></span>
    15                         <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' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span>
    16                         <span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span>
    17                         <span class="meta-prep meta-prep-entry-date"><?php _e( 'Published ', 'twentyten' ); ?></span>
    18                         <span class="entry-date"><abbr class="published" title="<?php the_time() ?>"><?php echo get_the_date(); ?></abbr></span>
     14                        <?php
     15                            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'),
     16                                get_author_posts_url( get_the_author_meta('ID') ),
     17                                sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
     18                                get_the_author()
     19                            );
     20                        ?>
     21                        <span class="meta-sep"> | </span>
     22                        <?php
     23                            printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span>', 'twentyten'),
     24                                esc_attr(get_the_time()),
     25                                get_the_date()
     26                            );
     27                        ?>
    1928                        <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ); ?>
    2029                    </div><!-- .entry-meta -->
     
    4352
    4453                    <div class="entry-utility">
    45                     <?php printf( __( 'This entry was posted in %1$s%2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'twentyten' ),
    46                         get_the_category_list(', '),
    47                         get_the_tag_list( __( ' and tagged ', 'twentyten' ), ', ', '' ),
    48                         get_permalink(),
    49                         the_title_attribute('echo=0'),
    50                         get_post_comments_feed_link() ); ?>
     54                    <?php
     55                        $tag_list = get_the_tag_list();
     56                        if ( '' != $tag_list ) {
     57                            $utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'twentyten' );
     58                        } else {
     59                            $utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'twentyten' );
     60                        }
     61                        printf(
     62                            $utility_text,
     63                            get_the_category_list(', '),
     64                            $tag_list,
     65                            get_permalink(),
     66                            the_title_attribute('echo=0'),
     67                            get_post_comments_feed_link()
     68                        );
     69                    ?>
    5170
    5271<?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
Note: See TracChangeset for help on using the changeset viewer.