Make WordPress Core

Changeset 1066 for trunk/wp-comments.php


Ignore:
Timestamp:
04/13/2004 03:31:35 PM (21 years ago)
Author:
alex_t_king
Message:

more localization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments.php

    r1025 r1066  
    66        if (!empty($post->post_password)) { // if there's a password
    77            if ($HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $post->post_password) {  // and it doesn't match the cookie
    8                 echo("<p>Enter your password to view comments.<p>");
    9                 return;
     8?>
     9<p><?php $lang->str('comments_password'); ?><p>
     10<?php
     11                return;
    1012            }
    1113        }
     
    2022<!-- You can start editing here. -->
    2123
    22 <h2 id="comments"><?php comments_number('Comments'); ?>
     24<h2 id="comments"><?php comments_number($lang->str('comments','',1)); ?>
    2325<?php if ('open' == $post->comment_status) { ?>
    24 <a href="#postcomment" title="Leave a comment">&raquo;</a>
     26<a href="#postcomment" title="<?php $lang->str('leave_a_comment'); ?>">&raquo;</a>
    2527<?php } ?>
    2628</h2>
    2729<?php if ('open' == $post->ping_status) { ?>
    28 <p>The <acronym title="Uniform Resource Identifier">URI</acronym> to TrackBack this entry is: <em><?php trackback_url() ?></em></p>
     30<p><?php $lang->str('trackback_uri'); ?> <em><?php trackback_url() ?></em></p>
    2931<?php } ?>
    3032
     
    3537    <li id="comment-<?php comment_ID() ?>">
    3638    <?php comment_text() ?>
    37     <p><cite><?php comment_type(); ?> by <?php comment_author_link() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link('Edit This', ' |'); ?></p>
     39    <p><cite><?php comment_type(); ?> <?php $lang->str('by'); ?> <?php comment_author_link() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link($lang->str('edit_this', '', 1), ' |'); ?></p>
    3840    </li>
    3941
     
    4143</ol>
    4244<?php } else { // this is displayed if there are no comments so far ?>
    43     <p>No comments yet.</p>
     45    <p><?php $lang->str('no_comments'); ?></p>
    4446<?php } ?>
    45 <p><?php comments_rss_link('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'); ?></p>
    46 <h2 id="postcomment">Leave a Comment</h2>
     47<p><?php comments_rss_link($lang->str('comments_rss_post', '', 1)); ?></p>
     48<h2 id="postcomment"><?php $lang->str('leave_a_comment'); ?></h2>
    4749<?php if ('open' == $post->comment_status) { ?>
    48 <p>Line and paragraph breaks automatic, email address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code><?php echo allowed_tags(); ?></code></p>
     50<p><?php $lang->str('comments_instructions'); ?> <code><?php echo allowed_tags(); ?></code></p>
    4951
    5052<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    5153    <p>
    5254      <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
    53        <label for="author">Name</label>
     55       <label for="author"><?php $lang->str('comment_name'); ?></label>
    5456    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    5557    <input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" />
     
    5860    <p>
    5961      <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
    60        <label for="email">Email</label>
     62       <label for="email"><?php $lang->str('comment_email'); ?></label>
    6163    </p>
    6264
    6365    <p>
    6466      <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" />
    65        <label for="url"><acronym title="Uniform Resource Identifier">URI</acronym></label>
     67       <label for="url"><?php $lang->str('comment_uri'); ?></label>
    6668    </p>
    6769
    6870    <p>
    69       <label for="comment">Your Comment</label>
     71      <label for="comment"><?php $lang->str('comment_body'); ?></label>
    7072    <br />
    7173      <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea>
     
    7375
    7476    <p>
    75       <input name="submit" type="submit" tabindex="5" value="Say it!" />
     77      <input name="submit" type="submit" tabindex="5" value="<?php $lang->str('say_it'); ?>" />
    7678    </p>
    7779</form>
    7880<?php } else { // comments are closed ?>
    79 <p>Sorry, the comment form is closed at this time.</p>
     81<p><?php $lang->str('comments_closed'); ?></p>
    8082<?php } ?>
    8183
Note: See TracChangeset for help on using the changeset viewer.