Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (5 years 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/update-core.php

    r45926 r45932  
    6262    } else {
    6363        if ( $current ) {
    64             /* translators: %s: WordPress version */
     64            /* translators: %s: WordPress version. */
    6565            $message     = sprintf( __( 'If you need to re-install version %s, you can do so here:' ), $version_string );
    6666            $submit      = __( 'Re-install Now' );
     
    7575
    7676            $version_url = sprintf(
    77                 /* translators: %s: WordPress version */
     77                /* translators: %s: WordPress version. */
    7878                esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
    7979                sanitize_title( $update->current )
     
    8181
    8282            $php_update_message = '</p><p>' . sprintf(
    83                 /* translators: %s: Update PHP page URL */
     83                /* translators: %s: URL to Update PHP page. */
    8484                __( '<a href="%s">Learn more about updating PHP</a>.' ),
    8585                esc_url( wp_get_update_php_url() )
     
    9393            if ( ! $mysql_compat && ! $php_compat ) {
    9494                $message = sprintf(
    95                     /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Minimum required MySQL version number, 5: Current PHP version number, 6: Current MySQL version number */
     95                    /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Minimum required MySQL version number, 5: Current PHP version number, 6: Current MySQL version number. */
    9696                    __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ),
    9797                    $version_url,
     
    104104            } elseif ( ! $php_compat ) {
    105105                $message = sprintf(
    106                     /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number */
     106                    /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number. */
    107107                    __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ),
    108108                    $version_url,
     
    113113            } elseif ( ! $mysql_compat ) {
    114114                $message = sprintf(
    115                     /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required MySQL version number, 4: Current MySQL version number */
     115                    /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required MySQL version number, 4: Current MySQL version number. */
    116116                    __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires MySQL version %3$s or higher. You are running version %4$s.' ),
    117117                    $version_url,
     
    122122            } else {
    123123                $message = sprintf(
    124                     /* translators: 1: URL to WordPress release notes, 2: WordPress version number including locale if necessary */
     124                    /* translators: 1: URL to WordPress release notes, 2: WordPress version number including locale if necessary. */
    125125                    __( 'You can update to <a href="%1$s">WordPress %2$s</a> automatically:' ),
    126126                    $version_url,
     
    163163        // Partial builds don't need language-specific warnings.
    164164        echo '<p class="hint">' . sprintf(
    165             /* translators: %s: WordPress version */
     165            /* translators: %s: WordPress version. */
    166166            __( 'You are about to install WordPress %s <strong>in English (US).</strong> There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.' ),
    167167            $update->response != 'development' ? $update->current : ''
     
    274274        list( $normalized_version ) = explode( '-', $wp_version );
    275275        echo '<p>' . sprintf(
    276             /* translators: 1: URL to About screen, 2: WordPress version */
     276            /* translators: 1: URL to About screen, 2: WordPress version. */
    277277            __( '<a href="%1$s">Learn more about WordPress %2$s</a>.' ),
    278278            esc_url( self_admin_url( 'about.php' ) ),
     
    337337        // Get plugin compat for running version of WordPress.
    338338        if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $cur_wp_version, '>=' ) ) {
    339             /* translators: %s: WordPress version */
     339            /* translators: %s: WordPress version. */
    340340            $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %s: 100%% (according to its author)' ), $cur_wp_version );
    341341        } else {
    342             /* translators: %s: WordPress version */
     342            /* translators: %s: WordPress version. */
    343343            $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %s: Unknown' ), $cur_wp_version );
    344344        }
     
    346346        if ( $core_update_version ) {
    347347            if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $core_update_version, '>=' ) ) {
    348                 /* translators: %s: WordPress version */
     348                /* translators: %s: WordPress version. */
    349349                $compat .= '<br />' . sprintf( __( 'Compatibility with WordPress %s: 100%% (according to its author)' ), $core_update_version );
    350350            } else {
    351                 /* translators: %s: WordPress version */
     351                /* translators: %s: WordPress version. */
    352352                $compat .= '<br />' . sprintf( __( 'Compatibility with WordPress %s: Unknown' ), $core_update_version );
    353353            }
     
    360360            $compat .= '<br>' . __( 'This update doesn&#8217;t work with your version of PHP.' ) . '&nbsp;';
    361361            $compat .= sprintf(
    362                 /* translators: %s: Update PHP page URL */
     362                /* translators: %s: URL to Update PHP page. */
    363363                __( '<a href="%s">Learn more about updating PHP</a>.' ),
    364364                esc_url( wp_get_update_php_url() )
     
    383383            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
    384384            esc_url( $details_url ),
    385             /* translators: 1: plugin name, 2: version number */
     385            /* translators: 1: Plugin name, 2: Version number. */
    386386            esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_data->Name, $plugin_data->update->new_version ) ),
    387             /* translators: %s: plugin version */
     387            /* translators: %s: Plugin version. */
    388388            sprintf( __( 'View version %s details.' ), $plugin_data->update->new_version )
    389389        );
     
    397397            <label for="<?php echo $checkbox_id; ?>" class="screen-reader-text">
    398398                <?php
    399                 /* translators: %s: plugin name */
     399                /* translators: %s: Plugin name. */
    400400                printf( __( 'Select %s' ), $plugin_data->Name );
    401401                ?>
     
    408408            <?php
    409409            printf(
    410                 /* translators: 1: plugin version, 2: new version */
     410                /* translators: 1: Plugin version, 2: New version. */
    411411                __( 'You have version %1$s installed. Update to %2$s.' ),
    412412                $plugin_data->Version,
     
    452452    <?php
    453453    printf(
    454         /* translators: %s: link to documentation on child themes */
     454        /* translators: %s: Link to documentation on child themes. */
    455455        __( '<strong>Please Note:</strong> Any customizations you have made to theme files will be lost. Please consider using <a href="%s">child themes</a> for modifications.' ),
    456456        __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' )
     
    479479            <label for="<?php echo $checkbox_id; ?>" class="screen-reader-text">
    480480                <?php
    481                 /* translators: %s: theme name */
     481                /* translators: %s: Theme name. */
    482482                printf( __( 'Select %s' ), $theme->display( 'Name' ) );
    483483                ?>
     
    489489            <?php
    490490            printf(
    491                 /* translators: 1: theme version, 2: new version */
     491                /* translators: 1: Theme version, 2: New version. */
    492492                __( 'You have version %1$s installed. Update to %2$s.' ),
    493493                $theme->display( 'Version' ),
     
    622622    show_message(
    623623        '<span class="hide-if-no-js">' . sprintf(
    624             /* translators: 1: WordPress version, 2: URL to About screen */
     624            /* translators: 1: WordPress version, 2: URL to About screen. */
    625625            __( 'Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click <a href="%2$s">here</a>.' ),
    626626            $result,
     
    630630    show_message(
    631631        '<span class="hide-if-js">' . sprintf(
    632             /* translators: 1: WordPress version, 2: URL to About screen */
     632            /* translators: 1: WordPress version, 2: URL to About screen. */
    633633            __( 'Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.' ),
    634634            $result,
     
    746746
    747747    echo '<p>';
    748     /* translators: 1: date, 2: time */
     748    /* translators: 1: Date, 2: Time. */
    749749    printf( __( 'Last checked on %1$s at %2$s.' ), date_i18n( __( 'F j, Y' ), $last_update_check ), date_i18n( __( 'g:i a' ), $last_update_check ) );
    750750    echo ' &nbsp; <a class="button" href="' . esc_url( self_admin_url( 'update-core.php?force-check=1' ) ) . '">' . __( 'Check Again' ) . '</a>';
Note: See TracChangeset for help on using the changeset viewer.