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/single.php

    r13147 r13498  
    4343
    4444                    <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() ); ?>
     45                    <?php
     46                        $tag_list = get_the_tag_list();
     47                        if ( '' != $tag_list ) {
     48                            $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' );
     49                        } else {
     50                            $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' );
     51                        }
     52                        printf(
     53                            $utility_text,
     54                            get_the_category_list(', '),
     55                            $tag_list,
     56                            get_permalink(),
     57                            the_title_attribute('echo=0'),
     58                            get_post_comments_feed_link()
     59                        );
     60                    ?>
    5161
    5262<?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ); ?>
Note: See TracChangeset for help on using the changeset viewer.