Make WordPress Core


Ignore:
Timestamp:
03/02/2009 07:20:19 PM (16 years ago)
Author:
ryan
Message:

Use _x() and extracted comments. Props nbachiyski. see #9112

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r10666 r10680  
    527527        //$actions['quickedit'] = '<a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$comment->comment_post_ID.'\',\'edit\');return false;" class="vim-q" title="'.__('Quick Edit').'" href="#">' . __('Quick&nbsp;Edit') . '</a>';
    528528        $actions['reply'] = '<a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$comment->comment_post_ID.'\');return false;" class="vim-r hide-if-no-js" title="'.__('Reply to this comment').'" href="#">' . __('Reply') . '</a>';
    529         $actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . __( 'Mark this comment as spam' ) . "'>" . _c( 'Spam|verb' ) . '</a>';
     529        $actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . __( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */  _x( 'Spam', 'verb' ) . '</a>';
    530530        $actions['delete'] = "<a href='$delete_url' class='delete:the-comment-list:comment-$comment->comment_ID delete vim-d vim-destructive'>" . __('Delete') . '</a>';
    531531
     
    567567                $type = wp_specialchars( $type );
    568568            ?>
    569 
    570             <h4 class="comment-meta"><?php printf( __( '%1$s on %2$s' ), "<strong>$type</strong>", $comment_post_link ); ?></h4>
     569            <?php /* translators: %1$s is type of comment, %2$s is link to the post */ ?>
     570            <h4 class="comment-meta"><?php printf( _x( '%1$s on %2$s', 'dashboard' ), "<strong>$type</strong>", $comment_post_link ); ?></h4>
    571571            <p class="comment-author"><?php comment_author_link(); ?></p>
    572572
     
    631631
    632632        if ( $link )
    633             $text = _c( '%1$s linked here <a href="%2$s">saying</a>, "%3$s"|feed_display' );
     633            /* translators: incoming links feed, %1$s is other person, %3$s is content */
     634            $text = __( '%1$s linked here <a href="%2$s">saying</a>, "%3$s"' );
    634635        else
    635             $text = _c( '%1$s linked here saying, "%3$s"|feed_display' );
     636            /* translators: incoming links feed, %1$s is other person, %3$s is content */
     637            $text = __( '%1$s linked here saying, "%3$s"' );
    636638
    637639        if ( $show_date ) {
    638640            if ( $show_author || $show_summary )
    639                 $text .= _c( ' on %4$s|feed_display' );
     641                /* translators: incoming links feed, %4$s is the date */
     642                $text .= ' ' . __( 'on %4$s' );
    640643            $date = wp_specialchars( strip_tags( $item->get_date() ) );
    641644            $date = strtotime( $date );
     
    643646        }
    644647
    645         echo "\t<li>" . sprintf( _c( "$text|feed_display" ), $publisher, $link, $content, $date ) . "</li>\n";
     648        echo "\t<li>" . sprintf( $text, $publisher, $link, $content, $date ) . "</li>\n";
    646649    }
    647650
Note: See TracChangeset for help on using the changeset viewer.