Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/02/2011 11:25:03 AM (14 years ago)
Author:
djpaul
Message:

Correct i18n and RTL for comment styles. Finally fixes #3242

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/functions.php

    r4579 r4580  
    439439            <div class="comment-meta">
    440440                <p>
    441                     <a href="<?php echo get_comment_author_url() ?>" rel="nofollow"><?php echo get_comment_author() ?></a> <?php echo _n( 'said:', 'replied:', $depth, 'buddypress' ) ?>
    442                     <span class="time-since">&nbsp; <?php comment_date() ?></span>
    443 
    444                     <?php if ( 1 == $depth ) : ?>
    445                         <a href="#comment-<?php comment_ID() ?>"><?php _e( 'View', 'buddypress' ) ?></a>
    446                     <?php elseif ( comments_open() ) : ?>
    447                         <?php comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => __( 'Reply', 'buddypress' ) ) ) ?>
    448                     <?php endif; ?>
    449 
    450                     <?php edit_comment_link( __( 'Edit', 'buddypress' ) ); ?>
     441                    <?php
     442                        if ( 1 == $depth )
     443                            $links = sprintf( '<a href="#comment-%1$d">%2$s</a>', get_comment_ID(), __( 'View', 'buddypress' ) );
     444                        else
     445                            $links = get_comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => __( 'Reply', 'buddypress' ) ) );
     446
     447                        $links .= sprintf( ' <a class="comment-edit-link" href="%1$s" title="%2$s">%3$s</a>', get_edit_comment_link( $comment->comment_ID ), esc_attr__( 'Edit comment', 'buddypress' ), __( 'Edit', 'buddypress' ) );
     448                        $noun = _n( 'said:', 'replied:', $depth, 'buddypress' );
     449
     450                        /* translators: 1: comment author url, 2: comment author name, 3: "said:" or "replied:", 4: comment date/timestamp, 5: view/reply & edit comment links */
     451                        printf( __( '<a href="%1$s" rel="nofollow">%2$s</a> %3$s <span class="time-since">&nbsp; %4$s</span> %5$s', 'buddypress' ), get_comment_author_url(), get_comment_author(), $noun, get_comment_date(), $links );
     452                    ?>
    451453                </p>
    452454
Note: See TracChangeset for help on using the changeset viewer.