Changeset 45932 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 09/03/2019 12:39:13 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r45926 r45932 897 897 if ( $number > 1 ) { 898 898 if ( false === $more ) { 899 /* translators: %s: number of comments*/899 /* translators: %s: Number of comments. */ 900 900 $output = sprintf( _n( '%s Comment', '%s Comments', $number ), number_format_i18n( $number ) ); 901 901 } else { 902 902 // % Comments 903 /* translators: If comment number in your language requires declension, 903 /* 904 * translators: If comment number in your language requires declension, 904 905 * translate this to 'on'. Do not translate into your own language. 905 906 */ … … 911 912 // Replace '% Comments' with a proper plural form 912 913 if ( $text && ! preg_match( '/[0-9]+/', $text ) && false !== strpos( $more, '%' ) ) { 913 /* translators: %s: number of comments*/914 /* translators: %s: Number of comments. */ 914 915 $new_text = _n( '%s Comment', '%s Comments', $number ); 915 916 $new_text = trim( sprintf( $new_text, '' ) ); … … 1530 1531 1531 1532 if ( false === $zero ) { 1532 /* translators: %s: post title*/1533 /* translators: %s: Post title. */ 1533 1534 $zero = sprintf( __( 'No Comments<span class="screen-reader-text"> on %s</span>' ), $title ); 1534 1535 } 1535 1536 1536 1537 if ( false === $one ) { 1537 /* translators: %s: post title*/1538 /* translators: %s: Post title. */ 1538 1539 $one = sprintf( __( '1 Comment<span class="screen-reader-text"> on %s</span>' ), $title ); 1539 1540 } 1540 1541 1541 1542 if ( false === $more ) { 1542 /* translators: 1: number of comments, 2: post title*/1543 /* translators: 1: Number of comments, 2: Post title. */ 1543 1544 $more = _n( '%1$s Comment<span class="screen-reader-text"> on %2$s</span>', '%1$s Comments<span class="screen-reader-text"> on %2$s</span>', $number ); 1544 1545 $more = sprintf( $more, number_format_i18n( $number ), $title ); … … 1546 1547 1547 1548 if ( false === $none ) { 1548 /* translators: %s: post title*/1549 /* translators: %s: Post title. */ 1549 1550 $none = sprintf( __( 'Comments Off<span class="screen-reader-text"> on %s</span>' ), $title ); 1550 1551 } … … 1629 1630 'respond_id' => 'respond', 1630 1631 'reply_text' => __( 'Reply' ), 1631 /* translators: Comment reply button text. %s: Comment author name */1632 /* translators: Comment reply button text. %s: Comment author name. */ 1632 1633 'reply_to_text' => __( 'Reply to %s' ), 1633 1634 'login_text' => __( 'Log in to Reply' ), … … 1935 1936 } 1936 1937 if ( false === $replytext ) { 1937 /* translators: %s: author of the comment being replied to*/1938 /* translators: %s: Author of the comment being replied to. */ 1938 1939 $replytext = __( 'Leave a Reply to %s' ); 1939 1940 } … … 2295 2296 2296 2297 $required_text = sprintf( 2297 /* translators: %s: an asterisk symbol (*)*/2298 /* translators: %s: Asterisk symbol (*). */ 2298 2299 ' ' . __( 'Required fields are marked %s' ), 2299 2300 '<span class="required">*</span>' … … 2313 2314 /** This filter is documented in wp-includes/link-template.php */ 2314 2315 'must_log_in' => '<p class="must-log-in">' . sprintf( 2315 /* translators: %s: login URL*/2316 /* translators: %s: Login URL. */ 2316 2317 __( 'You must be <a href="%s">logged in</a> to post a comment.' ), 2317 2318 wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) ) … … 2319 2320 /** This filter is documented in wp-includes/link-template.php */ 2320 2321 'logged_in_as' => '<p class="logged-in-as">' . sprintf( 2321 /* translators: 1: edit user link, 2: accessibility text, 3: user name, 4: logout URL*/2322 /* translators: 1: Edit user link, 2: Accessibility text, 3: User name, 4: Logout URL. */ 2322 2323 __( '<a href="%1$s" aria-label="%2$s">Logged in as %3$s</a>. <a href="%4$s">Log out?</a>' ), 2323 2324 get_edit_user_link(), 2324 /* translators: %s: user name*/2325 /* translators: %s: User name. */ 2325 2326 esc_attr( sprintf( __( 'Logged in as %s. Edit your profile.' ), $user_identity ) ), 2326 2327 $user_identity, … … 2336 2337 'name_submit' => 'submit', 2337 2338 'title_reply' => __( 'Leave a Reply' ), 2338 /* translators: %s: author of the comment being replied to*/2339 /* translators: %s: Author of the comment being replied to. */ 2339 2340 'title_reply_to' => __( 'Leave a Reply to %s' ), 2340 2341 'title_reply_before' => '<h3 id="reply-title" class="comment-reply-title">',
Note: See TracChangeset
for help on using the changeset viewer.