Changeset 45932 for trunk/src/wp-admin/includes/dashboard.php
- Timestamp:
- 09/03/2019 12:39:13 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r45926 r45932 270 270 if ( $num_posts && $num_posts->publish ) { 271 271 if ( 'post' == $post_type ) { 272 /* translators: %s: number of posts*/272 /* translators: %s: Number of posts. */ 273 273 $text = _n( '%s Post', '%s Posts', $num_posts->publish ); 274 274 } else { 275 /* translators: %s: number of pages*/275 /* translators: %s: Number of pages. */ 276 276 $text = _n( '%s Page', '%s Pages', $num_posts->publish ); 277 277 } … … 288 288 $num_comm = wp_count_comments(); 289 289 if ( $num_comm && ( $num_comm->approved || $num_comm->moderated ) ) { 290 /* translators: %s: number of comments*/290 /* translators: %s: Number of comments. */ 291 291 $text = sprintf( _n( '%s Comment', '%s Comments', $num_comm->approved ), number_format_i18n( $num_comm->approved ) ); 292 292 ?> … … 294 294 <?php 295 295 $moderated_comments_count_i18n = number_format_i18n( $num_comm->moderated ); 296 /* translators: %s: number of comments*/296 /* translators: %s: Number of comments. */ 297 297 $text = sprintf( _n( '%s Comment in moderation', '%s Comments in moderation', $num_comm->moderated ), $moderated_comments_count_i18n ); 298 298 ?> … … 413 413 $c_blogs = get_blog_count(); 414 414 415 /* translators: %s: number of users on the network*/415 /* translators: %s: Number of users on the network. */ 416 416 $user_text = sprintf( _n( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) ); 417 /* translators: %s: number of sites on the network*/417 /* translators: %s: Number of sites on the network. */ 418 418 $blog_text = sprintf( _n( '%s site', '%s sites', $c_blogs ), number_format_i18n( $c_blogs ) ); 419 419 420 /* translators: 1: text indicating the number of sites on the network, 2: text indicating the number of users on the network*/420 /* translators: 1: Text indicating the number of sites on the network, 2: Text indicating the number of users on the network. */ 421 421 $sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text ); 422 422 … … 603 603 '<div class="draft-title"><a href="%s" aria-label="%s">%s</a><time datetime="%s">%s</time></div>', 604 604 esc_url( $url ), 605 /* translators: %s: post title*/605 /* translators: %s: Post title. */ 606 606 esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ), 607 607 esc_html( $title ), … … 664 664 $delete_url = esc_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" ); 665 665 666 $actions['approve'] = "<a href='$approve_url' data-wp-lists='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=approved' class='vim-a aria-button-if-js' aria-label='" . esc_attr__( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>'; 667 $actions['unapprove'] = "<a href='$unapprove_url' data-wp-lists='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=unapproved' class='vim-u aria-button-if-js' aria-label='" . esc_attr__( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>'; 668 $actions['edit'] = "<a href='comment.php?action=editcomment&c={$comment->comment_ID}' aria-label='" . esc_attr__( 'Edit this comment' ) . "'>" . __( 'Edit' ) . '</a>'; 669 $actions['reply'] = '<button type="button" onclick="window.commentReply && commentReply.open(\'' . $comment->comment_ID . '\',\'' . $comment->comment_post_ID . '\');" class="vim-r button-link hide-if-no-js" aria-label="' . esc_attr__( 'Reply to this comment' ) . '">' . __( 'Reply' ) . '</button>'; 670 $actions['spam'] = "<a href='$spam_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID::spam=1' class='vim-s vim-destructive aria-button-if-js' aria-label='" . esc_attr__( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>'; 666 $actions['approve'] = sprintf( 667 '<a href="%s" data-wp-lists="%s" class="vim-a aria-button-if-js" aria-label="%s">%s</a>', 668 $approve_url, 669 "dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=approved", 670 esc_attr__( 'Approve this comment' ), 671 __( 'Approve' ) 672 ); 673 674 $actions['unapprove'] = sprintf( 675 '<a href="%s" data-wp-lists="%s" class="vim-u aria-button-if-js" aria-label="%s">%s</a>', 676 $unapprove_url, 677 "dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=unapproved", 678 esc_attr__( 'Unapprove this comment' ), 679 __( 'Unapprove' ) 680 ); 681 682 $actions['edit'] = sprintf( 683 '<a href="%s" aria-label="%s">%s</a>', 684 "comment.php?action=editcomment&c={$comment->comment_ID}", 685 esc_attr__( 'Edit this comment' ), 686 __( 'Edit' ) 687 ); 688 689 $actions['reply'] = sprintf( 690 '<button type="button" onclick="window.commentReply && commentReply.open(\'%s\',\'%s\');" class="vim-r button-link hide-if-no-js" aria-label="%s">%s</button>', 691 $comment->comment_ID, 692 $comment->comment_post_ID, 693 esc_attr__( 'Reply to this comment' ), 694 __( 'Reply' ) 695 ); 696 697 $actions['spam'] = sprintf( 698 '<a href="%s" data-wp-lists="%s" class="vim-s vim-destructive aria-button-if-js" aria-label="%s">%s</a>', 699 $spam_url, 700 "delete:the-comment-list:comment-{$comment->comment_ID}::spam=1", 701 esc_attr__( 'Mark this comment as spam' ), 702 /* translators: "Mark as spam" link. */ 703 _x( 'Spam', 'verb' ) 704 ); 671 705 672 706 if ( ! EMPTY_TRASH_DAYS ) { 673 $actions['delete'] = "<a href='$delete_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID::trash=1' class='delete vim-d vim-destructive aria-button-if-js' aria-label='" . esc_attr__( 'Delete this comment permanently' ) . "'>" . __( 'Delete Permanently' ) . '</a>'; 707 $actions['delete'] = sprintf( 708 '<a href="%s" data-wp-lists="%s" class="delete vim-d vim-destructive aria-button-if-js" aria-label="%s">%s</a>', 709 $delete_url, 710 "delete:the-comment-list:comment-{$comment->comment_ID}::trash=1", 711 esc_attr__( 'Delete this comment permanently' ), 712 __( 'Delete Permanently' ) 713 ); 674 714 } else { 675 $actions['trash'] = "<a href='$trash_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID::trash=1' class='delete vim-d vim-destructive aria-button-if-js' aria-label='" . esc_attr__( 'Move this comment to the Trash' ) . "'>" . _x( 'Trash', 'verb' ) . '</a>'; 676 } 677 678 $actions['view'] = '<a class="comment-link" href="' . esc_url( get_comment_link( $comment ) ) . '" aria-label="' . esc_attr__( 'View this comment' ) . '">' . __( 'View' ) . '</a>'; 715 $actions['trash'] = sprintf( 716 '<a href="%s" data-wp-lists="%s" class="delete vim-d vim-destructive aria-button-if-js" aria-label="%s">%s</a>', 717 $trash_url, 718 "delete:the-comment-list:comment-{$comment->comment_ID}::trash=1", 719 esc_attr__( 'Move this comment to the Trash' ), 720 _x( 'Trash', 'verb' ) 721 ); 722 } 723 724 $actions['view'] = sprintf( 725 '<a class="comment-link" href="%s" aria-label="%s">%s</a>', 726 esc_url( get_comment_link( $comment ) ), 727 esc_attr__( 'View this comment' ), 728 __( 'View' ) 729 ); 679 730 680 731 /** … … 721 772 if ( $comment_post_link ) { 722 773 printf( 723 /* translators: 1: comment author, 2: post link, 3: notification if the comment is pending*/774 /* translators: 1: Comment author, 2: Post link, 3: Notification if the comment is pending. */ 724 775 __( 'From %1$s on %2$s %3$s' ), 725 776 '<cite class="comment-author">' . get_comment_author_link( $comment ) . '</cite>', … … 729 780 } else { 730 781 printf( 731 /* translators: 1: comment author, 2: notification if the comment is pending*/782 /* translators: 1: Comment author, 2: Notification if the comment is pending. */ 732 783 __( 'From %1$s %2$s' ), 733 784 '<cite class="comment-author">' . get_comment_author_link( $comment ) . '</cite>', … … 758 809 if ( $comment_post_link ) { 759 810 printf( 760 /* translators: 1: type of comment, 2: post link, 3: notification if the comment is pending*/811 /* translators: 1: Type of comment, 2: Post link, 3: Notification if the comment is pending. */ 761 812 _x( '%1$s on %2$s %3$s', 'dashboard' ), 762 813 "<strong>$type</strong>", … … 766 817 } else { 767 818 printf( 768 /* translators: 1: type of comment, 2: notification if the comment is pending*/819 /* translators: 1: Type of comment, 2: Notification if the comment is pending. */ 769 820 _x( '%1$s %2$s', 'dashboard' ), 770 821 "<strong>$type</strong>", … … 886 937 $relative = __( 'Tomorrow' ); 887 938 } elseif ( gmdate( 'Y', $time ) !== $year ) { 888 /* translators: date and time format for recent posts on the dashboard, from a different calendar year, see https://secure.php.net/date */939 /* translators: Date and time format for recent posts on the dashboard, from a different calendar year, see https://secure.php.net/date */ 889 940 $relative = date_i18n( __( 'M jS Y' ), $time ); 890 941 } else { 891 /* translators: date and time format for recent posts on the dashboard, see https://secure.php.net/date */942 /* translators: Date and time format for recent posts on the dashboard, see https://secure.php.net/date */ 892 943 $relative = date_i18n( __( 'M jS' ), $time ); 893 944 } … … 899 950 printf( 900 951 '<li><span>%1$s</span> <a href="%2$s" aria-label="%3$s">%4$s</a></li>', 901 /* translators: 1: relative date, 2: time*/952 /* translators: 1: Relative date, 2: Time. */ 902 953 sprintf( _x( '%1$s, %2$s', 'dashboard' ), $relative, get_the_time() ), 903 954 $recent_post_link, 904 /* translators: %s: post title*/955 /* translators: %s: Post title. */ 905 956 esc_attr( sprintf( __( 'Edit “%s”' ), $draft_or_post_title ) ), 906 957 $draft_or_post_title … … 1147 1198 'https://make.wordpress.org/community/meetups-landing-page', 1148 1199 __( 'Meetups' ), 1149 /* translators: accessibility text*/1200 /* translators: Accessibility text. */ 1150 1201 __( '(opens in a new tab)' ) 1151 1202 ); … … 1159 1210 'https://central.wordcamp.org/schedule/', 1160 1211 __( 'WordCamps' ), 1161 /* translators: accessibility text*/1212 /* translators: Accessibility text. */ 1162 1213 __( '(opens in a new tab)' ) 1163 1214 ); … … 1172 1223 esc_url( _x( 'https://wordpress.org/news/', 'Events and News dashboard widget' ) ), 1173 1224 __( 'News' ), 1174 /* translators: accessibility text*/1225 /* translators: Accessibility text. */ 1175 1226 __( '(opens in a new tab)' ) 1176 1227 ); … … 1264 1315 <?php 1265 1316 printf( 1266 /* translators: %s: the name of a city*/1317 /* translators: %s: The name of a city. */ 1267 1318 __( 'Attend an upcoming event near %s.' ), 1268 1319 '<strong>{{ data.location.description }}</strong>' … … 1311 1362 <?php 1312 1363 printf( 1313 /* translators: 1: the city the user searched for, 2: meetup organization documentation URL*/1364 /* translators: 1: The city the user searched for, 2: Meetup organization documentation URL. */ 1314 1365 __( 'There aren’t any events scheduled near %1$s at the moment. Would you like to <a href="%2$s">organize one</a>?' ), 1315 1366 '{{ data.location.description }}', … … 1321 1372 <?php 1322 1373 printf( 1323 /* translators: %s: meetup organization documentation URL*/1374 /* translators: %s: Meetup organization documentation URL. */ 1324 1375 __( 'There aren’t any events scheduled near you at the moment. Would you like to <a href="%s">organize one</a>?' ), 1325 1376 __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) … … 1470 1521 <?php 1471 1522 $text = sprintf( 1472 /* translators: %s: number of megabytes*/1523 /* translators: %s: Number of megabytes. */ 1473 1524 __( '%s MB Space Allowed' ), 1474 1525 number_format_i18n( $quota ) … … 1484 1535 <?php 1485 1536 $text = sprintf( 1486 /* translators: 1: number of megabytes, 2: percentage*/1537 /* translators: 1: Number of megabytes, 2: Percentage. */ 1487 1538 __( '%1$s MB (%2$s%%) Space Used' ), 1488 1539 number_format_i18n( $used, 2 ), … … 1510 1561 if ( $response['insecure'] ) { 1511 1562 $msg = sprintf( 1512 /* translators: %s: browser name and link*/1563 /* translators: %s: Browser name and link. */ 1513 1564 __( "It looks like you're using an insecure version of %s. Using an outdated browser makes your computer unsafe. For the best WordPress experience, please update your browser." ), 1514 1565 sprintf( '<a href="%s">%s</a>', esc_url( $response['update_url'] ), esc_html( $response['name'] ) ) … … 1516 1567 } else { 1517 1568 $msg = sprintf( 1518 /* translators: %s: browser name and link*/1569 /* translators: %s: Browser name and link. */ 1519 1570 __( "It looks like you're using an old version of %s. For the best WordPress experience, please update your browser." ), 1520 1571 sprintf( '<a href="%s">%s</a>', esc_url( $response['update_url'] ), esc_html( $response['name'] ) ) … … 1538 1589 1539 1590 $notice .= '<p>' . sprintf( 1540 /* translators: 1: browser update URL, 2: browser name, 3: Browse Happy URL*/1591 /* translators: 1: Browser update URL, 2: Browser name, 3: Browse Happy URL. */ 1541 1592 __( '<a href="%1$s" class="update-browser-link">Update %2$s</a> or learn how to <a href="%3$s" class="browse-happy-link">browse happy</a>' ), 1542 1593 esc_attr( $response['update_url'] ), … … 1664 1715 esc_url( wp_get_update_php_url() ), 1665 1716 __( 'Learn more about updating PHP' ), 1666 /* translators: accessibility text*/1717 /* translators: Accessibility text. */ 1667 1718 __( '(opens in a new tab)' ) 1668 1719 ); … … 1719 1770 <p class="hide-if-no-customize"> 1720 1771 <?php 1721 /* translators: %s: URL to Themes panel in Customizer or Themes screen */1772 /* translators: %s: URL to Themes panel in Customizer or Themes screen. */ 1722 1773 printf( __( 'or, <a href="%s">change your theme completely</a>' ), $themes_link ); 1723 1774 ?> … … 1750 1801 if ( current_theme_supports( 'widgets' ) && current_theme_supports( 'menus' ) ) { 1751 1802 $widgets_menus_link = sprintf( 1752 /* translators: 1: URL to Widgets screen, 2: URL to Menus screen */1803 /* translators: 1: URL to Widgets screen, 2: URL to Menus screen. */ 1753 1804 __( 'Manage <a href="%1$s">widgets</a> or <a href="%2$s">menus</a>' ), 1754 1805 admin_url( 'widgets.php' ),
Note: See TracChangeset
for help on using the changeset viewer.