Make WordPress Core

Ticket #32334: 32334.patch

File 32334.patch, 2.9 KB (added by pavelevap, 9 years ago)
  • src/wp-admin/comment.php

     
    6666        $comment_id = absint( $_GET['c'] );
    6767
    6868        if ( !$comment = get_comment( $comment_id ) )
    69                 comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'javascript:history.go(-1)') );
     69                comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'javascript:history.go(-1)') );
    7070
    7171        if ( !current_user_can( 'edit_comment', $comment_id ) )
    7272                comment_footer_die( __('You are not allowed to edit this comment.') );
     
    120120switch ( $action ) {
    121121        case 'spam' :
    122122                $caution_msg = __('You are about to mark the following comment as spam:');
    123                 $button      = __('Mark as Spam');
     123                $button      = _x( 'Mark as Spam', 'comment' );
    124124                break;
    125125        case 'trash' :
    126126                $caution_msg = __('You are about to move the following comment to the Trash:');
     
    174174</tr>
    175175<?php } ?>
    176176<tr>
    177         <th scope="row"><?php _e( 'In Response To' ); ?></th>
     177        <th scope="row"><?php /* translators: column name or table row header */ _e( 'In Response To' ); ?></th>
    178178        <td>
    179179        <?php
    180180                $post_id = $comment->comment_post_ID;
     
    249249        $noredir = isset($_REQUEST['noredir']);
    250250
    251251        if ( !$comment = get_comment($comment_id) )
    252                 comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'edit-comments.php') );
     252                comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'edit-comments.php') );
    253253        if ( !current_user_can( 'edit_comment', $comment->comment_ID ) )
    254254                comment_footer_die( __('You are not allowed to edit comments on this post.') );
    255255
  • src/wp-admin/edit-comments.php

     
    161161        $error_msg = '';
    162162        switch ( $error ) {
    163163                case 1 :
    164                         $error_msg = __( 'Oops, no comment with this ID.' );
     164                        $error_msg = __( 'Invalid comment ID.' );
    165165                        break;
    166166                case 2 :
    167167                        $error_msg = __( 'You are not allowed to edit comments on this post.' );
  • src/wp-admin/includes/class-wp-comments-list-table.php

     
    311311                $columns['comment'] = _x( 'Comment', 'column name' );
    312312
    313313                if ( !$post_id )
    314                         $columns['response'] = _x( 'In Response To', 'column name' );
     314                        /* translators: column name or table row header */
     315                        $columns['response'] = __( 'In Response To' );
    315316
    316317                return $columns;
    317318        }