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/includes/plugin-install.php

    r45926 r45932  
    175175            trigger_error(
    176176                sprintf(
    177                     /* translators: %s: support forums URL */
     177                    /* translators: %s: Support forums URL. */
    178178                    __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
    179179                    __( 'https://wordpress.org/support/forums/' )
     
    188188                'plugins_api_failed',
    189189                sprintf(
    190                     /* translators: %s: support forums URL */
     190                    /* translators: %s: Support forums URL. */
    191191                    __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
    192192                    __( 'https://wordpress.org/support/forums/' )
     
    203203                    'plugins_api_failed',
    204204                    sprintf(
    205                         /* translators: %s: support forums URL */
     205                        /* translators: %s: Support forums URL. */
    206206                        __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
    207207                        __( 'https://wordpress.org/support/forums/' )
     
    301301            $tags,
    302302            array(
    303                 /* translators: %s: number of plugins */
     303                /* translators: %s: Number of plugins. */
    304304                'single_text'   => __( '%s plugin' ),
    305                 /* translators: %s: number of plugins */
     305                /* translators: %s: Number of plugins. */
    306306                'multiple_text' => __( '%s plugins' ),
    307307            )
     
    401401        case 'install_plugins_beta':
    402402            printf(
    403                 /* translators: %s: URL to "Features as Plugins" page */
     403                /* translators: %s: URL to "Features as Plugins" page. */
    404404                '<p>' . __( 'You are using a development version of WordPress. These feature plugins are also under development. <a href="%s">Learn more</a>.' ) . '</p>',
    405405                'https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/'
     
    651651                <li><strong><?php _e( 'Last Updated:' ); ?></strong>
    652652                    <?php
    653                     /* translators: %s: Human-readable time difference */
     653                    /* translators: %s: Human-readable time difference. */
    654654                    printf( __( '%s ago' ), human_time_diff( strtotime( $api->last_updated ) ) );
    655655                    ?>
     
    659659                    <strong><?php _e( 'Requires WordPress Version:' ); ?></strong>
    660660                    <?php
    661                     /* translators: %s: version number */
     661                    /* translators: %s: Version number. */
    662662                    printf( __( '%s or higher' ), $api->requires );
    663663                    ?>
     
    669669                    <strong><?php _e( 'Requires PHP Version:' ); ?></strong>
    670670                    <?php
    671                     /* translators: %s: version number */
     671                    /* translators: %s: Version number. */
    672672                    printf( __( '%s or higher' ), $api->requires_php );
    673673                    ?>
     
    679679                    $active_installs_millions = floor( $api->active_installs / 1000000 );
    680680                    printf(
    681                         /* translators: %s: number of millions */
     681                        /* translators: %s: Number of millions. */
    682682                        _nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ),
    683683                        number_format_i18n( $active_installs_millions )
     
    712712                <?php
    713713                printf(
    714                     /* translators: %s: number of ratings */
     714                    /* translators: %s: Number of ratings. */
    715715                    _n( '(based on %s rating)', '(based on %s ratings)', $api->num_ratings ),
    716716                    number_format_i18n( $api->num_ratings )
     
    731731                $aria_label = esc_attr(
    732732                    sprintf(
    733                         /* translators: 1: number of stars (used to determine singular/plural), 2: number of reviews */
     733                        /* translators: 1: Number of stars (used to determine singular/plural), 2: Number of reviews. */
    734734                        _n(
    735735                            'Reviews with %1$d star: %2$s. Opens in a new tab.',
     
    749749                                "https://wordpress.org/support/plugin/{$api->slug}/reviews/?filter={$key}",
    750750                                $aria_label,
    751                                 /* translators: %s: number of stars */
     751                                /* translators: %s: Number of stars. */
    752752                                sprintf( _n( '%d star', '%d stars', $key ), $key )
    753753                            );
     
    800800        if ( current_user_can( 'update_php' ) ) {
    801801            printf(
    802                 /* translators: %s: "Update PHP" page URL */
     802                /* translators: %s: URL to Update PHP page. */
    803803                ' ' . __( '<a href="%s" target="_blank">Click here to learn more about updating PHP</a>.' ),
    804804                esc_url( wp_get_update_php_url() )
     
    821821        if ( current_user_can( 'update_core' ) ) {
    822822            printf(
    823                 /* translators: %s: "Update WordPress" screen URL */
     823                /* translators: %s: URL to WordPress Updates screen. */
    824824                ' ' . __( '<a href="%s" target="_parent">Click here to update WordPress</a>.' ),
    825825                self_admin_url( 'update-core.php' )
     
    873873                break;
    874874            case 'newer_installed':
    875                 /* translators: %s: Plugin version */
     875                /* translators: %s: Plugin version. */
    876876                echo '<a class="button button-primary right disabled">' . sprintf( __( 'Newer Version (%s) Installed' ), $status['version'] ) . '</a>';
    877877                break;
Note: See TracChangeset for help on using the changeset viewer.