Make WordPress Core

Changeset 45102


Ignore:
Timestamp:
04/02/2019 10:17:18 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Site Health: Use an established pattern for numbered placeholders in translator comments in WP_Debug_Data.

See #46683.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r45079 r45102  
    305305                                'label' => __( 'Communication with WordPress.org' ),
    306306                                'value' => sprintf(
    307                                         // translators: %1$s: The IP address WordPress.org resolves to. %2$s: The error returned by the lookup.
     307                                        // translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup.
    308308                                        __( 'Unable to reach WordPress.org at %1$s: %2$s' ),
    309309                                        gethostbyname( 'wordpress.org' ),
    … …  
    678678
    679679                        if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) {
    680                                 // translators: %1$s: Plugin version number. %2$s: Plugin author name.
     680                                // translators: 1: Plugin version number. 2: Plugin author name.
    681681                                $plugin_version_string = sprintf( __( 'Version %1$s by %2$s' ), $plugin_version, $plugin_author );
    682682                        }
    … …  
    709709
    710710                        if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) {
    711                                 // translators: %1$s: Plugin version number. %2$s: Plugin author name.
     711                                // translators: 1: Plugin version number. 2: Plugin author name.
    712712                                $plugin_version_string = sprintf( __( 'Version %1$s by %2$s' ), $plugin_version, $plugin_author );
    713713                        }
    … …  
    799799
    800800                        if ( ! empty( $theme_version ) && ! empty( $theme_author ) ) {
    801                                 // translators: %1$s: Theme version number. %2$s: Theme author name.
     801                                // translators: 1: Theme version number. 2: Theme author name.
    802802                                $theme_version_string = sprintf( __( 'Version %1$s by %2$s' ), $theme_version, wp_kses( $theme_author, array() ) );
    803803                        }
    … …  
    820820                        $info['wp-themes']['fields'][ sanitize_key( $theme->Name ) ] = array(
    821821                                'label' => sprintf(
    822                                         // translators: %1$s: Theme name. %2$s: Theme slug.
     822                                        // translators: 1: Theme name. 2: Theme slug.
    823823                                        __( '%1$s (%2$s)' ),
    824824                                        // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
Note: See TracChangeset for help on using the changeset viewer.