Changeset 42827 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 03/11/2018 04:43:59 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r42710 r42827 1524 1524 switch ( $comment->comment_type ) { 1525 1525 case 'trackback': 1526 /* translators: 1: Post title */1526 /* translators: %s: post title */ 1527 1527 $notify_message = sprintf( __( 'New trackback on your post "%s"' ), $post->post_title ) . "\r\n"; 1528 /* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */1528 /* translators: 1: trackback/pingback website name, 2: website IP address, 3: website hostname */ 1529 1529 $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1530 /* translators: %s: trackback/pingback/comment author URL */ 1530 1531 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1532 /* translators: %s: comment text */ 1531 1533 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; 1532 1534 $notify_message .= __( 'You can see all trackbacks on this post here:' ) . "\r\n"; … … 1535 1537 break; 1536 1538 case 'pingback': 1537 /* translators: 1: Post title */1539 /* translators: %s: post title */ 1538 1540 $notify_message = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n"; 1539 /* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */1541 /* translators: 1: trackback/pingback website name, 2: website IP address, 3: website hostname */ 1540 1542 $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1543 /* translators: %s: trackback/pingback/comment author URL */ 1541 1544 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1545 /* translators: %s: comment text */ 1542 1546 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; 1543 1547 $notify_message .= __( 'You can see all pingbacks on this post here:' ) . "\r\n"; … … 1546 1550 break; 1547 1551 default: // Comments 1552 /* translators: %s: post title */ 1548 1553 $notify_message = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n"; 1549 1554 /* translators: 1: comment author, 2: comment author's IP address, 3: comment author's hostname */ 1550 1555 $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1556 /* translators: %s: comment author email */ 1551 1557 $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; 1558 /* translators: %s: trackback/pingback/comment author URL */ 1552 1559 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1560 /* translators: %s: comment text */ 1553 1561 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; 1554 1562 $notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n"; … … 1562 1570 if ( user_can( $post->post_author, 'edit_comment', $comment->comment_ID ) ) { 1563 1571 if ( EMPTY_TRASH_DAYS ) { 1572 /* translators: Comment moderation. %s: Comment action URL */ 1564 1573 $notify_message .= sprintf( __( 'Trash it: %s' ), admin_url( "comment.php?action=trash&c={$comment->comment_ID}#wpbody-content" ) ) . "\r\n"; 1565 1574 } else { 1575 /* translators: Comment moderation. %s: Comment action URL */ 1566 1576 $notify_message .= sprintf( __( 'Delete it: %s' ), admin_url( "comment.php?action=delete&c={$comment->comment_ID}#wpbody-content" ) ) . "\r\n"; 1567 1577 } 1578 /* translators: Comment moderation. %s: Comment action URL */ 1568 1579 $notify_message .= sprintf( __( 'Spam it: %s' ), admin_url( "comment.php?action=spam&c={$comment->comment_ID}#wpbody-content" ) ) . "\r\n"; 1569 1580 } … … 1688 1699 switch ( $comment->comment_type ) { 1689 1700 case 'trackback': 1690 /* translators: 1: Post title */1701 /* translators: %s: post title */ 1691 1702 $notify_message = sprintf( __( 'A new trackback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; 1692 1703 $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; 1693 /* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */1704 /* translators: 1: trackback/pingback website name, 2: website IP address, 3: website hostname */ 1694 1705 $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1695 /* translators: 1: Trackback/pingback/comment author URL */1706 /* translators: %s: trackback/pingback/comment author URL */ 1696 1707 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1697 1708 $notify_message .= __( 'Trackback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n"; 1698 1709 break; 1699 1710 case 'pingback': 1700 /* translators: 1: Post title */1711 /* translators: %s: post title */ 1701 1712 $notify_message = sprintf( __( 'A new pingback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; 1702 1713 $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; 1703 /* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */1714 /* translators: 1: trackback/pingback website name, 2: website IP address, 3: website hostname */ 1704 1715 $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1705 /* translators: 1: Trackback/pingback/comment author URL */1716 /* translators: %s: trackback/pingback/comment author URL */ 1706 1717 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1707 1718 $notify_message .= __( 'Pingback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n"; 1708 1719 break; 1709 1720 default: // Comments 1710 /* translators: 1: Post title */1721 /* translators: %s: post title */ 1711 1722 $notify_message = sprintf( __( 'A new comment on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n"; 1712 1723 $notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n"; 1713 /* translators: 1: Comment author name, 2: comment author's IP address, 3: comment author's hostname */1724 /* translators: 1: comment author name, 2: comment author's IP address, 3: comment author's hostname */ 1714 1725 $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1715 /* translators: 1: Comment author URL*/1726 /* translators: %s: comment author email */ 1716 1727 $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; 1717 /* translators: 1: Trackback/pingback/comment author URL */1728 /* translators: %s: trackback/pingback/comment author URL */ 1718 1729 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; 1719 /* translators: 1: Comment text */1730 /* translators: %s: comment text */ 1720 1731 $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; 1721 1732 break; 1722 1733 } 1723 1734 1724 /* translators: Comment moderation. 1: Comment action URL */1735 /* translators: Comment moderation. %s: Comment action URL */ 1725 1736 $notify_message .= sprintf( __( 'Approve it: %s' ), admin_url( "comment.php?action=approve&c={$comment_id}#wpbody-content" ) ) . "\r\n"; 1726 1737 1727 1738 if ( EMPTY_TRASH_DAYS ) { 1728 /* translators: Comment moderation. 1: Comment action URL */1739 /* translators: Comment moderation. %s: Comment action URL */ 1729 1740 $notify_message .= sprintf( __( 'Trash it: %s' ), admin_url( "comment.php?action=trash&c={$comment_id}#wpbody-content" ) ) . "\r\n"; 1730 1741 } else { 1731 /* translators: Comment moderation. 1: Comment action URL */1742 /* translators: Comment moderation. %s: Comment action URL */ 1732 1743 $notify_message .= sprintf( __( 'Delete it: %s' ), admin_url( "comment.php?action=delete&c={$comment_id}#wpbody-content" ) ) . "\r\n"; 1733 1744 } 1734 1745 1735 /* translators: Comment moderation. 1: Comment action URL */1746 /* translators: Comment moderation. %s: Comment action URL */ 1736 1747 $notify_message .= sprintf( __( 'Spam it: %s' ), admin_url( "comment.php?action=spam&c={$comment_id}#wpbody-content" ) ) . "\r\n"; 1737 1748 1738 /* translators: Comment moderation. 1: Number of comments awaiting approval */1749 /* translators: Comment moderation. %s: Number of comments awaiting approval */ 1739 1750 $notify_message .= sprintf( 1740 1751 _n(
Note: See TracChangeset
for help on using the changeset viewer.