Make WordPress Core


Ignore:
Timestamp:
11/21/2016 02:45:53 AM (10 years ago)
Author:
johnbillion
Message:

I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment.

See #38882

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r39323 r39326  
    14311431        switch ( $comment->comment_type ) {
    14321432                case 'trackback':
     1433                        /* translators: 1: Post title */
    14331434                        $notify_message  = sprintf( __( 'New trackback on your post "%s"' ), $post->post_title ) . "\r\n";
    1434                         /* translators: 1: website name, 2: website IP, 3: website hostname */
     1435                        /* translators: 1: Trackback/pingback website name, 2: website IP, 3: website hostname */
    14351436                        $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    14361437                        $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
     
    14411442                        break;
    14421443                case 'pingback':
     1444                        /* translators: 1: Post title */
    14431445                        $notify_message  = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n";
    1444                         /* translators: 1: website name, 2: website IP, 3: website hostname */
     1446                        /* translators: 1: Trackback/pingback website name, 2: website IP, 3: website hostname */
    14451447                        $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    14461448                        $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
     
    15891591        switch ( $comment->comment_type ) {
    15901592                case 'trackback':
     1593                        /* translators: 1: Post title */
    15911594                        $notify_message  = sprintf( __('A new trackback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n";
    15921595                        $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n";
    1593                         /* translators: 1: website name, 2: website IP, 3: website hostname */
     1596                        /* translators: 1: Trackback/pingback website name, 2: website IP, 3: website hostname */
    15941597                        $notify_message .= sprintf( __( 'Website: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
     1598                        /* translators: 1: Trackback/pingback/comment author URL */
    15951599                        $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
    15961600                        $notify_message .= __('Trackback excerpt: ') . "\r\n" . $comment_content . "\r\n\r\n";
    15971601                        break;
    15981602                case 'pingback':
     1603                        /* translators: 1: Post title */
    15991604                        $notify_message  = sprintf( __('A new pingback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n";
    16001605                        $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n";
    1601                         /* translators: 1: website name, 2: website IP, 3: website hostname */
     1606                        /* translators: 1: Trackback/pingback website name, 2: website IP, 3: website hostname */
    16021607                        $notify_message .= sprintf( __( 'Website: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
     1608                        /* translators: 1: Trackback/pingback/comment author URL */
    16031609                        $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
    16041610                        $notify_message .= __('Pingback excerpt: ') . "\r\n" . $comment_content . "\r\n\r\n";
    16051611                        break;
    16061612                default: // Comments
     1613                        /* translators: 1: Post title */
    16071614                        $notify_message  = sprintf( __('A new comment on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n";
    16081615                        $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n";
     1616                        /* translators: 1: Comment author name, 2: comment author's IP, 3: comment author IP's hostname */
    16091617                        $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
     1618                        /* translators: 1: Comment author URL */
    16101619                        $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n";
     1620                        /* translators: 1: Trackback/pingback/comment author URL */
    16111621                        $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
     1622                        /* translators: 1: Comment text */
    16121623                        $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n";
    16131624                        break;
    16141625        }
    16151626
     1627        /* translators: Comment moderation. 1: Comment action URL */
    16161628        $notify_message .= sprintf( __( 'Approve it: %s' ), admin_url( "comment.php?action=approve&c={$comment_id}#wpbody-content" ) ) . "\r\n";
    16171629
    1618         if ( EMPTY_TRASH_DAYS )
     1630        if ( EMPTY_TRASH_DAYS ) {
     1631                /* translators: Comment moderation. 1: Comment action URL */
    16191632                $notify_message .= sprintf( __( 'Trash it: %s' ), admin_url( "comment.php?action=trash&c={$comment_id}#wpbody-content" ) ) . "\r\n";
    1620         else
     1633        } else {
     1634                /* translators: Comment moderation. 1: Comment action URL */
    16211635                $notify_message .= sprintf( __( 'Delete it: %s' ), admin_url( "comment.php?action=delete&c={$comment_id}#wpbody-content" ) ) . "\r\n";
    1622 
     1636        }
     1637
     1638        /* translators: Comment moderation. 1: Comment action URL */
    16231639        $notify_message .= sprintf( __( 'Spam it: %s' ), admin_url( "comment.php?action=spam&c={$comment_id}#wpbody-content" ) ) . "\r\n";
    16241640
     1641        /* translators: Comment moderation. 1: Number of comments awaiting approval */
    16251642        $notify_message .= sprintf( _n('Currently %s comment is waiting for approval. Please visit the moderation panel:',
    16261643                'Currently %s comments are waiting for approval. Please visit the moderation panel:', $comments_waiting), number_format_i18n($comments_waiting) ) . "\r\n";
Note: See TracChangeset for help on using the changeset viewer.