Make WordPress Core

Changeset 33436


Ignore:
Timestamp:
07/26/2015 11:35:47 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Comment string tweaks:

  • Merge two strings about an invalid comment ID.
  • Add missing context to 'Mark as Spam' string.
  • Merge two 'In Response To' strings, replace redundant context with a translator comment.

props pavelevap.
fixes #32334.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/comment.php

    r32974 r33436  
    7070
    7171    if ( !$comment = get_comment( $comment_id ) )
    72         comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'javascript:history.go(-1)') );
     72        comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'javascript:history.go(-1)') );
    7373
    7474    if ( !current_user_can( 'edit_comment', $comment_id ) )
     
    124124    case 'spam' :
    125125        $caution_msg = __('You are about to mark the following comment as spam:');
    126         $button      = __('Mark as Spam');
     126        $button      = _x( 'Mark as Spam', 'comment' );
    127127        break;
    128128    case 'trash' :
     
    178178<?php } ?>
    179179<tr>
    180     <th scope="row"><?php _e( 'In Response To' ); ?></th>
     180    <th scope="row"><?php /* translators: column name or table row header */ _e( 'In Response To' ); ?></th>
    181181    <td>
    182182    <?php
     
    253253
    254254    if ( !$comment = get_comment($comment_id) )
    255         comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'edit-comments.php') );
     255        comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'edit-comments.php') );
    256256    if ( !current_user_can( 'edit_comment', $comment->comment_ID ) )
    257257        comment_footer_die( __('You are not allowed to edit comments on this post.') );
  • trunk/src/wp-admin/edit-comments.php

    r32974 r33436  
    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 :
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r33270 r33436  
    358358        $columns['comment'] = _x( 'Comment', 'column name' );
    359359
    360         if ( !$post_id )
    361             $columns['response'] = _x( 'In Response To', 'column name' );
     360        if ( ! $post_id ) {
     361            /* translators: column name or table row header */
     362            $columns['response'] = __( 'In Response To' );
     363        }
    362364
    363365        return $columns;
Note: See TracChangeset for help on using the changeset viewer.