Make WordPress Core


Ignore:
Timestamp:
05/25/2011 03:19:33 PM (15 years ago)
Author:
iandstewart
Message:

Twenty Eleven: make categories and tags i18n friendly; Props dimadin; Fixes #17531

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/content-image.php

    r17959 r18029  
    5151                        </div><!-- .entry-meta -->
    5252                        <div class="entry-meta">
    53                                 <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links"><?php _e( 'Posted in ', 'twentyeleven' ); ?></span><?php the_category( ', ' ); ?></span>
    54                                 <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __( 'Tagged', 'twentyeleven' ) . '</span> ', ', ', '</span>' ); ?>
     53                                <?php
     54                                /* translators: used between list items, there is a space after the comma */
     55                                        $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
     56                                        if ( $categories_list ):
     57                                ?>
     58                                <span class="cat-links">
     59                                        <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); ?>
     60                                </span>
     61                                <?php endif; // End if categories ?>
     62                                <?php
     63                                        /* translators: used between list items, there is a space after the comma */
     64                                        $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
     65                                        if ( $tags_list ): ?>
     66                                <span class="tag-links">
     67                                        <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
     68                                </span>
     69                                <?php endif; // End if $tags_list ?>
     70
    5571                                <?php if ( comments_open() ) : ?>
    5672                                <span class="comments-link"><?php comments_popup_link( __( '<span class="leave-reply">Leave a reply</span>', 'twentyeleven' ), __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    57                                 <?php endif; ?>
     73                                <?php endif; // End if comments_open() ?>
    5874                        </div><!-- .entry-meta -->
    5975                        <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.