WordPress.org

Make WordPress Core

Changeset 18348


Ignore:
Timestamp:
06/27/2011 08:24:23 PM (7 years ago)
Author:
azaozz
Message:

Simplify some Twenty-Eleven strings for i18n, props nbachiyski, fixes #17777

Location:
trunk/wp-content/themes/twentyeleven
Files:
9 edited

Legend:

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

    r17959 r18348  
    3333
    3434                    <?php
     35                    /* translators: %1$s: smilie */
    3536                    $archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'twentyeleven' ), convert_smilies( ':)' ) ) . '</p>';
    36                     the_widget( 'WP_Widget_Archives', array('count' => 0 , 'dropdown' => 1 ), "after_title=</h2>$archive_content" );
     37                    the_widget( 'WP_Widget_Archives', array('count' => 0 , 'dropdown' => 1 ), array( 'after_title' => '</h2>'.$archive_content ) );
    3738                    ?>
    3839
  • trunk/wp-content/themes/twentyeleven/content-aside.php

    r18335 r18348  
    2020            <?php if ( comments_open() ) : ?>
    2121            <div class="comments-link">
    22                 <?php comments_popup_link( __( '<span class="leave-reply">Reply</span>', 'twentyeleven' ), __( '1', 'twentyeleven' ), __( '%', 'twentyeleven' ) ); ?>
     22                <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
    2323            </div>
    2424            <?php endif; ?>
     
    4040            <?php if ( comments_open() ) : ?>
    4141            <span class="sep"> | </span>
    42             <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>
     42            <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    4343            <?php endif; ?>
    4444            <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  • trunk/wp-content/themes/twentyeleven/content-gallery.php

    r18335 r18348  
    8585        <span class="sep"> | </span>
    8686        <?php endif; // End if $show_sep ?>
    87         <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>
     87        <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a Reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    8888        <?php endif; // End if comments_open() ?>
    8989
  • trunk/wp-content/themes/twentyeleven/content-image.php

    r18335 r18348  
    1919            <?php if ( comments_open() ) : ?>
    2020            <div class="comments-link">
    21                 <?php comments_popup_link( __( '<span class="leave-reply">Reply</span>', 'twentyeleven' ), __( '1', 'twentyeleven' ), __( '%', 'twentyeleven' ) ); ?>
     21                <?php comments_popup_link( '<span class="leave-reply">' . __( "Reply", 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
    2222            </div>
    2323            <?php endif; ?>
     
    4444            <div class="entry-meta">
    4545                <?php
    46                 /* translators: used between list items, there is a space after the comma */
     46                    /* translators: used between list items, there is a space after the comma */
    4747                    $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
    4848                    if ( $categories_list ):
     
    6262
    6363                <?php if ( comments_open() ) : ?>
    64                 <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>
     64                <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', __( '<strong>1</strong> Reply', 'twentyeleven' ), __( '<strong>%</strong> Replies', 'twentyeleven' ) ); ?></span>
    6565                <?php endif; // End if comments_open() ?>
    6666            </div><!-- .entry-meta -->
  • trunk/wp-content/themes/twentyeleven/content-link.php

    r18335 r18348  
    2020            <?php if ( comments_open() ) : ?>
    2121            <div class="comments-link">
    22                 <?php comments_popup_link( __( '<span class="leave-reply">Reply</span>', 'twentyeleven' ), __( '1', 'twentyeleven' ), __( '%', 'twentyeleven' ) ); ?>
     22                <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
    2323            </div>
    2424            <?php endif; ?>
     
    4040            <?php if ( comments_open() ) : ?>
    4141            <span class="sep"> | </span>
    42             <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>
     42            <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    4343            <?php endif; ?>
    4444            <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  • trunk/wp-content/themes/twentyeleven/content-quote.php

    r18335 r18348  
    2222            <?php if ( comments_open() ) : ?>
    2323            <div class="comments-link">
    24                 <?php comments_popup_link( __( '<span class="leave-reply">Reply</span>', 'twentyeleven' ), __( '1', 'twentyeleven' ), __( '%', 'twentyeleven' ) ); ?>
     24                <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>t
    2525            </div>
    2626            <?php endif; ?>
     
    6767            <span class="sep"> | </span>
    6868            <?php endif; // End if $show_sep ?>
    69             <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>
     69            <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    7070            <?php endif; // End if comments_open() ?>
    7171
  • trunk/wp-content/themes/twentyeleven/content-status.php

    r18335 r18348  
    1919            <?php if ( comments_open() ) : ?>
    2020            <div class="comments-link">
    21                 <?php comments_popup_link( __( '<span class="leave-reply">Reply</span>', 'twentyeleven' ), __( '1', 'twentyeleven' ), __( '%', 'twentyeleven' ) ); ?>
     21                <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
    2222            </div>
    2323            <?php endif; ?>
     
    4141            <?php if ( comments_open() ) : ?>
    4242            <span class="sep"> | </span>
    43             <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>
     43            <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    4444            <?php endif; ?>
    4545            <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  • trunk/wp-content/themes/twentyeleven/content.php

    r18335 r18348  
    2828            <?php if ( comments_open() ) : ?>
    2929            <div class="comments-link">
    30                 <?php comments_popup_link( __( '<span class="leave-reply">Reply</span>', 'twentyeleven' ), __( '1', 'twentyeleven' ), __( '%', 'twentyeleven' ) ); ?>
     30                <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
    3131            </div>
    3232            <?php endif; ?>
     
    7575            <span class="sep"> | </span>
    7676            <?php endif; // End if $show_sep ?>
    77             <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>
     77            <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    7878            <?php endif; // End if comments_open() ?>
    7979
  • trunk/wp-content/themes/twentyeleven/showcase.php

    r18335 r18348  
    192192                            <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
    193193                            <span class="comments-link">
    194                                 <?php comments_popup_link( __( '<span class="leave-reply">Leave a reply</span>', 'twentyeleven' ), __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?>
     194                                <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?>
    195195                            </span>
    196196                        </li>
     
    209209
    210210                        <?php
    211                         the_widget( 'Twenty_Eleven_Ephemera_Widget', '', 'before_title=<h3 class="widget-title">&after_title=</h3>' );
     211                        the_widget( 'Twenty_Eleven_Ephemera_Widget', '', array( 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) );
    212212                        ?>
    213213
Note: See TracChangeset for help on using the changeset viewer.