WordPress.org

Make WordPress Core

Changeset 45927


Ignore:
Timestamp:
09/02/2019 12:42:01 AM (3 months ago)
Author:
SergeyBiryukov
Message:

I18N: Split translatable strings located on the same line preceded with a translator comment, where the first string needs that comment, but the second does not.

Props johnbillion.
See #44360.

Location:
trunk/src
Files:
3 edited

Legend:

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

    r45926 r45927  
    3333    <p id="footer-left" class="alignleft">
    3434        <?php
    35         /* translators: %s: https://wordpress.org/ */
    36         $text = sprintf( __( 'Thank you for creating with <a href="%s">WordPress</a>.' ), __( 'https://wordpress.org/' ) );
     35        $text = sprintf(
     36            /* translators: %s: https://wordpress.org/ */
     37            __( 'Thank you for creating with <a href="%s">WordPress</a>.' ),
     38            __( 'https://wordpress.org/' )
     39        );
     40
    3741        /**
    3842         * Filters the "Thank you" text displayed in the admin footer.
  • trunk/src/wp-includes/customize/class-wp-customize-themes-panel.php

    r41788 r45927  
    7272                <span class="preview-notice">
    7373                    <?php
    74                     /* translators: %s: themes panel title in the Customizer */
    75                     echo sprintf( __( 'You are browsing %s' ), '<strong class="panel-title">' . __( 'Themes' ) . '</strong>' ); // Separate strings for consistency with other panels.
     74                    printf(
     75                        /* translators: %s: themes panel title in the Customizer */
     76                        __( 'You are browsing %s' ),
     77                        '<strong class="panel-title">' . __( 'Themes' ) . '</strong>'
     78                    ); // Separate strings for consistency with other panels.
    7679                    ?>
    7780                </span>
  • trunk/src/wp-signup.php

    r44626 r45927  
    132132        }
    133133
    134         /* translators: %s: site address */
    135         echo '<p>(<strong>' . sprintf( __( 'Your address will be %s.' ), $site ) . '</strong>) ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' ) . '</p>';
     134        printf(
     135            '<p>(<strong>%s</strong>) %s</p>',
     136            /* translators: %s: site address */
     137            sprintf( __( 'Your address will be %s.' ), $site ),
     138            __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' )
     139        );
    136140    }
    137141
Note: See TracChangeset for help on using the changeset viewer.