Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/02/2009 10:26:13 PM (13 years ago)
Author:
apeatling
Message:

Fixes #420

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/buddypress-theme/buddypress-home/comments.php

    r851 r1014  
    77            ?>
    88
    9             <p class="nocomments">This post is password protected. Enter the password to view comments.</p>
     9            <p class="nocomments"><?php _e( 'This post is password protected. Enter the password to view comments.' ) ?></p>
    1010
    1111            <?php
     
    3131            <div class="comment-details">
    3232                <?php bp_comment_author_avatar() ?>
    33                 <p><?php comment_author_link() ?> said:</p>
     33                <p><?php comment_author_link() ?> <?php _e( 'said:', 'buddypress' ) ?></p>
    3434            </div>
    3535
    3636            <div class="comment-content">
    3737                <?php if ($comment->comment_approved == '0') : ?>
    38                     <p><strong>Your comment is awaiting moderation.</strong></p>
     38                    <p><strong><?php _e( 'Your comment is awaiting moderation.', 'buddypress' ) ?></strong></p>
    3939                <?php endif; ?>
    4040                <?php comment_text() ?>
    4141
    42                 <p class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('Edit','&nbsp; [ ',' ]'); ?></p>
     42                <p class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> <?php _e( 'at', 'buddypress' ) ?> <?php comment_time() ?></a> <?php edit_comment_link('Edit','&nbsp; [ ',' ]'); ?></p>
    4343            </div>
    4444            <div class="clear"></div>
     
    6060     <?php else : // comments are closed ?>
    6161        <!-- If comments are closed. -->
    62         <p class="nocomments">Comments are closed.</p>
     62        <p class="nocomments"><?php _e( 'Comments are closed.', 'buddypress' ) ?></p>
    6363    <?php endif; ?>
    6464   
     
    6969    <?php if ('open' == $post->comment_status) : ?>
    7070
    71 <h3 id="respond">Leave a Reply</h3>
     71<h3 id="respond"><?php _e( 'Leave a Reply', 'buddypress' ) ?></h3>
    7272
    7373<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    74 <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
     74<p><?php printf( __( 'You must be <a href="%s">logged in</a> to post a comment.', 'buddypress' ), get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_permalink()) ) ?></p>
    7575<?php else : ?>
    7676
     
    7979<?php if ( $user_ID ) : ?>
    8080
    81 <p>Logged in as <a href="<?php echo site_url(); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo site_url(); ?>/wp-login.php?action=logout" title="Log out of this account">Logout &raquo;</a></p>
     81<p>Logged in as <a href="<?php echo site_url(); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo site_url(); ?>/wp-login.php?action=logout" title="Log out of this account"><?php _e( 'Logout', 'buddypress' ) ?> &raquo;</a></p>
    8282
    8383<?php else : ?>
    8484
    8585<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
    86 <label for="author">Name <?php if ($req) echo "(required)"; ?></label></p>
     86<label for="author"><?php _e( 'Name', 'buddypress' ) ?> <?php if ($req) echo "(required)"; ?></label></p>
    8787
    8888<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
    89 <label for="email">Mail (will not be published) <?php if ($req) echo "(required)"; ?></label></p>
     89<label for="email"><?php _e( 'Mail (will not be published)', 'buddypress' ) ?> <?php if ($req) _e( '(required)', 'buddypress' ); ?></label></p>
    9090
    9191<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
    92 <label for="url">Website</label></p>
     92<label for="url"><?php _e( 'Website', 'buddypress' ) ?></label></p>
    9393
    9494<?php endif; ?>
     
    9898<p><textarea name="comment" id="comment" cols="38" rows="10" tabindex="4"></textarea></p>
    9999
    100 <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
     100<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e ( 'Submit Comment', 'buddypress' ) ?>" />
    101101<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    102102</p>
Note: See TracChangeset for help on using the changeset viewer.