Changeset 37551 for trunk/src/wp-signup.php
- Timestamp:
- 05/24/2016 08:43:23 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-signup.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-signup.php
r37547 r37551 117 117 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 />'; 118 118 119 if ( ! is_user_logged_in() ) {120 if ( ! is_subdomain_install() )119 if ( ! is_user_logged_in() ) { 120 if ( ! is_subdomain_install() ) { 121 121 $site = $current_site->domain . $current_site->path . __( 'sitename' ); 122 else122 } else { 123 123 $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>'; 125 128 } 126 129 … … 462 465 463 466 ?> 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> 465 471 <p> 466 472 <?php printf( 473 /* translators: 1: home URL, 2: site address, 3: login URL, 4: username */ 467 474 __( '<a href="%1$s">%2$s</a> is your new site. <a href="%3$s">Log in</a> as “%4$s” using your existing password.' ), 468 475 esc_url( $home_url ), … … 524 531 ?> 525 532 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> 527 537 <form id="setupform" method="post" action="wp-signup.php" novalidate="novalidate"> 528 538 <input type="hidden" name="stage" value="validate-user-signup" /> … … 750 760 <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> 751 761 <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’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’s incorrect, you will not receive your email.' ), $user_email ); 765 ?></li> 753 766 </ul> 754 767 </p> … … 810 823 $i18n_signup['user'] = _x('user', 'Multisite active signup type'); 811 824 812 if ( is_super_admin() ) 825 if ( is_super_admin() ) { 826 /* translators: 1: type of site sign-up; 2: network settings URL */ 813 827 echo '<div class="mu_alert">' . sprintf( __( 'Greetings Site Administrator! You are currently allowing “%s” 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 } 814 829 815 830 $newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null; … … 820 835 } elseif ( $active_signup == 'blog' && !is_user_logged_in() ) { 821 836 $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 ); 823 839 } else { 824 840 $stage = isset( $_POST['stage'] ) ? $_POST['stage'] : 'default';
Note: See TracChangeset
for help on using the changeset viewer.