Make WordPress Core


Ignore:
Timestamp:
07/26/2015 11:35:47 PM (11 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.

File:
1 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.') );
Note: See TracChangeset for help on using the changeset viewer.