Changeset 39326 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 11/21/2016 02:45:53 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r39323 r39326 1431 1431 switch ( $comment->comment_type ) { 1432 1432 case 'trackback': 1433 /* translators: 1: Post title */ 1433 1434 $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 */ 1435 1436 $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1436 1437 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; … … 1441 1442 break; 1442 1443 case 'pingback': 1444 /* translators: 1: Post title */ 1443 1445 $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 */ 1445 1447 $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1446 1448 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; … … 1589 1591 switch ( $comment->comment_type ) { 1590 1592 case 'trackback': 1593 /* translators: 1: Post title */ 1591 1594 $notify_message = sprintf( __('A new trackback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; 1592 1595 $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 */ 1594 1597 $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 */ 1595 1599 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1596 1600 $notify_message .= __('Trackback excerpt: ') . "\r\n" . $comment_content . "\r\n\r\n"; 1597 1601 break; 1598 1602 case 'pingback': 1603 /* translators: 1: Post title */ 1599 1604 $notify_message = sprintf( __('A new pingback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; 1600 1605 $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 */ 1602 1607 $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 */ 1603 1609 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1604 1610 $notify_message .= __('Pingback excerpt: ') . "\r\n" . $comment_content . "\r\n\r\n"; 1605 1611 break; 1606 1612 default: // Comments 1613 /* translators: 1: Post title */ 1607 1614 $notify_message = sprintf( __('A new comment on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; 1608 1615 $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 */ 1609 1617 $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 */ 1610 1619 $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; 1620 /* translators: 1: Trackback/pingback/comment author URL */ 1611 1621 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1622 /* translators: 1: Comment text */ 1612 1623 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; 1613 1624 break; 1614 1625 } 1615 1626 1627 /* translators: Comment moderation. 1: Comment action URL */ 1616 1628 $notify_message .= sprintf( __( 'Approve it: %s' ), admin_url( "comment.php?action=approve&c={$comment_id}#wpbody-content" ) ) . "\r\n"; 1617 1629 1618 if ( EMPTY_TRASH_DAYS ) 1630 if ( EMPTY_TRASH_DAYS ) { 1631 /* translators: Comment moderation. 1: Comment action URL */ 1619 1632 $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 */ 1621 1635 $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 */ 1623 1639 $notify_message .= sprintf( __( 'Spam it: %s' ), admin_url( "comment.php?action=spam&c={$comment_id}#wpbody-content" ) ) . "\r\n"; 1624 1640 1641 /* translators: Comment moderation. 1: Number of comments awaiting approval */ 1625 1642 $notify_message .= sprintf( _n('Currently %s comment is waiting for approval. Please visit the moderation panel:', 1626 1643 '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.