WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (2 months ago)
Author:
SergeyBiryukov
Message:

I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

File:
1 edited

Legend:

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

    r45926 r45932  
    534534    <div class="trash-undo-inside">
    535535        <?php
    536         /* translators: %s: comment author, filled by AJAX */
     536        /* translators: %s: Comment author, filled by AJAX. */
    537537        printf( __( 'Comment by %s moved to the trash.' ), '<strong></strong>' );
    538538        ?>
     
    543543    <div class="spam-undo-inside">
    544544        <?php
    545         /* translators: %s: comment author, filled by AJAX */
     545        /* translators: %s: Comment author, filled by AJAX. */
    546546        printf( __( 'Comment by %s marked as spam.' ), '<strong></strong>' );
    547547        ?>
     
    813813        $monthtext = $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) );
    814814        $month    .= "\t\t\t" . '<option value="' . $monthnum . '" data-text="' . $monthtext . '" ' . selected( $monthnum, $mm, false ) . '>';
    815         /* translators: 1: month number (01, 02, etc.), 2: month abbreviation */
     815        /* translators: 1: Month number (01, 02, etc.), 2: Month abbreviation. */
    816816        $month .= sprintf( __( '%1$s-%2$s' ), $monthnum, $monthtext ) . "</option>\n";
    817817    }
     
    824824
    825825    echo '<div class="timestamp-wrap">';
    826     /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */
     826    /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */
    827827    printf( __( '%1$s %2$s, %3$s @ %4$s:%5$s' ), $month, $day, $year, $hour, $minute );
    828828
     
    972972            '<label for="upload">%s</label> (%s)',
    973973            __( 'Choose a file from your computer:' ),
    974             /* translators: %s: maximum allowed file size */
     974            /* translators: %s: Maximum allowed file size. */
    975975            sprintf( __( 'Maximum size: %s' ), $size )
    976976        );
     
    11261126    echo '<p>';
    11271127    if ( $plugin ) {
    1128         /* translators: %s: the name of the plugin that generated this meta box. */
     1128        /* translators: %s: The name of the plugin that generated this meta box. */
    11291129        printf( __( "This meta box, from the %s plugin, isn't compatible with the block editor." ), "<strong>{$plugin['Name']}</strong>" );
    11301130    } else {
     
    13101310                        echo '<button type="button" class="handlediv" aria-expanded="true">';
    13111311                        echo '<span class="screen-reader-text">' . sprintf(
    1312                             /* translators: meta box title */
     1312                            /* translators: Meta box title. */
    13131313                            __( 'Toggle panel: %s' ),
    13141314                            $widget_title
     
    13331333                                <p>
    13341334                                    <?php
    1335                                         /* translators: %s: the name of the plugin that generated this meta box. */
     1335                                        /* translators: %s: The name of the plugin that generated this meta box. */
    13361336                                        printf( __( "This meta box, from the %s plugin, isn't compatible with the block editor." ), "<strong>{$plugin['Name']}</strong>" );
    13371337                                    ?>
     
    25122512
    25132513    if ( $parsed_args['number'] ) {
    2514         /* translators: 1: the rating, 2: the number of ratings */
     2514        /* translators: 1: The rating, 2: The number of ratings. */
    25152515        $format = _n( '%1$s rating based on %2$s rating', '%1$s rating based on %2$s ratings', $parsed_args['number'] );
    25162516        $title  = sprintf( $format, number_format_i18n( $rating, 1 ), number_format_i18n( $parsed_args['number'] ) );
    25172517    } else {
    2518         /* translators: %s: the rating */
     2518        /* translators: %s: The rating. */
    25192519        $title = sprintf( __( '%s rating' ), number_format_i18n( $rating, 1 ) );
    25202520    }
Note: See TracChangeset for help on using the changeset viewer.