Make WordPress Core


Ignore:
Timestamp:
10/30/2015 08:51:24 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Don't use <strong> in translatable strings in wp-signup.php.

Add translator commments.

Props ramiy.
Fixes #34502.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-signup.php

    r35447 r35451  
    582582function confirm_user_signup($user_name, $user_email) {
    583583    ?>
    584     <h2><?php printf( __( '%s is your new username' ), $user_name) ?></h2>
     584    <h2><?php /* translators: %s: username */
     585    printf( __( '%s is your new username' ), $user_name) ?></h2>
    585586    <p><?php _e( 'But, before you can start using your new username, <strong>you must activate it</strong>.' ) ?></p>
    586     <p><?php printf( __( 'Check your inbox at <strong>%s</strong> and click the link given.' ), $user_email ); ?></p>
     587    <p><?php /* translators: %s: email address */
     588    printf( __( 'Check your inbox at %s and click the link given.' ), '<strong>' . $user_email . '</strong>' ); ?></p>
    587589    <p><?php _e( 'If you do not activate your username within two days, you will have to sign up again.' ); ?></p>
    588590    <?php
     
    725727function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $user_email = '', $meta = array() ) {
    726728    ?>
    727     <h2><?php printf( __( 'Congratulations! Your new site, %s, is almost ready.' ), "<a href='http://{$domain}{$path}'>{$blog_title}</a>" ) ?></h2>
     729    <h2><?php /* translators: %s: site address */
     730    printf( __( 'Congratulations! Your new site, %s, is almost ready.' ), "<a href='http://{$domain}{$path}'>{$blog_title}</a>" ) ?></h2>
    728731
    729732    <p><?php _e( 'But, before you can start using your site, <strong>you must activate it</strong>.' ) ?></p>
    730     <p><?php printf( __( 'Check your inbox at <strong>%s</strong> and click the link given.' ),  $user_email) ?></p>
     733    <p><?php /* translators: %s: email address */
     734    printf( __( 'Check your inbox at %s and click the link given.' ), '<strong>' . $user_email . '</strong>' ); ?></p>
    731735    <p><?php _e( 'If you do not activate your site within two days, you will have to sign up again.' ); ?></p>
    732736    <h2><?php _e( 'Still waiting for your email?' ); ?></h2>
Note: See TracChangeset for help on using the changeset viewer.