Changeset 1170
- Timestamp:
- 04/25/2004 07:45:22 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r1108 r1170 78 78 $password = &$pwd; 79 79 if (!$user_login) { 80 $error = '<strong>Error</strong>: the login field is empty.';80 $error = __('<strong>Error</strong>: the login field is empty.'); 81 81 return false; 82 82 } 83 83 84 84 if (!$password) { 85 $error = '<strong>Error</strong>: the password field is empty.';85 $error = __('<strong>Error</strong>: the password field is empty.'); 86 86 return false; 87 87 } … … 92 92 93 93 if (!$login) { 94 $error = '<strong>Error</strong>: wrong login or password.';94 $error = __('<strong>Error</strong>: wrong login or password.'); 95 95 $pwd = ''; 96 96 return false; … … 100 100 return true; 101 101 } else { 102 $error = '<strong>Error</strong>: wrong login or password.';102 $error = __('<strong>Error</strong>: wrong login or password.'); 103 103 $pwd = ''; 104 104 return false; … … 162 162 <html xmlns="http://www.w3.org/1999/xhtml"> 163 163 <head> 164 <title> WordPress › Lost password ?</title>164 <title><?php _e('WordPress › Lost password ?') ?></title> 165 165 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" /> 166 166 <link rel="stylesheet" href="<?php echo get_settings('siteurl'); ?>/wp-admin/wp-admin.css" type="text/css" /> … … 177 177 178 178 <div id="login"> 179 <p> Please enter your information here. We will send you a new password.</p>179 <p><?php _e('Please enter your information here. We will send you a new password.') ?> </p> 180 180 <?php 181 181 if ($error) echo "<div align=\"right\" style=\"padding:4px;\"><font color=\"#FF0000\">$error</font><br /> </div>"; … … 184 184 <form name="" action="wp-login.php" method="post" id="lostpass"> 185 185 <input type="hidden" name="action" value="retrievepassword" /> 186 <label> Login:<input type="text" name="user_login" id="user_login" value="" size="12" /></label><br />187 <label> Email:<input type="text" name="email" id="email" value="" size="12" /></label><br />186 <label><?php _e('Login:') ?> <input type="text" name="user_login" id="user_login" value="" size="12" /></label><br /> 187 <label><?php _e('Email:') ?> <input type="text" name="email" id="email" value="" size="12" /></label><br /> 188 188 <input type="submit" name="Submit2" value="OK" class="search"> 189 189 … … 205 205 $user_email = $user_data->user_email; 206 206 207 if (!$user_email || $user_email != $_POST['email']) die( 'Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or email address? <a href="wp-login.php?action=lostpassword">Try again</a>.');207 if (!$user_email || $user_email != $_POST['email']) die(sprintf(__('Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or email address? <a href="%s">Try again</a>.'), 'wp-login.php?action=lostpassword')); 208 208 // Generate something random for a password... md5'ing current time with a rand salt 209 209 $user_pass = substr((MD5("time" . rand(1,16000))), 0, 6); … … 266 266 <html xmlns="http://www.w3.org/1999/xhtml"> 267 267 <head> 268 <title> WordPress > <?php bloginfo('name') ?> > Login form</title>268 <title><?php printf(__('WordPress > %s > Login form'), get_settings('blogname')) ?></title> 269 269 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" /> 270 270 <link rel="stylesheet" href="<?php echo get_settings('siteurl'); ?>/wp-admin/wp-admin.css" type="text/css" /> … … 281 281 <div id="login"> 282 282 <p> 283 <a href="<?php echo get_settings('siteurl'); ?>" title=" Are you lost?">Back to blog?</a><br />283 <a href="<?php echo get_settings('siteurl'); ?>" title="<?php _e('Are you lost?') ?>"><?php _e('Back to blog?') ?></a><br /> 284 284 <?php if (get_settings('users_can_register')) { ?> 285 <a href="<?php echo get_settings('siteurl'); ?>/wp-register.php" title=" Register to be an author">Register?</a><br />285 <a href="<?php echo get_settings('siteurl'); ?>/wp-register.php" title="<?php _e('Register to be an author') ?>"><?php _e('Register?') ?></a><br /> 286 286 <?php } ?> 287 <a href="<?php echo get_settings('siteurl'); ?>/wp-login.php?action=lostpassword" title=" Password Lost and Found">Lost your password?</a>287 <a href="<?php echo get_settings('siteurl'); ?>/wp-login.php?action=lostpassword" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a> 288 288 </p> 289 289 … … 305 305 <?php } ?> 306 306 <input type="hidden" name="action" value="login" /> 307 <label> Login:<input type="text" name="log" id="log" value="" size="20" tabindex="1" /></label><br />308 <label> Password:<input type="password" name="pwd" value="" size="20" tabindex="2" /></label><br />307 <label><?php _e('Login:') ?> <input type="text" name="log" id="log" value="" size="20" tabindex="1" /></label><br /> 308 <label><?php _e('Password:') ?> <input type="password" name="pwd" value="" size="20" tabindex="2" /></label><br /> 309 309 <input type="submit" name="Submit2" value="OK" class="search" tabindex="3" /> 310 310 </form>
Note: See TracChangeset
for help on using the changeset viewer.