Make WordPress Core

Changeset 1170


Ignore:
Timestamp:
04/25/2004 07:45:22 PM (20 years ago)
Author:
rboren
Message:

Mark strings for translation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r1108 r1170  
    7878        $password = &$pwd;
    7979        if (!$user_login) {
    80             $error = '<strong>Error</strong>: the login field is empty.';
     80            $error = __('<strong>Error</strong>: the login field is empty.');
    8181            return false;
    8282        }
    8383
    8484        if (!$password) {
    85             $error = '<strong>Error</strong>: the password field is empty.';
     85            $error = __('<strong>Error</strong>: the password field is empty.');
    8686            return false;
    8787        }
     
    9292
    9393        if (!$login) {
    94             $error = '<strong>Error</strong>: wrong login or password.';
     94            $error = __('<strong>Error</strong>: wrong login or password.');
    9595            $pwd = '';
    9696            return false;
     
    100100                return true;
    101101            } else {
    102                 $error = '<strong>Error</strong>: wrong login or password.';
     102                $error = __('<strong>Error</strong>: wrong login or password.');
    103103                $pwd = '';
    104104            return false;
     
    162162<html xmlns="http://www.w3.org/1999/xhtml">
    163163<head>
    164     <title>WordPress &rsaquo; Lost password ?</title>
     164    <title><?php _e('WordPress &rsaquo; Lost password ?') ?></title>
    165165    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />
    166166    <link rel="stylesheet" href="<?php echo get_settings('siteurl'); ?>/wp-admin/wp-admin.css" type="text/css" />
     
    177177
    178178<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>
    180180<?php
    181181if ($error) echo "<div align=\"right\" style=\"padding:4px;\"><font color=\"#FF0000\">$error</font><br />&nbsp;</div>";
     
    184184<form name="" action="wp-login.php" method="post" id="lostpass">
    185185<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 />
    188188<input type="submit" name="Submit2" value="OK" class="search">
    189189
     
    205205    $user_email = $user_data->user_email;
    206206
    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'));
    208208    // Generate something random for a password... md5'ing current time with a rand salt
    209209    $user_pass = substr((MD5("time" . rand(1,16000))), 0, 6);
     
    266266<html xmlns="http://www.w3.org/1999/xhtml">
    267267<head>
    268     <title>WordPress > <?php bloginfo('name') ?> > Login form</title>
     268    <title><?php printf(__('WordPress > %s > Login form'), get_settings('blogname')) ?></title>
    269269    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />
    270270    <link rel="stylesheet" href="<?php echo get_settings('siteurl'); ?>/wp-admin/wp-admin.css" type="text/css" />
     
    281281<div id="login">
    282282<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 />
    284284<?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 />
    286286<?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>
    288288</p>
    289289
     
    305305<?php } ?>
    306306    <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 />
    309309    <input type="submit" name="Submit2" value="OK" class="search" tabindex="3" />
    310310</form>
Note: See TracChangeset for help on using the changeset viewer.