Make WordPress Core


Ignore:
Timestamp:
05/24/2016 08:43:23 PM (10 years ago)
Author:
ocean90
Message:

I18N: Add translators comments to wp-signup.php.

Props ramiy.
Fixes #35730.

File:
1 edited

Legend:

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

    r37547 r37551  
    117117                echo '<input name="blogname" type="text" id="blogname" value="'.esc_attr($blogname).'" maxlength="60" /><span class="suffix_address">.' . ( $site_domain = preg_replace( '|^www\.|', '', $current_site->domain ) ) . '</span><br />';
    118118
    119         if ( !is_user_logged_in() ) {
    120                 if ( !is_subdomain_install() )
     119        if ( ! is_user_logged_in() ) {
     120                if ( ! is_subdomain_install() ) {
    121121                        $site = $current_site->domain . $current_site->path . __( 'sitename' );
    122                 else
     122                } else {
    123123                        $site = __( 'domain' ) . '.' . $site_domain . $current_site->path;
    124                 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>';
     124                }
     125
     126                /* translators: %s: site address */
     127                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>';
    125128        }
    126129
     
    462465
    463466        ?>
    464         <h2><?php printf( __( 'The site %s is yours.' ), $site ); ?></h2>
     467        <h2><?php
     468                /* translators: %s: site name */
     469                printf( __( 'The site %s is yours.' ), $site );
     470        ?></h2>
    465471        <p>
    466472                <?php printf(
     473                        /* translators: 1: home URL, 2: site address, 3: login URL, 4: username */
    467474                        __( '<a href="%1$s">%2$s</a> is your new site. <a href="%3$s">Log in</a> as &#8220;%4$s&#8221; using your existing password.' ),
    468475                        esc_url( $home_url ),
     
    524531        ?>
    525532
    526         <h2><?php printf( __( 'Get your own %s account in seconds' ), get_current_site()->site_name ) ?></h2>
     533        <h2><?php
     534                /* translators: %s: name of the network */
     535                printf( __( 'Get your own %s account in seconds' ), get_current_site()->site_name );
     536        ?></h2>
    527537        <form id="setupform" method="post" action="wp-signup.php" novalidate="novalidate">
    528538                <input type="hidden" name="stage" value="validate-user-signup" />
     
    750760                        <li><p><strong><?php _e( 'Wait a little longer. Sometimes delivery of email can be delayed by processes outside of our control.' ) ?></strong></p></li>
    751761                        <li><p><?php _e( 'Check the junk or spam folder of your email client. Sometime emails wind up there by mistake.' ) ?></p></li>
    752                         <li><?php printf( __( 'Have you entered your email correctly? You have entered %s, if it&#8217;s incorrect, you will not receive your email.' ), $user_email ) ?></li>
     762                        <li><?php
     763                                /* translators: %s: email address */
     764                                printf( __( 'Have you entered your email correctly? You have entered %s, if it&#8217;s incorrect, you will not receive your email.' ), $user_email );
     765                        ?></li>
    753766                </ul>
    754767        </p>
     
    810823$i18n_signup['user'] = _x('user', 'Multisite active signup type');
    811824
    812 if ( is_super_admin() )
     825if ( is_super_admin() ) {
     826        /* translators: 1: type of site sign-up; 2: network settings URL */
    813827        echo '<div class="mu_alert">' . sprintf( __( 'Greetings Site Administrator! You are currently allowing &#8220;%s&#8221; registrations. To change or disable registration go to your <a href="%s">Options page</a>.' ), $i18n_signup[$active_signup], esc_url( network_admin_url( 'settings.php' ) ) ) . '</div>';
     828}
    814829
    815830$newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null;
     
    820835} elseif ( $active_signup == 'blog' && !is_user_logged_in() ) {
    821836        $login_url = wp_login_url( network_site_url( 'wp-signup.php' ) );
    822         echo sprintf( __( 'You must first <a href="%s">log in</a>, and then you can create a new site.' ), $login_url );
     837        /* translators: %s: login URL */
     838        printf( __( 'You must first <a href="%s">log in</a>, and then you can create a new site.' ), $login_url );
    823839} else {
    824840        $stage = isset( $_POST['stage'] ) ?  $_POST['stage'] : 'default';
Note: See TracChangeset for help on using the changeset viewer.