Changeset 14070 for trunk/wp-signup.php
- Timestamp:
- 04/11/2010 10:41:54 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-signup.php
r13733 r14070 84 84 else 85 85 print __( 'domain.' ) . $current_site->domain . $current_site->path; 86 echo '.</strong> ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed so choose carefully!)' ) . '</p>';86 echo '.</strong> ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' ) . '</p>'; 87 87 } 88 88 … … 131 131 } 132 132 echo '<input name="user_name" type="text" id="user_name" value="'. esc_attr($user_name) .'" maxlength="50" /><br />'; 133 _e( '(Must be at least 4 characters, letters and numbers only.)');134 ?> 135 136 <label for="user_email"><?php _e( 'Email Address:') ?></label>133 _e( '(Must be at least 4 characters, letters and numbers only.)' ); 134 ?> 135 136 <label for="user_email"><?php _e( 'Email Address:' ) ?></label> 137 137 <?php if ( $errmsg = $errors->get_error_message('user_email') ) { ?> 138 138 <p class="error"><?php echo $errmsg ?></p> … … 141 141 <?php 142 142 if ( $errmsg = $errors->get_error_message('generic') ) { 143 echo '<p class="error">' .$errmsg.'</p>';143 echo '<p class="error">' . $errmsg . '</p>'; 144 144 } 145 145 do_action( 'signup_extra_fields', $errors ); … … 163 163 $errors = $filtered_results['errors']; 164 164 165 echo '<h2>' . sprintf( __( 'Get <em>another</em> %s site in seconds'), $current_site->site_name ) . '</h2>';165 echo '<h2>' . sprintf( __( 'Get <em>another</em> %s site in seconds' ), $current_site->site_name ) . '</h2>'; 166 166 167 167 if ( $errors->get_error_code() ) { 168 echo "<p>" . __('There was a problem, please correct the form below and try again.') . "</p>";169 } 170 ?> 171 <p><?php printf( __("Welcome back, %s. By filling out the form below, you can <strong>add another site to your account</strong>. There is no limit to the number of sites you can have, so create to your heart's content, but write responsibly."), $current_user->display_name) ?></p>168 echo '<p>' . __( 'There was a problem, please correct the form below and try again.' ) . '</p>'; 169 } 170 ?> 171 <p><?php printf( __( 'Welcome back, %s. By filling out the form below, you can <strong>add another site to your account</strong>. There is no limit to the number of sites you can have, so create to your heart’s content, but write responsibly!' ), $current_user->display_name ) ?></p> 172 172 173 173 <?php … … 175 175 if ( !empty($blogs) ) { ?> 176 176 <p> 177 <?php _e( 'Sites you are already a member of:') ?>177 <?php _e( 'Sites you are already a member of:' ) ?> 178 178 <ul> 179 179 <?php foreach ( $blogs as $blog ) { … … 184 184 <?php } ?> 185 185 186 <p><?php _e( "If you’re not going to use a great site domain, leave it for a new user. Now have at it!") ?></p>186 <p><?php _e( 'If you’re not going to use a great site domain, leave it for a new user. Now have at it!' ) ?></p> 187 187 <form id="setupform" method="post" action="wp-signup.php"> 188 188 <input type="hidden" name="stage" value="gimmeanotherblog" /> 189 189 <?php do_action( "signup_hidden_fields" ); ?> 190 190 <?php show_blog_form($blogname, $blog_title, $errors); ?> 191 <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site') ?>" /></p>191 <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p> 192 192 </form> 193 193 <?php … … 209 209 210 210 $public = (int) $_POST['blog_public']; 211 $meta = apply_filters( 'signup_create_blog_meta', array ('lang_id' => 1, 'public' => $public)); // deprecated212 $meta = apply_filters( "add_signup_meta", $meta );211 $meta = apply_filters( 'signup_create_blog_meta', array( 'lang_id' => 1, 'public' => $public ) ); // deprecated 212 $meta = apply_filters( 'add_signup_meta', $meta ); 213 213 214 214 wpmu_create_blog( $domain, $path, $blog_title, $current_user->id, $meta, $wpdb->siteid ); … … 219 219 function confirm_another_blog_signup($domain, $path, $blog_title, $user_name, $user_email = '', $meta = '') { 220 220 ?> 221 <h2><?php printf( __('The site %s is yours.'), "<a href='http://{$domain}{$path}'>{$blog_title}</a>" ) ?></h2>221 <h2><?php printf( __( 'The site %s is yours.' ), "<a href='http://{$domain}{$path}'>{$blog_title}</a>" ) ?></h2> 222 222 <p> 223 <?php printf( __('<a href="http://%1$s">http://%2$s</a> is your new site. <a href="%3$s">Login</a> as "%4$s" using your existing password.'), $domain.$path, $domain.$path, "http://" . $domain.$path . "wp-login.php", $user_name) ?>223 <?php printf( __( '<a href="http://%1$s">http://%2$s</a> is your new site. <a href="%3$s">Log in</a> as “%4$s” using your existing password.' ), $domain.$path, $domain.$path, "http://" . $domain.$path . "wp-login.php", $user_name ) ?> 224 224 </p> 225 225 <?php 226 do_action( 'signup_finished');226 do_action( 'signup_finished' ); 227 227 } 228 228 … … 248 248 ?> 249 249 250 <h2><?php printf( __( 'Get your own %s account in seconds'), $current_site->site_name ) ?></h2>250 <h2><?php printf( __( 'Get your own %s account in seconds' ), $current_site->site_name ) ?></h2> 251 251 <form id="setupform" method="post" action="wp-signup.php"> 252 252 <input type="hidden" name="stage" value="validate-user-signup" /> … … 295 295 function confirm_user_signup($user_name, $user_email) { 296 296 ?> 297 <h2><?php printf( __('%s is your new username'), $user_name) ?></h2>298 <p><?php _e( 'But, before you can start using your new username, <strong>you must activate it</strong>.') ?></p>299 <p><?php printf(__( 'Check your inbox at <strong>%1$s</strong> and click the link given.'), $user_email) ?></p>300 <p><?php _e( 'If you do not activate your username within two days, you will have to sign up again.'); ?></p>301 <?php 302 do_action( 'signup_finished');297 <h2><?php printf( __( '%s is your new username' ), $user_name) ?></h2> 298 <p><?php _e( 'But, before you can start using your new username, <strong>you must activate it</strong>.' ) ?></p> 299 <p><?php printf(__( 'Check your inbox at <strong>%1$s</strong> and click the link given.' ), $user_email) ?></p> 300 <p><?php _e( 'If you do not activate your username within two days, you will have to sign up again.' ); ?></p> 301 <?php 302 do_action( 'signup_finished' ); 303 303 } 304 304 … … 358 358 function confirm_blog_signup($domain, $path, $blog_title, $user_name = '', $user_email = '', $meta) { 359 359 ?> 360 <h2><?php printf( __('Congratulations! Your new site, %s, is almost ready.'), "<a href='http://{$domain}{$path}'>{$blog_title}</a>" ) ?></h2>361 362 <p><?php _e( 'But, before you can start using your site, <strong>you must activate it</strong>.') ?></p>363 <p><?php printf( __('Check your inbox at <strong>%s</strong> and click the link given. It should arrive within 30 minutes.'), $user_email) ?></p>364 <p><?php _e( 'If you do not activate your site within two days, you will have to sign up again.'); ?></p>365 <h2><?php _e( 'Still waiting for your email?'); ?></h2>360 <h2><?php printf( __( 'Congratulations! Your new site, %s, is almost ready.' ), "<a href='http://{$domain}{$path}'>{$blog_title}</a>" ) ?></h2> 361 362 <p><?php _e( 'But, before you can start using your site, <strong>you must activate it</strong>.' ) ?></p> 363 <p><?php printf( __( 'Check your inbox at <strong>%s</strong> and click the link given. It should arrive within 30 minutes.' ), $user_email) ?></p> 364 <p><?php _e( 'If you do not activate your site within two days, you will have to sign up again.' ); ?></p> 365 <h2><?php _e( 'Still waiting for your email?' ); ?></h2> 366 366 <p> 367 <?php _e( "If you haven't received your email yet, there are a number of things you can do:") ?>367 <?php _e( 'If you haven’t received your email yet, there are a number of things you can do:' ) ?> 368 368 <ul id="noemail-tips"> 369 <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>370 <li><p><?php _e( 'Check the junk email or spam folder of your email client. Sometime emails wind up there by mistake.') ?></p></li>371 <li><?php printf( __("Have you entered your email correctly? We think it's %s but if you've entered it incorrectly, you won't receive it."), $user_email) ?></li>369 <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> 370 <li><p><?php _e( 'Check the junk or spam folder of your email client. Sometime emails wind up there by mistake.' ) ?></p></li> 371 <li><?php printf( __( 'Have you entered your email correctly? We think it’s %s but if you have entered it incorrectly, you will not receive it.' ), $user_email ) ?></li> 372 372 </ul> 373 373 </p> 374 374 <?php 375 do_action( 'signup_finished');375 do_action( 'signup_finished' ); 376 376 } 377 377 … … 384 384 385 385 if ( is_super_admin() ) 386 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='wp-admin/ms-options.php'>Options page</a>."), $active_signup ) . '</div>';386 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="wp-admin/ms-options.php">Options page</a>.' ), $active_signup ) . '</div>'; 387 387 388 388 $newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null; … … 390 390 $current_user = wp_get_current_user(); 391 391 if ( $active_signup == "none" ) { 392 _e( "Registration has been disabled.");392 _e( 'Registration has been disabled.' ); 393 393 } elseif ( $active_signup == 'blog' && !is_user_logged_in() ) { 394 394 if ( is_ssl() ) … … 397 397 $proto = 'http://'; 398 398 $login_url = site_url( 'wp-login.php?redirect_to=' . urlencode($proto . $_SERVER['HTTP_HOST'] . '/wp-signup.php' )); 399 echo sprintf( __( "You must first <a href=\"%s\">login</a>, and then you can create a new site."), $login_url );399 echo sprintf( __( 'You must first <a href="%s">log in</a>, and then you can create a new site.' ), $login_url ); 400 400 } else { 401 401 $stage = isset( $_POST['stage'] ) ? $_POST['stage'] : 'default'; … … 405 405 validate_user_signup(); 406 406 else 407 _e( "User registration has been disabled.");407 _e( 'User registration has been disabled.' ); 408 408 break; 409 409 case 'validate-blog-signup': … … 411 411 validate_blog_signup(); 412 412 else 413 _e( "Site registration has been disabled.");413 _e( 'Site registration has been disabled.' ); 414 414 break; 415 415 case 'gimmeanotherblog': … … 425 425 signup_user( $newblogname, $user_email ); 426 426 elseif ( is_user_logged_in() == false && ( $active_signup == 'blog' ) ) 427 _e( "I'm sorry. We're not accepting new registrations at this time.");427 _e( 'We are sorry. We are not accepting new registrations at this time.' ); 428 428 else 429 _e( "You're logged in already. No need to register again!");429 _e( 'You are logged in already. No need to register again!' ); 430 430 431 431 if ($newblogname) { … … 435 435 $newblog = 'http://' . $newblogname . '.' . $current_site->domain . $current_site->path; 436 436 if ( $active_signup == 'blog' || $active_signup == 'all' ) 437 printf( __("<p><em>The site you were looking for, <strong>%s</strong> doesn't exist but you can create it now!</em></p>"), $newblog );437 printf( __( '<p><em>The site you were looking for, <strong>%s</strong> does not exist, but you can create it now!</em></p>' ), $newblog ); 438 438 else 439 printf( __("<p><em>The site you were looking for, <strong>%s</strong> doesn't exist.</em></p>"), $newblog );439 printf( __( '<p><em>The site you were looking for, <strong>%s</strong>, does not exist.</em></p>' ), $newblog ); 440 440 } 441 441 break;
Note: See TracChangeset
for help on using the changeset viewer.