Make WordPress Core


Ignore:
Timestamp:
05/20/2010 09:53:11 PM (16 years ago)
Author:
westi
Message:

First pass of conversion of theme-compat to the I18N version of the files. See #12425

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme-compat/sidebar.php

    r14366 r14771  
    1919
    2020            <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
    21             <li><h2>Author</h2>
     21            <li><h2><?php _e('Author'); ?></h2>
    2222            <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
    2323            </li>
     
    3030            <?php /* If this is a 404 page */ if (is_404()) { ?>
    3131            <?php /* If this is a category archive */ } elseif (is_category()) { ?>
    32             <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
     32            <p><?php printf(__('You are currently browsing the archives for the %s category.'), single_cat_title('', false)); ?></p>
    3333
    3434            <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    35             <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives
    36             for the day <?php the_time('l, F jS, Y'); ?>.</p>
     35            <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the day %3$s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y'))); ?></p>
    3736
    3837            <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    39             <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives
    40             for <?php the_time('F, Y'); ?>.</p>
     38            <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for %3$s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y'))); ?></p>
    4139
    4240            <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    43             <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives
    44             for the year <?php the_time('Y'); ?>.</p>
     41            <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p>
    4542
    4643            <?php /* If this is a search result */ } elseif (is_search()) { ?>
    47             <p>You have searched the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives
    48             for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
     44            <p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>&#8216;%3$s&#8217;</strong>. If you are unable to find anything in these search results, you can try one of these links.'), get_bloginfo('url'), get_bloginfo('name'), wp_specialchars(get_search_query(), true)); ?></p>
    4945
    50             <?php /* If this set is paginated */ } elseif ( !empty($_GET['paged']) ) { ?>
    51             <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives.</p>
     46            <?php /* If this set is paginated */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
     47            <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.'), get_bloginfo('url'), get_bloginfo('name')); ?></p>
    5248
    5349            <?php } ?>
     
    5753        </ul>
    5854        <ul role="navigation">
    59             <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
     55            <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>
    6056
    61             <li><h2>Archives</h2>
     57            <li><h2><?php _e('Archives'); ?></h2>
    6258                <ul>
    6359                <?php wp_get_archives(array('type' => 'monthly')); ?>
     
    6561            </li>
    6662
    67             <?php wp_list_categories(array('show_count' => 1, 'title_li' => '<h2>Categories</h2>')); ?>
     63            <?php wp_list_categories(array('show_count' => 1, 'title_li' => '<h2>' . __('Categories') . '</h2>')); ?>
    6864        </ul>
    6965        <ul>
     
    7167                <?php wp_list_bookmarks(); ?>
    7268
    73                 <li><h2>Meta</h2>
     69                <li><h2><?php _e('Meta'); ?></h2>
    7470                <ul>
    7571                    <?php wp_register(); ?>
    7672                    <li><?php wp_loginout(); ?></li>
    77                     <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
    78                     <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
    79                     <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
     73                    <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
     74                    <li><a href="http://gmpg.org/xfn/"><abbr title="<?php _e('XHTML Friends Network'); ?>"><?php _e('XFN'); ?></abbr></a></li>
     75                    <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>">WordPress</a></li>
    8076                    <?php wp_meta(); ?>
    8177                </ul>
Note: See TracChangeset for help on using the changeset viewer.