WordPress.org

Make WordPress Core

Ticket #4817: internationalization_themes.patch

File internationalization_themes.patch, 41.3 KB (added by momo360modena, 7 years ago)
  • wp-content/themes/classic/comments-popup.php

     
    102102 
    103103<!-- // this is just the end of the motor - don't touch that line either :) --> 
    104104<?php //} ?> 
    105 <p class="credit"><?php timer_stop(1); ?> <?php echo sprintf(__("<cite>Powered by <a href=\"http://wordpress.org\" title=\"%s\"><strong>Wordpress</strong></a></cite>"),__("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></p> 
     105<p class="credit"><?php timer_stop(1); ?> <?php printf(__("<cite>Powered by <a href=\"http://wordpress.org\" title=\"%s\"><strong>Wordpress</strong></a></cite>"),__("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></p> 
    106106<?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> 
    107107<script type="text/javascript"> 
    108108<!-- 
  • wp-content/themes/classic/footer.php

     
    33 
    44<?php get_sidebar(); ?> 
    55 
    6 <p class="credit"><!--<?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --> <cite><?php echo sprintf(__("Powered by <a href='http://wordpress.org/' title='%s'><strong>WordPress</strong></a>"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></cite></p> 
     6<p class="credit"><!--<?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --> <cite><?php printf(__("Powered by <a href='http://wordpress.org/' title='%s'><strong>WordPress</strong></a>"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></cite></p> 
    77 
    88</div> 
    99 
  • wp-content/themes/default/404.php

     
    22 
    33        <div id="content" class="narrowcolumn"> 
    44 
    5                 <h2 class="center">Error 404 - Not Found</h2> 
     5                <h2 class="center"><?php _e('Error 404 - Not Found'); ?></h2> 
    66 
    77        </div> 
    88 
  • wp-content/themes/default/archive.php

     
    66 
    77          <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> 
    88          <?php /* If this is a category archive */ if (is_category()) { ?> 
    9                 <h2 class="pagetitle">Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2> 
     9                <h2 class="pagetitle"><?php printf(__('Archive for the &#8216;%s&#8217; Category'), single_cat_title('', false)); ?></h2> 
    1010          <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> 
    11                 <h2 class="pagetitle">Posts Tagged &#8216;<?php single_cat_title(); ?>&#8217;</h2> 
     11                <h2 class="pagetitle"><?php printf(__('Posts Tagged &#8216;%s&#8217;'), single_cat_title('', false)); ?></h2> 
    1212          <?php /* If this is a daily archive */ } elseif (is_day()) { ?> 
    13                 <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2> 
     13                <h2 class="pagetitle"><?php printf(__('Archive for %s'), get_the_time('F jS, Y')); ?></h2> 
    1414          <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 
    15                 <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2> 
     15                <h2 class="pagetitle"><?php printf(__('Archive for %s'), get_the_time('F, Y')); ?></h2> 
    1616          <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 
    17                 <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2> 
     17                <h2 class="pagetitle"><?php printf(__('Archive for %s'), get_the_time('Y')); ?></h2> 
    1818          <?php /* If this is an author archive */ } elseif (is_author()) { ?> 
    19                 <h2 class="pagetitle">Author Archive</h2> 
     19                <h2 class="pagetitle"><?php _e('Author Archive'); ?></h2> 
    2020          <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 
    21                 <h2 class="pagetitle">Blog Archives</h2> 
     21                <h2 class="pagetitle"><?php _e('Blog Archives'); ?></h2> 
    2222          <?php } ?> 
    2323 
    2424 
    2525                <div class="navigation"> 
    26                         <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div> 
    27                         <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div> 
     26                        <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries')) ?></div> 
     27                        <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;')) ?></div> 
    2828                </div> 
    2929 
    3030                <?php while (have_posts()) : the_post(); ?> 
    3131                <div class="post"> 
    32                                 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> 
    33                                 <small><?php the_time('l, F jS, Y') ?></small> 
     32                                <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link: %s'), the_title('', '', false)); ?>"><?php the_title(); ?></a></h3> 
     33                                <small><?php the_date() ?></small> 
    3434 
    3535                                <div class="entry"> 
    36                                         <?php the_content() ?> 
     36                                        <?php the_content(__('<p class="serif">Read the rest of this entry &raquo;</p>')); ?> 
    3737                                </div> 
    3838 
    39                                 <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p> 
     39                                <p class="postmetadata"><?php the_tags(__('Tags: '), ', ', '<br />'); ?> <?php printf(__('Posted in %s'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit'), '', ' | '); ?>  <?php comments_popup_link(__('No Comments &#187;'), __('1 Comment &#187;'), __('% Comments &#187;'), '', __('Comments Off')); ?></p> 
    4040 
    4141                        </div> 
    4242 
    4343                <?php endwhile; ?> 
    4444 
    4545                <div class="navigation"> 
    46                         <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div> 
    47                         <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div> 
     46                        <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries')) ?></div> 
     47                        <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;')) ?></div> 
    4848                </div> 
    4949 
    5050        <?php else : ?> 
    5151 
    52                 <h2 class="center">Not Found</h2> 
     52                <h2 class="center"><?php _e('Not Found'); ?></h2> 
    5353                <?php include (TEMPLATEPATH . '/searchform.php'); ?> 
    5454 
    5555        <?php endif; ?> 
  • wp-content/themes/default/archives.php

     
    1010 
    1111<?php include (TEMPLATEPATH . '/searchform.php'); ?> 
    1212 
    13 <h2>Archives by Month:</h2> 
     13<h2><?php e_('Archives by Month:'); ?></h2> 
    1414        <ul> 
    1515                <?php wp_get_archives('type=monthly'); ?> 
    1616        </ul> 
    1717 
    18 <h2>Archives by Subject:</h2> 
     18<h2><?php e_('Archives by Subject:'); ?></h2> 
    1919        <ul> 
    2020                 <?php wp_list_categories(); ?> 
    2121        </ul> 
  • wp-content/themes/default/attachment.php

     
    88                        <div class="alignleft">&nbsp;</div> 
    99                        <div class="alignright">&nbsp;</div> 
    1010                </div> 
    11 <?php $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); // This also populates the iconsize for the next line ?> 
    12 <?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?> 
     11                <?php $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); // This also populates the iconsize for the next line ?> 
     12                <?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?> 
     13                 
    1314                <div class="post" id="post-<?php the_ID(); ?>"> 
    14                         <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2> 
     15                        <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link: %s'), the_title('', '', false)); ?>"><?php the_title(); ?></a></h2> 
    1516                        <div class="entry"> 
    1617                                <p class="<?php echo $classname; ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p> 
    1718 
    18                                 <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?> 
     19                                <?php the_content(__('<p class="serif">Read the rest of this entry &raquo;</p>')); ?> 
    1920 
    20                                 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 
     21                                <?php wp_link_pages(array('before' => '<p><strong>'.__('Pages:').'</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 
    2122 
    2223                                <p class="postmetadata alt"> 
    2324                                        <small> 
    24                                                 This entry was posted 
    2525                                                <?php /* This is commented, because it requires a little adjusting sometimes. 
    2626                                                        You'll need to download this plugin, and follow the instructions: 
    2727                                                        http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */ 
    28                                                         /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>  
    29                                                 on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?> 
    30                                                 and is filed under <?php the_category(', ') ?>. 
    31                                                 You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.  
     28                                                        /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?> 
     29                                                <?php printf(__('This entry was posted on %1s at %2s and is filed under %3s.'), the_date('', '', '', false), get_the_time(), get_the_category_list(', ')); ?> 
     30                                                <?php printf(__('You can follow any responses to this entry through the <a href="%s">RSS 2.0</a> feed.'), get_post_comments_feed_link()); ?> 
    3231 
    3332                                                <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 
    3433                                                        // Both Comments and Pings are open ?> 
    35                                                         You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site. 
     34                                                        <?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.'), trackback_url(false)); ?> 
    3635 
    3736                                                <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 
    3837                                                        // Only Pings are Open ?> 
    39                                                         Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site. 
     38                                                        <?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.'), trackback_url(false)); ?> 
    4039 
    4140                                                <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 
    4241                                                        // Comments are open, Pings are not ?> 
    43                                                         You can skip to the end and leave a response. Pinging is currently not allowed. 
     42                                                        <?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.'); ?> 
    4443 
    4544                                                <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 
    4645                                                        // Neither Comments, nor Pings are open ?> 
    47                                                         Both comments and pings are currently closed. 
     46                                                        <?php _e('Both comments and pings are currently closed.'); ?> 
    4847 
    49                                                 <?php } edit_post_link('Edit this entry.','',''); ?> 
     48                                                <?php } edit_post_link(__('Edit this entry.'),'',''); ?> 
    5049 
    5150                                        </small> 
    5251                                </p> 
     
    5857 
    5958        <?php endwhile; else: ?> 
    6059 
    61                 <p>Sorry, no attachments matched your criteria.</p> 
     60                <p><?php _e('Sorry, no attachments matched your criteria.'); ?></p> 
    6261 
    6362<?php endif; ?> 
    6463 
  • wp-content/themes/default/comments-popup.php

     
    66<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    77<html xmlns="http://www.w3.org/1999/xhtml"> 
    88<head> 
    9      <title><?php echo get_option('blogname'); ?> - Comments on <?php the_title(); ?></title> 
     9     <title><?php echo get_option('blogname'); ?> - <?php printf(__('Comments on %s'), the_title('', '', false)); ?></title> 
    1010 
    1111        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 
    1212        <style type="text/css" media="screen"> 
     
    1919 
    2020<h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1> 
    2121 
    22 <h2 id="comments">Comments</h2> 
     22<h2 id="comments"><?php _e('Comments'); ?></h2> 
    2323 
    24 <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> 
     24<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> 
    2525 
    2626<?php if ('open' == $post->ping_status) { ?> 
    27 <p>The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em><?php trackback_url() ?></em></p> 
     27<p><?php printf(__('The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em>%s</em>'), trackback_url(false)); ?></p> 
    2828<?php } ?> 
    2929 
    3030<?php 
     
    4242<?php foreach ($comments as $comment) { ?> 
    4343        <li id="comment-<?php comment_ID() ?>"> 
    4444        <?php comment_text() ?> 
    45         <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> 
     45        <p><cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p> 
    4646        </li> 
    4747 
    4848<?php } // end for each comment ?> 
    4949</ol> 
    5050<?php } else { // this is displayed if there are no comments so far ?> 
    51         <p>No comments yet.</p> 
     51        <p><?php _e('No comments yet.'); ?></p> 
    5252<?php } ?> 
    5353 
    5454<?php if ('open' == $post->comment_status) { ?> 
    55 <h2>Leave a comment</h2> 
    56 <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> 
     55<h2><?php _e('Leave a comment'); ?></h2> 
     56<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> 
    5757 
    5858<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 
    5959<?php if ( $user_ID ) : ?>  
    60         <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout &raquo;</a></p> 
     60        <p><?php printf(__('<p>Logged in as <a href="%1s/wp-admin/profile.php">%2s</a>. <a href="%3s/wp-login.php?action=logout" title="Log out of this account">Logout &raquo;</a>'), get_option('siteurl'), $user_identity, get_option('siteurl')); ?></p> 
    6161<?php else : ?>  
    6262        <p> 
    6363          <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /> 
    64            <label for="author">Name</label> 
     64           <label for="author"><?php _e('Name'); ?></label> 
    6565        <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 
    6666        <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($_SERVER["REQUEST_URI"]); ?>" /> 
    6767        </p> 
    6868 
    6969        <p> 
    7070          <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" /> 
    71            <label for="email">E-mail</label> 
     71           <label for="email"><?php _e('E-mail'); ?></label> 
    7272        </p> 
    7373 
    7474        <p> 
    7575          <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" /> 
    76            <label for="url"><abbr title="Universal Resource Locator">URL</abbr></label> 
     76           <label for="url"><?php _e('<abbr title="Universal Resource Locator">URL</abbr>'); ?></label> 
    7777        </p> 
    7878<?php endif; ?> 
    7979 
    8080        <p> 
    81           <label for="comment">Your Comment</label> 
     81          <label for="comment"><?php _e('Your Comment'); ?></label> 
    8282        <br /> 
    8383          <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> 
    8484        </p> 
    8585 
    8686        <p> 
    87           <input name="submit" type="submit" tabindex="5" value="Say It!" /> 
     87          <input name="submit" type="submit" tabindex="5" value="<?php _e('Say It!'); ?>" /> 
    8888        </p> 
    8989        <?php do_action('comment_form', $post->ID); ?> 
    9090</form> 
    9191<?php } else { // comments are closed ?> 
    92 <p>Sorry, the comment form is closed at this time.</p> 
     92<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p> 
    9393<?php } 
    9494} // end password check 
    9595?> 
    9696 
    97 <div><strong><a href="javascript:window.close()">Close this window.</a></strong></div> 
     97<div><strong><a href="javascript:window.close()"><?php _e('Close this window.'); ?></a></strong></div> 
    9898 
    9999<?php // if you delete this the sky will fall on your head 
    100100endwhile; 
     
    102102 
    103103<!-- // this is just the end of the motor - don't touch that line either :) --> 
    104104<?php //} ?> 
    105 <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> 
     105<p class="credit"><?php timer_stop(1); ?> <cite><?php _e('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> 
    106106<?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> 
    107107<script type="text/javascript"> 
    108108<!-- 
  • wp-content/themes/default/comments.php

     
    11<?php // Do not delete these lines 
    22        if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) 
    3                 die ('Please do not load this page directly. Thanks!'); 
     3                die (__('Please do not load this page directly. Thanks!')); 
    44 
    55        if (!empty($post->post_password)) { // if there's a password 
    66                if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie 
    77                        ?> 
    88 
    9                         <p class="nocomments">This post is password protected. Enter the password to view comments.</p> 
     9                        <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.'); ?></p> 
    1010 
    1111                        <?php 
    1212                        return; 
     
    2020<!-- You can start editing here. --> 
    2121 
    2222<?php if ($comments) : ?> 
    23         <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3> 
     23        <h3 id="comments"><?php printf(__('%1s to &#8220;%2s&#8221;'), comments_number( false, false, false, false, '', false), get_the_title()); ?></h3> 
    2424 
    2525        <ol class="commentlist"> 
    2626 
    2727        <?php foreach ($comments as $comment) : ?> 
    2828 
    2929                <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"> 
    30                         <cite><?php comment_author_link() ?></cite> Says: 
     30                        <?php printf(__('<cite>%s</cite> Says:'), get_comment_author_link()); ?> 
    3131                        <?php if ($comment->comment_approved == '0') : ?> 
    32                         <em>Your comment is awaiting moderation.</em> 
     32                        <em><?php _e('Your comment is awaiting moderation.'); ?></em> 
    3333                        <?php endif; ?> 
    3434                        <br /> 
    3535 
    36                         <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('edit','&nbsp;&nbsp;',''); ?></small> 
     36                        <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date() ?> <?php _e('at'); ?> <?php comment_time() ?></a> <?php edit_comment_link(__('edit'),'&nbsp;&nbsp;',''); ?></small> 
    3737 
    3838                        <?php comment_text() ?> 
    3939 
     
    5555 
    5656         <?php else : // comments are closed ?> 
    5757                <!-- If comments are closed. --> 
    58                 <p class="nocomments">Comments are closed.</p> 
     58                <p class="nocomments"><?php _e('Comments are closed.'); ?></p> 
    5959 
    6060        <?php endif; ?> 
    6161<?php endif; ?> 
     
    6363 
    6464<?php if ('open' == $post->comment_status) : ?> 
    6565 
    66 <h3 id="respond">Leave a Reply</h3> 
     66<h3 id="respond"><?php _e('Leave a Reply'); ?></h3> 
    6767 
    6868<?php if ( get_option('comment_registration') && !$user_ID ) : ?> 
    69 <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p> 
     69<p><?php printf(__('You must be <a href="%1s/wp-login.php?redirect_to=%2s">logged in</a> to post a comment.', get_option('siteurl'), get_the_permalink())); ?></p> 
    7070<?php else : ?> 
    7171 
    7272<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 
    7373 
    7474<?php if ( $user_ID ) : ?> 
    7575 
    76 <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout &raquo;</a></p> 
     76<p><?php printf(__('<p>Logged in as <a href="%1s/wp-admin/profile.php">%2s</a>. <a href="%3s/wp-login.php?action=logout" title="Log out of this account">Logout &raquo;</a>'), get_option('siteurl'), $user_identity, get_option('siteurl')); ?></p> 
    7777 
    7878<?php else : ?> 
     79<?php $required = ($req) ? __('(required)') : ''; ?> 
    7980 
    8081<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> 
    81 <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p> 
     82<label for="author"><small><?php printf(__('Name %s'), $required); ?></small></label></p> 
    8283 
    8384<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> 
    84 <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p> 
     85<label for="email"><small><?php printf(__('Mail (will not be published) %s'), $required); ?></small></label></p> 
    8586 
    8687<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> 
    87 <label for="url"><small>Website</small></label></p> 
     88<label for="url"><small><?php _e('Website'); ?></small></label></p> 
    8889 
    8990<?php endif; ?> 
    9091 
    91 <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>--> 
     92<!--<p><small><?php printf(__('<strong>XHTML:</strong>You can use these tags: <code>%s</code>'), allowed_tags()); ?></small></p>--> 
    9293 
    9394<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p> 
    9495 
    95 <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> 
     96<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment'); ?>" /> 
    9697<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 
    9798</p> 
    9899<?php do_action('comment_form', $post->ID); ?> 
  • wp-content/themes/default/footer.php

     
    33<div id="footer"> 
    44<!-- 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. --> 
    55        <p> 
    6                 <?php bloginfo('name'); ?> is proudly powered by 
    7                 <a href="http://wordpress.org/">WordPress</a> 
    8                 <br /><a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a> 
    9                 and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>. 
     6                <?php printf(__('%s is proudly powered by <a href="http://wordpress.org/">WordPress</a>'), get_bloginfo('name')); ?> 
     7                <br /><a href="<?php bloginfo('rss2_url'); ?>"><?php _e('Entries (RSS)'); ?></a> 
     8                <?php _e('and'); ?> <a href="<?php bloginfo('comments_rss2_url'); ?>"><?php _e('Comments (RSS)'); ?></a>. 
    109                <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --> 
    1110        </p> 
    1211</div> 
  • wp-content/themes/default/header.php

     
    44<head profile="http://gmpg.org/xfn/11"> 
    55<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 
    66 
    7 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title> 
     7<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; <?php _e('Blog Archive'); ?> <?php } ?> <?php wp_title(); ?></title> 
    88 
    99<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --> 
    1010 
  • wp-content/themes/default/index.php

     
    77                <?php while (have_posts()) : the_post(); ?> 
    88 
    99                        <div class="post" id="post-<?php the_ID(); ?>"> 
    10                                 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> 
    11                                 <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small> 
     10                                <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link: %s'), the_title('', '', false)); ?>"><?php the_title(); ?></a></h2> 
     11                                <small><?php the_date() ?> <!-- by <?php the_author() ?> --></small> 
    1212 
    1313                                <div class="entry"> 
    14                                         <?php the_content('Read the rest of this entry &raquo;'); ?> 
     14                                        <?php the_content(__('Read the rest of this entry &raquo;')); ?> 
    1515                                </div> 
    1616 
    17                                 <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p> 
     17                                <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> <?php printf(__('Posted in %s'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit'), '', ' | '); ?>  <?php comments_popup_link(__('No Comments &#187;'), __('1 Comment &#187;'), __('% Comments &#187;'), '', __('Comments Off')); ?></p> 
    1818                        </div> 
    1919 
    2020                <?php endwhile; ?> 
    2121 
    2222                <div class="navigation"> 
    23                         <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div> 
    24                         <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div> 
     23                        <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries')) ?></div> 
     24                        <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;')) ?></div> 
    2525                </div> 
    2626 
    2727        <?php else : ?> 
    2828 
    29                 <h2 class="center">Not Found</h2> 
    30                 <p class="center">Sorry, but you are looking for something that isn't here.</p> 
     29                <h2 class="center"><?php _e('Not Found'); ?></h2> 
     30                <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p> 
    3131                <?php include (TEMPLATEPATH . "/searchform.php"); ?> 
    3232 
    3333        <?php endif; ?> 
  • wp-content/themes/default/links.php

     
    88 
    99<div id="content" class="widecolumn"> 
    1010 
    11 <h2>Links:</h2> 
     11<h2><?php _e('Links:'); ?></h2> 
    1212<ul> 
    1313<?php get_links_list(); ?> 
    1414</ul> 
  • wp-content/themes/default/page.php

     
    66                <div class="post" id="post-<?php the_ID(); ?>"> 
    77                <h2><?php the_title(); ?></h2> 
    88                        <div class="entry"> 
    9                                 <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?> 
     9                                <?php the_content(__('<p class="serif">Read the rest of this page &raquo;</p>')); ?> 
    1010 
    11                                 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 
     11                                <?php wp_link_pages(array('before' => '<p><strong>'.__('Pages:').'</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 
    1212 
    1313                        </div> 
    1414                </div> 
    1515                <?php endwhile; endif; ?> 
    16         <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> 
     16        <?php edit_post_link(__('Edit this entry.'), '<p>', '</p>'); ?> 
    1717        </div> 
    1818 
    1919<?php get_sidebar(); ?> 
  • wp-content/themes/default/search.php

     
    44 
    55        <?php if (have_posts()) : ?> 
    66 
    7                 <h2 class="pagetitle">Search Results</h2> 
     7                <h2 class="pagetitle"><?php e_('Search Results'); ?></h2> 
    88 
    99                <div class="navigation"> 
    10                         <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div> 
    11                         <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div> 
     10                        <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries')) ?></div> 
     11                        <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;')) ?></div> 
    1212                </div> 
    1313 
    1414 
    1515                <?php while (have_posts()) : the_post(); ?> 
    1616 
    1717                        <div class="post"> 
    18                                 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> 
    19                                 <small><?php the_time('l, F jS, Y') ?></small> 
     18                                <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link: %s'), the_title('', '', false)); ?>"><?php the_title(); ?></a></h3> 
     19                                <small><?php the_date() ?></small> 
    2020 
    21                                 <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p> 
     21                                <p class="postmetadata"><?php the_tags(__('Tags: '), ', ', '<br />'); ?> <?php printf(__('Posted in %s'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit'), '', ' | '); ?>  <?php comments_popup_link(__('No Comments &#187;'), __('1 Comment &#187;'), __('% Comments &#187;'), '', __('Comments Off')); ?></p> 
    2222                        </div> 
    2323 
    2424                <?php endwhile; ?> 
    2525 
    2626                <div class="navigation"> 
    27                         <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div> 
    28                         <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div> 
     27                        <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries')) ?></div> 
     28                        <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;')) ?></div> 
    2929                </div> 
    3030 
    3131        <?php else : ?> 
    3232 
    33                 <h2 class="center">No posts found. Try a different search?</h2> 
     33                <h2 class="center"><?php e_('No posts found. Try a different search?'); ?></h2> 
    3434                <?php include (TEMPLATEPATH . '/searchform.php'); ?> 
    3535 
    3636        <?php endif; ?> 
  • wp-content/themes/default/searchform.php

     
    11<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/"> 
    22<div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" /> 
    3 <input type="submit" id="searchsubmit" value="Search" /> 
     3<input type="submit" id="searchsubmit" value="<?php _e('Search'); ?>" /> 
    44</div> 
    55</form> 
  • wp-content/themes/default/sidebar.php

     
    1818 
    1919                        <?php /* If this is a 404 page */ if (is_404()) { ?> 
    2020                        <?php /* If this is a category archive */ } elseif (is_category()) { ?> 
    21                         <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p> 
     21                        <p><?php printf(__('You are currently browsing the archives for the %s category.'), single_cat_title('', false)); ?></p> 
    2222 
    2323                        <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> 
    24                         <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives 
    25                         for the day <?php the_time('l, F jS, Y'); ?>.</p> 
     24                        <p><?php printf(__('You are currently browsing the <a href="%1s/">%2s></a> blog archives for the day %3s.'), get_bloginfo('url'), get_bloginfo('name'), the_date('', '', '', false)); ?></p> 
    2625 
    2726                        <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 
    28                         <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives 
    29                         for <?php the_time('F, Y'); ?>.</p> 
     27                        <p><?php printf(__('You are currently browsing the <a href="%1s/">%2s</a> blog archives for %3s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('F, Y')); ?></p> 
    3028 
    3129                        <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 
    32                         <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives 
    33                         for the year <?php the_time('Y'); ?>.</p> 
     30                        <p><?php printf(__('You are currently browsing the <a href="%1s/">%2s</a> blog archives for the year %3s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p> 
    3431 
    3532                        <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> 
    36                         <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives 
    37                         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> 
     33                        <p><?php printf(__('You have searched the <a href="%1s/">%2s</a> blog archives for <strong>&#8216;%3s&#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'), get_search_query()); ?></p> 
    3834 
    3935                        <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 
    40                         <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p> 
     36                        <p><?php printf(__('You are currently browsing the <a href="%1s/">%2s</a> blog archives.'), get_bloginfo('url'), get_bloginfo('name')); ?></p> 
    4137 
    4238                        <?php } ?> 
    4339 
    4440                        </li> <?php }?> 
    4541 
    46                         <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> 
     42                        <?php wp_list_pages('title_li=<h2>'.__('Pages').'</h2>' ); ?> 
    4743 
    48                         <li><h2>Archives</h2> 
     44                        <li><h2><?php _e('Archives'); ?></h2> 
    4945                                <ul> 
    5046                                <?php wp_get_archives('type=monthly'); ?> 
    5147                                </ul> 
    5248                        </li> 
    5349 
    54                         <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?> 
     50                        <?php wp_list_categories('show_count=1&title_li=<h2>'.__('Categories').'</h2>'); ?> 
    5551 
    5652                        <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> 
    5753                                <?php wp_list_bookmarks(); ?> 
    5854 
    59                                 <li><h2>Meta</h2> 
     55                                <li><h2><?php _e('Meta'); ?></h2> 
    6056                                <ul> 
    6157                                        <?php wp_register(); ?> 
    6258                                        <li><?php wp_loginout(); ?></li> 
    63                                         <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> 
    64                                         <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li> 
    65                                         <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li> 
     59                                        <li><?php _e('<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> 
     60                                        <li><?php _e('<a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a>'); ?></li> 
     61                                        <li><?php _e('<a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a>'); ?></li> 
    6662                                        <?php wp_meta(); ?> 
    6763                                </ul> 
    6864                                </li> 
  • wp-content/themes/default/single.php

     
    1010                </div> 
    1111 
    1212                <div class="post" id="post-<?php the_ID(); ?>"> 
    13                         <h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2> 
     13                        <h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link: %s'), the_title('', '', false)); ?>"><?php the_title(); ?></a></h2> 
    1414 
    1515                        <div class="entry"> 
    16                                 <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?> 
     16                                <?php the_content(__('<p class="serif">Read the rest of this entry &raquo;</p>')); ?> 
    1717 
    18                                 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 
    19                                 <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?> 
     18                                <?php wp_link_pages(array('before' => '<p><strong>'.__('Pages:').'</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 
     19                                <?php the_tags( '<p>'.__('Tags:').' ', ', ', '</p>'); ?> 
    2020 
    2121                                <p class="postmetadata alt"> 
    2222                                        <small> 
    23                                                 This entry was posted 
    2423                                                <?php /* This is commented, because it requires a little adjusting sometimes. 
    2524                                                        You'll need to download this plugin, and follow the instructions: 
    2625                                                        http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */ 
    2726                                                        /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?> 
    28                                                 on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?> 
    29                                                 and is filed under <?php the_category(', ') ?>. 
    30                                                 You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed. 
     27                                                <?php printf(__('This entry was posted on %1s at %2s and is filed under %3s.'), the_date('', '', '', false), get_the_time(), get_the_category_list(', ')); ?> 
     28                                                <?php printf(__('You can follow any responses to this entry through the <a href="%s">RSS 2.0</a> feed.'), get_post_comments_feed_link()); ?> 
    3129 
    3230                                                <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 
    3331                                                        // Both Comments and Pings are open ?> 
    34                                                         You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site. 
     32                                                        <?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.'), trackback_url(false)); ?> 
    3533 
    3634                                                <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 
    3735                                                        // Only Pings are Open ?> 
    38                                                         Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site. 
     36                                                        <?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.'), trackback_url(false)); ?> 
    3937 
    4038                                                <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 
    4139                                                        // Comments are open, Pings are not ?> 
    42                                                         You can skip to the end and leave a response. Pinging is currently not allowed. 
     40                                                        <?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.'); ?> 
    4341 
    4442                                                <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 
    4543                                                        // Neither Comments, nor Pings are open ?> 
    46                                                         Both comments and pings are currently closed. 
     44                                                        <?php _e('Both comments and pings are currently closed.'); ?> 
    4745 
    48                                                 <?php } edit_post_link('Edit this entry.','',''); ?> 
     46                                                <?php } edit_post_link(__('Edit this entry.'),'',''); ?> 
    4947 
    5048                                        </small> 
    5149                                </p> 
     
    5755 
    5856        <?php endwhile; else: ?> 
    5957 
    60                 <p>Sorry, no posts matched your criteria.</p> 
     58                <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> 
    6159 
    6260<?php endif; ?> 
    6361 
  • wp-includes/comment-template.php

     
    161161        return apply_filters('get_comments_number', $count); 
    162162} 
    163163 
    164 function comments_number( $zero = false, $one = false, $more = false, $deprecated = '' ) { 
     164function comments_number( $zero = false, $one = false, $more = false, $deprecated = '', $display = true ) { 
    165165        global $id; 
    166166        $number = get_comments_number($id); 
    167167 
     
    172172        else // must be one 
    173173                $output = ( false === $one ) ? __('1 Comment') : $one; 
    174174 
    175         echo apply_filters('comments_number', $output, $number); 
     175        if ( $display ) 
     176                echo apply_filters('comments_number', $output, $number); 
     177        else  
     178                return apply_filters('comments_number', $output, $number); 
    176179} 
    177180 
    178181function get_comment_text() {