Ticket #769: i18n-theme-comments-php.diff
| File i18n-theme-comments-php.diff, 3.9 KB (added by , 21 years ago) |
|---|
-
wp-content/themes/default/comments.php
old new 20 20 <!-- You can start editing here. --> 21 21 22 22 <?php if ($comments) : ?> 23 <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3>23 <h3 id="comments"><?php comments_number(__('No Responses'), __('One Response'), __('% Responses')); ?> <?php printf('to “ %s ”', the_title('', '', false)); ?></h3> 24 24 25 25 <ol class="commentlist"> 26 26 27 27 <?php foreach ($comments as $comment) : ?> 28 28 29 29 <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 /> 31 31 <!--<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> 33 33 34 34 <?php comment_text() ?> 35 35 … … 51 51 52 52 <?php else : // comments are closed ?> 53 53 <!-- If comments are closed. --> 54 <p class="nocomments"> Comments are closed.</p>54 <p class="nocomments"><?php _e('Comments are closed.'); ?></p> 55 55 56 56 <?php endif; ?> 57 57 <?php endif; ?> … … 59 59 60 60 <?php if ('open' == $post-> comment_status) : ?> 61 61 62 <h3 id="respond"> Leave a Reply</h3>62 <h3 id="respond"><?php _e('Leave a Reply'); ?></h3> 63 63 <form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 64 64 65 65 <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> 66 66 <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> 68 68 69 69 <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> 71 71 72 72 <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> 74 74 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>--> 76 76 77 77 <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p> 78 78 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> 80 80 <?php do_action('comment_form', $post->ID); ?> 81 81 82 82 </form> 83 83 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 ?>