Make WordPress Core

Ticket #769: i18n-theme-comments-php.diff

File i18n-theme-comments-php.diff, 3.9 KB (added by nbachiyski, 21 years ago)
  • wp-content/themes/default/comments.php

    old new  
    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 comments_number(__('No Responses'), __('One Response'), __('% Responses')); ?> <?php printf('to &#8220 %s &#8221;', the_title('', '', false)); ?></h3>
    2424
    2525        <ol class="commentlist">
    2626
    2727        <?php foreach ($comments as $comment) : ?>
    2828
    2929                <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
    30                         <cite><?php comment_author_link() ?></cite> Says:<br />
     30                        <cite><?php comment_author_link() ?></cite> <?php _e('Says:'); ?><br />
    3131                        <!--<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title="<?php comment_date('l, F jS, Y') ?> at <?php comment_time() ?>"><?php /* $entry_datetime = abs(strtotime($post->post_date)); $comment_datetime = abs(strtotime($comment->comment_date)); echo time_since($entry_datetime, $comment_datetime) */ ?></a> after publication. <?php edit_comment_link('e','',''); ?></small>-->
    32                         <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('e','',''); ?></small>
     32                        <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> <?php _e('at');?> <?php comment_time() ?></a> <?php edit_comment_link(__('Edit'),'',''); ?></small>
    3333                       
    3434                        <?php comment_text() ?>
    3535                       
     
    5151               
    5252         <?php else : // comments are closed ?>
    5353                <!-- If comments are closed. -->
    54                 <p class="nocomments">Comments are closed.</p>
     54                <p class="nocomments"><?php _e('Comments are closed.'); ?></p>
    5555               
    5656        <?php endif; ?>
    5757<?php endif; ?>
     
    5959
    6060<?php if ('open' == $post-> comment_status) : ?>
    6161
    62 <h3 id="respond">Leave a Reply</h3>
     62<h3 id="respond"><?php _e('Leave a Reply'); ?></h3>
    6363<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    6464
    6565<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
    6666<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    67 <label for="author"><small>Name <?php if ($req) _e('(required)'); ?></small></label></p>
     67<label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
    6868
    6969<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
    70 <label for="email"><small>Mail (will not be published) <?php if ($req) _e('(required)'); ?></small></label></p>
     70<label for="email"><small><?php _e('Mail (will not be published)'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
    7171
    7272<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
    73 <label for="url"><small>Website</small></label></p>
     73<label for="url"><small><?php _e('Website'); ?></small></label></p>
    7474
    75 <!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
     75<!--<p><small><?php _e('<strong>XHTML:</strong> You can use these tags:'); ?> <?php echo allowed_tags(); ?></small></p>-->
    7676
    7777<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
    7878
    79 <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /></p>
     79<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment'); ?>" /></p>
    8080<?php do_action('comment_form', $post->ID); ?>
    8181
    8282</form>
    8383
    84 <?php endif; // if you delete this the sky will fall on your head ?>
    85  No newline at end of file
     84<?php endif; // if you delete this the sky will fall on your head ?>