Make WordPress Core

Changeset 14771


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

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

Location:
trunk/wp-includes/theme-compat
Files:
4 edited

Legend:

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

    r14366 r14771  
    1212<html xmlns="http://www.w3.org/1999/xhtml">
    1313<head>
    14      <title><?php echo get_option('blogname'); ?> - Comments on <?php the_title(); ?></title>
     14     <title><?php printf(__('%1$s - Comments on %2$s'), get_option('blogname'), the_title('','',false)); ?></title>
    1515
    1616    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
     
    2929add_filter('comment_text', 'popuplinks');
    3030if ( have_posts() ) :
    31 while ( have_posts() ) : the_post();
     31while( have_posts()) : the_post();
    3232?>
    33 <h2 id="comments">Comments</h2>
     33<h2 id="comments"><?php _e('Comments'); ?></h2>
    3434
    35 <p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p>
     35<p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'); ?></a></p>
    3636
    3737<?php if ( pings_open() ) { ?>
    38 <p>The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em><?php trackback_url() ?></em></p>
     38<p><?php printf(__('The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em>%s</em>'), get_trackback_url()); ?></p>
    3939<?php } ?>
    4040
     
    5454    <li id="comment-<?php comment_ID() ?>">
    5555    <?php comment_text() ?>
    56     <p><cite><?php comment_type('Comment', 'Trackback', 'Pingback'); ?> by <?php comment_author_link() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
     56    <p><cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php printf(__('by %1$s &#8212; %2$s @ <a href="#comment-%3$s">%4$s</a>'), get_comment_author_link(), get_comment_date(), get_comment_ID(), get_comment_time()); ?></cite></p>
    5757    </li>
    5858
     
    6060</ol>
    6161<?php } else { // this is displayed if there are no comments so far ?>
    62     <p>No comments yet.</p>
     62    <p><?php _e('No comments yet.'); ?></p>
    6363<?php } ?>
    6464
    6565<?php if ( comments_open() ) { ?>
    66 <h2>Leave a comment</h2>
    67 <p>Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code><?php echo allowed_tags(); ?></code></p>
     66<h2><?php _e('Leave a comment'); ?></h2>
     67<p><?php printf(__('Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code>%s</code>'), allowed_tags()); ?></p>
    6868
    6969<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    7070<?php if ( $user_ID ) : ?>
    71     <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
     71    <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out &raquo;</a>'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity, wp_logout_url(get_permalink())); ?></p>
    7272<?php else : ?>
    7373    <p>
    7474      <input type="text" name="author" id="author" class="textarea" value="<?php echo esc_attr($comment_author); ?>" size="28" tabindex="1" />
    75        <label for="author">Name</label>
     75       <label for="author"><?php _e('Name'); ?></label>
    7676    </p>
    7777
    7878    <p>
    7979      <input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="28" tabindex="2" />
    80        <label for="email">E-mail</label>
     80       <label for="email"><?php _e('E-mail'); ?></label>
    8181    </p>
    8282
    8383    <p>
    8484      <input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="28" tabindex="3" />
    85        <label for="url"><abbr title="Universal Resource Locator">URL</abbr></label>
     85       <label for="url"><?php _e('<abbr title="Universal Resource Locator">URL</abbr>'); ?></label>
    8686    </p>
    8787<?php endif; ?>
    8888
    8989    <p>
    90       <label for="comment">Your Comment</label>
     90      <label for="comment"><?php _e('Your Comment'); ?></label>
    9191    <br />
    9292      <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea>
     
    9494
    9595    <p>
    96       <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
     96      <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    9797      <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" />
    98       <input name="submit" type="submit" tabindex="5" value="Say It!" />
     98      <input name="submit" type="submit" tabindex="5" value="<?php _e('Say It!' ); ?>" />
    9999    </p>
    100100    <?php do_action('comment_form', $post->ID); ?>
    101101</form>
    102102<?php } else { // comments are closed ?>
    103 <p>Sorry, the comment form is closed at this time.</p>
     103<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
    104104<?php }
    105105} // end password check
    106106?>
    107107
    108 <div><strong><a href="javascript:window.close()">Close this window.</a></strong></div>
     108<div><strong><a href="javascript:window.close()"><?php _e('Close this window.'); ?></a></strong></div>
    109109
    110110<?php // if you delete this the sky will fall on your head
    111 endwhile; //endwhile have_posts()
    112 else: //have_posts()
     111endwhile; // have_posts()
     112else: // have_posts()
    113113?>
    114 <p>Sorry, no posts matched your criteria.</p>
     114<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    115115<?php endif; ?>
    116116<!-- // this is just the end of the motor - don't touch that line either :) -->
    117117<?php //} ?>
    118 <p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a></cite></p>
     118<p class="credit"><?php timer_stop(1); ?> <cite><?php printf(__('Powered by <a href="%s" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a>'), 'http://wordpress.org/'); ?></cite></p>
    119119<?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?>
    120120<script type="text/javascript">
  • trunk/wp-includes/theme-compat/comments.php

    r14366 r14771  
    1313    if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    1414        die ('Please do not load this page directly. Thanks!');
    15 
     15   
    1616    if ( post_password_required() ) { ?>
    17         <p class="nocomments">This post is password protected. Enter the password to view comments.</p>
     17        <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.'); ?></p>
    1818    <?php
    1919        return;
     
    2424
    2525<?php if ( have_comments() ) : ?>
    26     <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
     26    <h3 id="comments"><?php comments_number(__('No Responses'), __('One Response'), __('% Responses'));?> <?php printf(__('to &#8220;%s&#8221;'), the_title('', '', false)); ?></h3>
    2727
    2828    <div class="navigation">
     
    3232
    3333    <ol class="commentlist">
    34     <?php wp_list_comments(); ?>
     34    <?php wp_list_comments();?>
    3535    </ol>
    3636
     
    4646     <?php else : // comments are closed ?>
    4747        <!-- If comments are closed. -->
    48         <p class="nocomments">Comments are closed.</p>
     48        <p class="nocomments"><?php _e('Comments are closed.'); ?></p>
    4949
    5050    <?php endif; ?>
     
    5656<div id="respond">
    5757
    58 <h3><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3>
     58<h3><?php comment_form_title( __('Leave a Reply'), __('Leave a Reply to %s' ) ); ?></h3>
    5959
    60 <div class="cancel-comment-reply">
    61     <small><?php cancel_comment_reply_link(); ?></small>
    62 </div>
     60<div id="cancel-comment-reply">
     61    <small><?php cancel_comment_reply_link() ?></small>
     62</div> 
    6363
    6464<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
    65 <p>You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p>
     65<p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), wp_login_url( get_permalink() )); ?></p>
    6666<?php else : ?>
    6767
     
    7070<?php if ( is_user_logged_in() ) : ?>
    7171
    72 <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
     72<p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account'); ?>"><?php _e('Log out &raquo;'); ?></a></p>
    7373
    7474<?php else : ?>
    7575
    7676<p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
    77 <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
     77<label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
    7878
    7979<p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
    80 <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
     80<label for="email"><small><?php _e('Mail (will not be published)'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
    8181
    82 <p><input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
    83 <label for="url"><small>Website</small></label></p>
     82<p><input type="text" name="url" id="url" value="<?php echo  esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
     83<label for="url"><small><?php _e('Website'); ?></small></label></p>
    8484
    8585<?php endif; ?>
    8686
    87 <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
     87<!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>'), allowed_tags()); ?></small></p>-->
    8888
    8989<p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>
    9090
    91 <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
    92 <?php comment_id_fields(); ?>
     91<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment'); ?>" />
     92<?php comment_id_fields(); ?> 
    9393</p>
    9494<?php do_action('comment_form', $post->ID); ?>
  • trunk/wp-includes/theme-compat/footer.php

    r14366 r14771  
    1515<!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. -->
    1616    <p>
    17         <?php bloginfo('name'); ?> is proudly powered by
    18         <a href="http://wordpress.org/">WordPress</a>
    19         <br /><a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a>
    20         and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>.
    21         <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
     17        <?php printf(__('%1$s is proudly powered by %2$s'), get_bloginfo('name'),
     18        '<a href="http://wordpress.org/">WordPress</a>'); ?>
     19        <br /><?php printf(__('%1$s and %2$s.'), '<a href="' . get_bloginfo('rss2_url') . '">' . __('Entries (RSS)') . '</a>', '<a href="' . get_bloginfo('comments_rss2_url') . '">' . __('Comments (RSS)') . '</a>'); ?>
     20        <!-- <?php printf(__('%d queries. %s seconds.'), get_num_queries(), timer_stop(0, 3)); ?> -->
    2221    </p>
    2322</div>
  • 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.