Make WordPress Core


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

    r45926 r45932  
    124124        if ( ! empty( $active_plugins ) ) {
    125125                echo '<div class="updated"><p><strong>' . __( 'Warning:' ) . '</strong> ' . sprintf(
    126                         /* translators: %s: Plugins screen URL */
     126                        /* translators: %s: URL to Plugins screen. */
    127127                        __( 'Please <a href="%s">deactivate your plugins</a> before enabling the Network feature.' ),
    128128                        admin_url( 'plugins.php?plugin_status=active' )
    … …  
    139139                echo '<div class="error"><p><strong>' . __( 'ERROR:' ) . '</strong> ' . __( 'You cannot install a network of sites with your server address.' ) . '</p></div>';
    140140                echo '<p>' . sprintf(
    141                         /* translators: %s: port number */
     141                        /* translators: %s: Port number. */
    142142                        __( 'You cannot use port numbers such as %s.' ),
    143143                        '<code>' . $has_ports . '</code>'
    … …  
    166166                $site_name = $_POST['sitename'];
    167167        } else {
    168                 /* translators: %s: Default network name */
     168                /* translators: %s: Default network title. */
    169169                $site_name = sprintf( __( '%s Sites' ), get_option( 'blogname' ) );
    170170        }
    … …  
    210210                        echo '<p>';
    211211                        printf(
    212                                 /* translators: 1: mod_rewrite, 2: mod_rewrite documentation URL, 3: Google search for mod_rewrite */
     212                                /* translators: 1: mod_rewrite, 2: mod_rewrite documentation URL, 3: Google search for mod_rewrite. */
    213213                                __( 'If %1$s is disabled, ask your administrator to enable that module, or look at the <a href="%2$s">Apache documentation</a> or <a href="%3$s">elsewhere</a> for help setting it up.' ),
    214214                                '<code>mod_rewrite</code>',
    … …  
    233233                                <?php
    234234                                printf(
    235                                         /* translators: 1: hostname */
     235                                        /* translators: 1: Host name. */
    236236                                        _x( 'like <code>site1.%1$s</code> and <code>site2.%1$s</code>', 'subdomain examples' ),
    237237                                        $hostname
    … …  
    245245                                <?php
    246246                                printf(
    247                                         /* translators: 1: hostname */
     247                                        /* translators: 1: Host name. */
    248248                                        _x( 'like <code>%1$s/site1</code> and <code>%1$s/site2</code>', 'subdirectory examples' ),
    249249                                        $hostname
    … …  
    268268                <?php
    269269                printf(
    270                         /* translators: 1: site url, 2: host name, 3: www */
     270                        /* translators: 1: Site URL, 2: Host name, 3: www. */
    271271                        __( 'We recommend you change your siteurl to %1$s before enabling the network feature. It will still be possible to visit your site using the %3$s prefix with an address like %2$s but any links will not have the %3$s prefix.' ),
    272272                        '<code>' . substr( $hostname, 4 ) . '</code>',
    … …  
    282282                                <?php
    283283                                        printf(
    284                                                 /* translators: %s: host name */
     284                                                /* translators: %s: Host name. */
    285285                                                __( 'The internet address of your network will be %s.' ),
    286286                                                '<code>' . $hostname . '</code>'
    … …  
    342342                                        <?php
    343343                                        printf(
    344                                                 /* translators: %s: host name */
     344                                                /* translators: %s: Host name. */
    345345                                                __( 'The internet address of your network will be %s.' ),
    346346                                                '<code>' . $hostname . '</code>'
    … …  
    470470                <?php
    471471                printf(
    472                         /* translators: 1: wp-config.php, 2: location of wp-config file, 3: translated version of "That's all, stop editing! Happy publishing." */
     472                        /* translators: 1: wp-config.php, 2: Location of wp-config file, 3: Translated version of "That's all, stop editing! Happy publishing." */
    473473                        __( 'Add the following to your %1$s file in %2$s <strong>above</strong> the line reading %3$s:' ),
    474474                        '<code>wp-config.php</code>',
    … …  
    602602                        echo '<li><p>';
    603603                        printf(
    604                                 /* translators: 1: a filename like .htaccess, 2: a file path */
     604                                /* translators: 1: File name (.htaccess or web.config), 2: File path. */
    605605                                __( 'Add the following to your %1$s file in %2$s, <strong>replacing</strong> other WordPress rules:' ),
    606606                                '<code>web.config</code>',
    … …  
    644644                echo '<li><p>';
    645645                printf(
    646                         /* translators: 1: a filename like .htaccess, 2: a file path */
     646                        /* translators: 1: File name (.htaccess or web.config), 2: File path. */
    647647                        __( 'Add the following to your %1$s file in %2$s, <strong>replacing</strong> other WordPress rules:' ),
    648648                        '<code>.htaccess</code>',
Note: See TracChangeset for help on using the changeset viewer.