Make WordPress Core


Ignore:
Timestamp:
02/08/2010 05:59:08 PM (16 years ago)
Author:
ryan
Message:

gettext for twentyten. see #12170

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/comments.php

    r13012 r13024  
    2121
    2222<?php if ( have_comments() ) : ?>
    23             <h3 id="comments-title"><?php comments_number('No Responses to', 'One Response to', '% Responses to' );?>  <em><?php the_title(); ?></em></h3>
     23            <h3 id="comments-title"><?php comments_number( __('No Responses to', 'twentyten'), __('One Response to', 'twentyten'), __('% Responses to', 'twentyten') );?>  <em><?php the_title(); ?></em></h3>
    2424
    2525<?php $total_pages = get_comment_pages_count(); if ( $total_pages > 1 ) : // are there comments to navigate through ?>
     
    2828                <div class="nav-next"><?php next_comments_link( __('Newer Comments &rarr;', 'twentyten') ) ?></div>
    2929            </div>
    30 <?php endif; // check for comment navigation ?>                             
     30<?php endif; // check for comment navigation ?>
    3131
    3232            <ol class="commentlist">
     
    3939                <div class="nav-next"><?php next_comments_link( __('Newer Comments &rarr;', 'twentyten') ) ?></div>
    4040            </div>
    41 <?php endif; // check for comment navigation ?>                                         
    42            
     41<?php endif; // check for comment navigation ?>
     42
    4343<?php else : // this is displayed if there are no comments so far ?>
    4444
    45 <?php if ( comments_open() ) : // If comments are open, but there are no comments ?>       
     45<?php if ( comments_open() ) : // If comments are open, but there are no comments ?>
    4646
    4747<?php else : // if comments are closed ?>
    4848
    49         <p class="nocomments">Comments are closed.</p>
     49        <p class="nocomments"><?php _e('Comments are closed.', 'twentyten'); ?></p>
    5050
    5151<?php endif; ?>
     
    5555
    5656            <div id="respond">
    57            
    58                 <h3 id="reply-title"><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?> <small><?php cancel_comment_reply_link('Cancel reply'); ?></small></h3>
    59            
     57
     58                <h3 id="reply-title"><?php comment_form_title( __('Leave a Reply', 'twentyten'), __('Leave a Reply to %s', 'twentyten') ); ?> <small><?php cancel_comment_reply_link( __('Cancel reply', 'twentyten') ); ?></small></h3>
     59
    6060<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
    61                 <p>You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p>
    62                
    63 <?php else : // here's the big comment form ?>         
    64                 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    65                
     61                <p><?php printf( __('You must be <a href="%s">logged in</a> to post a comment.', 'twentyten'), wp_login_url( get_permalink() ) ); ?></p>
     62
     63<?php else : // here's the big comment form ?>
     64                <form action="<?php echo site_url('wp-comments-post.php'); ?>" method="post" id="commentform">
     65
    6666    <?php if ( $user_ID ) : ?>
    6767                    <p id="login"><?php printf(__('<span class="loggedin">Logged in as <a href="%1$s" title="Logged in as %2$s">%2$s</a>.</span> <span class="logout"><a href="%3$s" title="Log out of this account">Log out?</a></span>', 'twentyten'),
    68                         get_option('siteurl') . '/wp-admin/profile.php',
     68                        admin_url('profile.php'),
    6969                        wp_specialchars($user_identity, true),
    7070                        wp_logout_url(get_permalink()) ) ?></p>
    71                    
     71
    7272    <?php else : ?>
    73    
     73
    7474                    <p id="comment-notes"><?php _e('Your email is <em>never</em> published nor shared.', 'twentyten') ?> <?php if ($req) _e('Required fields are marked <span class="required">*</span>', 'twentyten') ?></p>
    75    
    76                    
     75
     76
    7777                    <div id="form-section-author" class="form-section">
    7878                        <div class="form-label"><label for="author"><?php _e('Name', 'twentyten') ?></label> <?php if ($req) _e('<span class="required">*</span>', 'twentyten') ?></div>
    7979                        <div class="form-input"><input id="author" name="author" type="text" value="<?php echo $comment_author ?>" size="30" tabindex="3" /></div>
    8080                    </div><!-- #form-section-author .form-section -->
    81                    
     81
    8282                    <div id="form-section-email" class="form-section">
    8383                        <div class="form-label"><label for="email"><?php _e('Email', 'twentyten') ?></label> <?php if ($req) _e('<span class="required">*</span>', 'twentyten') ?></div>
    8484                        <div class="form-input"><input id="email" name="email" type="text" value="<?php echo $comment_author_email ?>" size="30" tabindex="4" /></div>
    8585                    </div><!-- #form-section-email .form-section -->
    86                    
     86
    8787                    <div id="form-section-url" class="form-section">
    8888                        <div class="form-label"><label for="url"><?php _e('Website', 'twentyten') ?></label></div>
    8989                        <div class="form-input"><input id="url" name="url" type="text" value="<?php echo $comment_author_url ?>" size="30" tabindex="5" /></div>
    9090                    </div><!-- #form-section-url .form-section -->
    91                    
     91
    9292    <?php endif; // if ( $user_ID ) ?>
    93                    
     93
    9494                    <div id="form-section-comment" class="form-section">
    9595                        <div class="form-label"><label for="comment"><?php _e('Comment', 'twentyten') ?></label></div>
    9696                        <div class="form-textarea"><textarea id="comment" name="comment" cols="45" rows="8" tabindex="6"></textarea></div>
    9797                    </div><!-- #form-section-comment .form-section -->
    98                    
     98
    9999                    <div id="form-allowed-tags" class="form-section">
    100100                        <p><span><?php _e('You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:', 'twentyten') ?></span> <code><?php echo allowed_tags(); ?></code></p>
    101101                    </div>
    102                    
     102
    103103                    <?php do_action('comment_form', $post->ID); ?>
    104                    
     104
    105105                    <div class="form-submit"><input id="submit" name="submit" type="submit" value="<?php _e('Post Comment', 'twentyten') ?>" tabindex="7" /><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></div>
    106106
    107 <?php comment_id_fields(); ?>   
     107<?php comment_id_fields(); ?>
    108108
    109                
     109
    110110                </form>
    111            
     111
    112112    <?php endif; // If registration required and not logged in ?>
    113113            </div> <!-- #respond -->
Note: See TracChangeset for help on using the changeset viewer.