Changeset 14771
- Timestamp:
- 05/20/2010 09:53:11 PM (13 years ago)
- Location:
- trunk/wp-includes/theme-compat
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme-compat/comments-popup.php
r14366 r14771 12 12 <html xmlns="http://www.w3.org/1999/xhtml"> 13 13 <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> 15 15 16 16 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> … … 29 29 add_filter('comment_text', 'popuplinks'); 30 30 if ( have_posts() ) : 31 while ( have_posts()) : the_post();31 while( have_posts()) : the_post(); 32 32 ?> 33 <h2 id="comments"> Comments</h2>33 <h2 id="comments"><?php _e('Comments'); ?></h2> 34 34 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> 36 36 37 37 <?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> 39 39 <?php } ?> 40 40 … … 54 54 <li id="comment-<?php comment_ID() ?>"> 55 55 <?php comment_text() ?> 56 <p><cite><?php comment_type( 'Comment', 'Trackback', 'Pingback'); ?> by <?php comment_author_link() ?> — <?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 — %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> 57 57 </li> 58 58 … … 60 60 </ol> 61 61 <?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> 63 63 <?php } ?> 64 64 65 65 <?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> 68 68 69 69 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 70 70 <?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 »</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 »</a>'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity, wp_logout_url(get_permalink())); ?></p> 72 72 <?php else : ?> 73 73 <p> 74 74 <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> 76 76 </p> 77 77 78 78 <p> 79 79 <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> 81 81 </p> 82 82 83 83 <p> 84 84 <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> 86 86 </p> 87 87 <?php endif; ?> 88 88 89 89 <p> 90 <label for="comment"> Your Comment</label>90 <label for="comment"><?php _e('Your Comment'); ?></label> 91 91 <br /> 92 92 <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> … … 94 94 95 95 <p> 96 96 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 97 97 <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!' ); ?>" /> 99 99 </p> 100 100 <?php do_action('comment_form', $post->ID); ?> 101 101 </form> 102 102 <?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> 104 104 <?php } 105 105 } // end password check 106 106 ?> 107 107 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> 109 109 110 110 <?php // if you delete this the sky will fall on your head 111 endwhile; // endwhilehave_posts()112 else: // have_posts()111 endwhile; // have_posts() 112 else: // have_posts() 113 113 ?> 114 <p> Sorry, no posts matched your criteria.</p>114 <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> 115 115 <?php endif; ?> 116 116 <!-- // this is just the end of the motor - don't touch that line either :) --> 117 117 <?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> 119 119 <?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> 120 120 <script type="text/javascript"> -
trunk/wp-includes/theme-compat/comments.php
r14366 r14771 13 13 if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) 14 14 die ('Please do not load this page directly. Thanks!'); 15 15 16 16 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> 18 18 <?php 19 19 return; … … 24 24 25 25 <?php if ( have_comments() ) : ?> 26 <h3 id="comments"><?php comments_number( 'No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3>26 <h3 id="comments"><?php comments_number(__('No Responses'), __('One Response'), __('% Responses'));?> <?php printf(__('to “%s”'), the_title('', '', false)); ?></h3> 27 27 28 28 <div class="navigation"> … … 32 32 33 33 <ol class="commentlist"> 34 <?php wp_list_comments(); 34 <?php wp_list_comments();?> 35 35 </ol> 36 36 … … 46 46 <?php else : // comments are closed ?> 47 47 <!-- If comments are closed. --> 48 <p class="nocomments"> Comments are closed.</p>48 <p class="nocomments"><?php _e('Comments are closed.'); ?></p> 49 49 50 50 <?php endif; ?> … … 56 56 <div id="respond"> 57 57 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> 59 59 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> 63 63 64 64 <?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> 66 66 <?php else : ?> 67 67 … … 70 70 <?php if ( is_user_logged_in() ) : ?> 71 71 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 »</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 »'); ?></a></p> 73 73 74 74 <?php else : ?> 75 75 76 76 <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> 78 78 79 79 <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> 81 81 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> 84 84 85 85 <?php endif; ?> 86 86 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>--> 88 88 89 89 <p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p> 90 90 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(); ?> 93 93 </p> 94 94 <?php do_action('comment_form', $post->ID); ?> -
trunk/wp-includes/theme-compat/footer.php
r14366 r14771 15 15 <!-- 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. --> 16 16 <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)); ?> --> 22 21 </p> 23 22 </div> -
trunk/wp-includes/theme-compat/sidebar.php
r14366 r14771 19 19 20 20 <!-- 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> 22 22 <p>A little something about you, the author. Nothing lengthy, just an overview.</p> 23 23 </li> … … 30 30 <?php /* If this is a 404 page */ if (is_404()) { ?> 31 31 <?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> 33 33 34 34 <?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> 37 36 38 37 <?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> 41 39 42 40 <?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> 45 42 46 43 <?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>‘%3$s’</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> 49 45 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> 52 48 53 49 <?php } ?> … … 57 53 </ul> 58 54 <ul role="navigation"> 59 <?php wp_list_pages('title_li=<h2> Pages</h2>' ); ?>55 <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?> 60 56 61 <li><h2> Archives</h2>57 <li><h2><?php _e('Archives'); ?></h2> 62 58 <ul> 63 59 <?php wp_get_archives(array('type' => 'monthly')); ?> … … 65 61 </li> 66 62 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>')); ?> 68 64 </ul> 69 65 <ul> … … 71 67 <?php wp_list_bookmarks(); ?> 72 68 73 <li><h2> Meta</h2>69 <li><h2><?php _e('Meta'); ?></h2> 74 70 <ul> 75 71 <?php wp_register(); ?> 76 72 <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> 80 76 <?php wp_meta(); ?> 81 77 </ul>
Note: See TracChangeset
for help on using the changeset viewer.