Make WordPress Core


Ignore:
Timestamp:
03/11/2018 04:43:59 PM (9 years ago)
Author:
SergeyBiryukov
Message:

I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders.

Add missing translator comments in WP_Theme_Install_List_Table and wp_notify_postauthor().
Add missing commas in some translator comments.

Fixes #43523.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/network.php

    r42343 r42827  
    265265                <?php
    266266                printf(
    267                         /* translators: 1: site url 2: host name 3. www */
     267                        /* translators: 1: site url, 2: host name, 3: www */
    268268                        __( '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.' ),
    269269                        '<code>' . substr( $hostname, 4 ) . '</code>',
    … …  
    297297                                <?php
    298298                                        printf(
    299                                                 /* translators: 1: localhost 2: localhost.localdomain */
     299                                                /* translators: 1: localhost, 2: localhost.localdomain */
    300300                                                __( 'Because you are using %1$s, the sites in your WordPress network must use sub-directories. Consider using %2$s if you wish to use sub-domains.' ),
    301301                                                '<code>localhost</code>',
    … …  
    437437                        echo '<strong>' . __( 'Caution:' ) . '</strong> ';
    438438                        printf(
    439                                 /* translators: 1: wp-config.php 2: .htaccess */
     439                                /* translators: 1: wp-config.php, 2: .htaccess */
    440440                                __( 'We recommend you back up your existing %1$s and %2$s files.' ),
    441441                                '<code>wp-config.php</code>',
    … …  
    445445                        echo '<strong>' . __( 'Caution:' ) . '</strong> ';
    446446                        printf(
    447                                 /* translators: 1: wp-config.php 2: web.config */
     447                                /* translators: 1: wp-config.php, 2: web.config */
    448448                                __( 'We recommend you back up your existing %1$s and %2$s files.' ),
    449449                                '<code>wp-config.php</code>',
    … …  
    453453                        echo '<strong>' . __( 'Caution:' ) . '</strong> ';
    454454                        printf(
    455                                 /* translators: 1: wp-config.php */
     455                                /* translators: %s: wp-config.php */
    456456                                __( 'We recommend you back up your existing %s file.' ),
    457457                                '<code>wp-config.php</code>'
    … …  
    467467                        <?php
    468468                        printf(
    469                                 /* translators: 1: wp-config.php 2: location of wp-config file, 3: translated version of "That's all, stop editing! Happy blogging." */
     469                                /* translators: 1: wp-config.php, 2: location of wp-config file, 3: translated version of "That's all, stop editing! Happy blogging." */
    470470                                __( 'Add the following to your %1$s file in %2$s <strong>above</strong> the line reading %3$s:' ),
    471471                                '<code>wp-config.php</code>',
    … …  
    524524        if ( 1 == $num_keys_salts ) {
    525525                printf(
    526                         /* translators: 1: wp-config.php */
     526                        /* translators: %s: wp-config.php */
    527527                        __( 'This unique authentication key is also missing from your %s file.' ),
    528528                        '<code>wp-config.php</code>'
    … …  
    530530        } else {
    531531                printf(
    532                         /* translators: 1: wp-config.php */
     532                        /* translators: %s: wp-config.php */
    533533                        __( 'These unique authentication keys are also missing from your %s file.' ),
    534534                        '<code>wp-config.php</code>'
    … …  
    599599                        echo '<li><p>';
    600600                        printf(
    601                                 /* translators: 1: a filename like .htaccess. 2: a file path. */
     601                                /* translators: 1: a filename like .htaccess, 2: a file path */
    602602                                __( 'Add the following to your %1$s file in %2$s, <strong>replacing</strong> other WordPress rules:' ),
    603603                                '<code>web.config</code>',
    … …  
    641641                echo '<li><p>';
    642642                printf(
    643                         /* translators: 1: a filename like .htaccess. 2: a file path. */
     643                        /* translators: 1: a filename like .htaccess, 2: a file path */
    644644                        __( 'Add the following to your %1$s file in %2$s, <strong>replacing</strong> other WordPress rules:' ),
    645645                        '<code>.htaccess</code>',
Note: See TracChangeset for help on using the changeset viewer.