WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (7 weeks 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/class-wp-automatic-updater.php

    r45926 r45932  
    316316        switch ( $type ) {
    317317            case 'core':
    318                 /* translators: %s: WordPress version */
     318                /* translators: %s: WordPress version. */
    319319                $skin->feedback( __( 'Updating to WordPress %s' ), $item->version );
    320                 /* translators: %s: WordPress version */
     320                /* translators: %s: WordPress version. */
    321321                $item_name = sprintf( __( 'WordPress %s' ), $item->version );
    322322                break;
     
    325325                $theme         = wp_get_theme( $upgrader_item );
    326326                $item_name     = $theme->Get( 'Name' );
    327                 /* translators: %s: Theme name */
     327                /* translators: %s: Theme name. */
    328328                $skin->feedback( __( 'Updating theme: %s' ), $item_name );
    329329                break;
     
    332332                $plugin_data   = get_plugin_data( $context . '/' . $upgrader_item );
    333333                $item_name     = $plugin_data['Name'];
    334                 /* translators: %s: Plugin name */
     334                /* translators: %s: Plugin name. */
    335335                $skin->feedback( __( 'Updating plugin: %s' ), $item_name );
    336336                break;
    337337            case 'translation':
    338338                $language_item_name = $upgrader->get_name_for_update( $item );
    339                 /* translators: %s: Project name (plugin, theme, or WordPress) */
     339                /* translators: %s: Project name (plugin, theme, or WordPress). */
    340340                $item_name = sprintf( __( 'Translations for %s' ), $language_item_name );
    341                 /* translators: 1: Project name (plugin, theme, or WordPress), 2: Language */
     341                /* translators: 1: Project name (plugin, theme, or WordPress), 2: Language. */
    342342                $skin->feedback( sprintf( __( 'Updating translations for %1$s (%2$s)…' ), $language_item_name, $item->language ) );
    343343                break;
     
    678678            case 'success':
    679679                $body .= sprintf(
    680                     /* translators: 1: Home URL, 2: WordPress version */
     680                    /* translators: 1: Home URL, 2: WordPress version. */
    681681                    __( 'Howdy! Your site at %1$s has been updated automatically to WordPress %2$s.' ),
    682682                    home_url(),
     
    690690                // Can only reference the About screen if their update was successful.
    691691                list( $about_version ) = explode( '-', $core_update->current, 2 );
    692                 /* translators: %s: WordPress version */
     692                /* translators: %s: WordPress version. */
    693693                $body .= sprintf( __( 'For more on version %s, see the About WordPress screen:' ), $about_version );
    694694                $body .= "\n" . admin_url( 'about.php' );
    695695
    696696                if ( $newer_version_available ) {
    697                     /* translators: %s: WordPress latest version */
     697                    /* translators: %s: WordPress latest version. */
    698698                    $body .= "\n\n" . sprintf( __( 'WordPress %s is also now available.' ), $next_user_core_update->current ) . ' ';
    699699                    $body .= __( 'Updating is easy and only takes a few moments:' );
     
    706706            case 'manual':
    707707                $body .= sprintf(
    708                     /* translators: 1: Home URL, 2: WordPress version */
     708                    /* translators: 1: Home URL, 2: WordPress version. */
    709709                    __( 'Please update your site at %1$s to WordPress %2$s.' ),
    710710                    home_url(),
     
    727727                if ( $newer_version_available ) {
    728728                    $body .= sprintf(
    729                         /* translators: 1: Home URL, 2: WordPress version */
     729                        /* translators: 1: Home URL, 2: WordPress version. */
    730730                        __( 'Your site at %1$s experienced a critical failure while trying to update WordPress to version %2$s.' ),
    731731                        home_url(),
     
    734734                } else {
    735735                    $body .= sprintf(
    736                         /* translators: 1: Home URL, 2: WordPress latest version */
     736                        /* translators: 1: Home URL, 2: WordPress latest version. */
    737737                        __( 'Your site at %1$s experienced a critical failure while trying to update to the latest version of WordPress, %2$s.' ),
    738738                        home_url(),
     
    752752            // Support offer if available.
    753753            $body .= "\n\n" . sprintf(
    754                 /* translators: %s: Support email address */
     754                /* translators: %s: Support email address. */
    755755                __( 'The WordPress team is willing to help you. Forward this email to %s and the team will work with you to make sure your site is working.' ),
    756756                $core_update->support_email
     
    781781        if ( 'critical' == $type && is_wp_error( $result ) ) {
    782782            $body .= "\n***\n\n";
    783             /* translators: %s: WordPress version */
     783            /* translators: %s: WordPress version. */
    784784            $body .= sprintf( __( 'Your site was running version %s.' ), get_bloginfo( 'version' ) );
    785785            $body .= ' ' . __( 'We have some data that describes the error your site encountered.' );
     
    799799                }
    800800                $error_code = $error->get_error_code();
    801                 /* translators: %s: Error code */
     801                /* translators: %s: Error code. */
    802802                $body .= "\n\n" . sprintf( __( 'Error code: %s' ), $error_code );
    803803                if ( 'rollback_was_required' == $error_code ) {
     
    858858        $failures = 0;
    859859
    860         /* translators: %s: Network home URL */
     860        /* translators: %s: Network home URL. */
    861861        $body[] = sprintf( __( 'WordPress site: %s' ), network_home_url( '/' ) );
    862862
     
    865865            $result = $this->update_results['core'][0];
    866866            if ( $result->result && ! is_wp_error( $result->result ) ) {
    867                 /* translators: %s: WordPress version */
     867                /* translators: %s: WordPress version. */
    868868                $body[] = sprintf( __( 'SUCCESS: WordPress was successfully updated to %s' ), $result->name );
    869869            } else {
    870                 /* translators: %s: WordPress version */
     870                /* translators: %s: WordPress version. */
    871871                $body[] = sprintf( __( 'FAILED: WordPress failed to update to %s' ), $result->name );
    872872                $failures++;
     
    890890                $body[] = $messages[ $type ];
    891891                foreach ( wp_list_pluck( $success_items, 'name' ) as $name ) {
    892                     /* translators: %s: name of plugin / theme / translation */
     892                    /* translators: %s: Name of plugin / theme / translation. */
    893893                    $body[] = ' * ' . sprintf( __( 'SUCCESS: %s' ), $name );
    894894                }
     
    905905                foreach ( $this->update_results[ $type ] as $item ) {
    906906                    if ( ! $item->result || is_wp_error( $item->result ) ) {
    907                         /* translators: %s: name of plugin / theme / translation */
     907                        /* translators: %s: Name of plugin / theme / translation. */
    908908                        $body[] = ' * ' . sprintf( __( 'FAILED: %s' ), $item->name );
    909909                        $failures++;
     
    932932            $body[] = '';
    933933
    934             /* translators: Background update failed notification email subject. %s: Site title */
     934            /* translators: Background update failed notification email subject. %s: Site title. */
    935935            $subject = sprintf( __( '[%s] Background Update Failed' ), $site_title );
    936936        } else {
    937             /* translators: Background update finished notification email subject. %s: Site title */
     937            /* translators: Background update finished notification email subject. %s: Site title. */
    938938            $subject = sprintf( __( '[%s] Background Update Finished' ), $site_title );
    939939        }
Note: See TracChangeset for help on using the changeset viewer.