Changeset 1169

Show
Ignore:
Timestamp:
04/25/04 19:33:12 (4 years ago)
Author:
rboren
Message:

Mark strings for translation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-register.php

    r1108 r1169  
    5454    /* checking login has been typed */ 
    5555    if ($user_login == '') { 
    56         die ('<strong>ERROR</strong>: Please enter a login.'); 
     56        die (__('<strong>ERROR</strong>: Please enter a login.')); 
    5757    } 
    5858 
    5959    /* checking the password has been typed twice */ 
    6060    if ($pass1 == '' || $pass2 == '') { 
    61         die ('<strong>ERROR</strong>: Please enter your password twice.'); 
     61        die (__('<strong>ERROR</strong>: Please enter your password twice.')); 
    6262    } 
    6363 
    6464    /* checking the password has been typed twice the same */ 
    6565    if ($pass1 != $pass2)   { 
    66         die ('<strong>ERROR</strong>: Please type the same password in the two password fields.'); 
     66        die (__('<strong>ERROR</strong>: Please type the same password in the two password fields.')); 
    6767    } 
    6868    $user_nickname = $user_login; 
     
    7070    /* checking e-mail address */ 
    7171    if ($user_email == '') { 
    72         die ('<strong>ERROR</strong>: Please type your e-mail address.'); 
     72        die (__('<strong>ERROR</strong>: Please type your e-mail address.')); 
    7373    } else if (!is_email($user_email)) { 
    74         die ('<strong>ERROR</strong>: The email address isn&#8217;t correct.'); 
     74        die (__('<strong>ERROR</strong>: The email address isn&#8217;t correct.')); 
    7575    } 
    7676 
     
    7878    $result = $wpdb->get_results("SELECT user_login FROM $tableusers WHERE user_login = '$user_login'"); 
    7979    if (count($result) >= 1) { 
    80         die ('<strong>ERROR</strong>: This login is already registered, please choose another one.'); 
     80        die (__('<strong>ERROR</strong>: This login is already registered, please choose another one.')); 
    8181    } 
    8282 
     
    9797     
    9898    if ($result == false) { 
    99         die ('<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:'.get_settings('admin_email').'">webmaster</a> !'); 
     99        die (sprintf(__('<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:%s">webmaster</a> !'), get_settings('admin_email'))); 
    100100    } 
    101101 
     
    105105    } 
    106106 
    107     $message  = 'New user registration on your blog ' . get_settings('blogname') . ":\r\n\r\n"; 
    108     $message .= "Login: $user_login\r\n\r\nE-mail: $user_email"; 
     107    $message  = sprintf(__("New user registration on your blog %1\$s:\n\nLogin: %2\$s \n\nE-mail: %3\$s"), get_settings('blogname'), $user_login, $user_email); 
    109108 
    110     @mail(get_settings('admin_email'), '[' . get_settings('blogname') . '] New User Registration', $message); 
     109    @mail(get_settings('admin_email'), sprintf(__('[%s] New User Registration'), get_settings('blogname')), $message); 
    111110 
    112111    ?> 
     
    114113<html xmlns="http://www.w3.org/1999/xhtml"> 
    115114<head> 
    116    <title>WordPress &raquo; Registration Complete</title> 
     115        <title><?php _e('WordPress &raquo; Registration Complete') ?></title> 
    117116    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />  
    118117    <link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css" /> 
     
    121120 
    122121<div id="login">  
    123     <h2>Registration Complete</h2> 
    124     <p>Login: <strong><?php echo $user_login; ?></strong><br /> 
    125     Password: <strong><?php echo $stars; ?></strong><br /> 
    126     E-mail: <strong><?php echo $user_email; ?></strong></p> 
     122    <h2><?php _e('Registration Complete') ?></h2> 
     123    <p><?php _e('Login:') ?> <strong><?php echo $user_login; ?></strong><br /> 
     124    <?php _e('Password:') ?> <strong><?php echo $stars; ?></strong><br /> 
     125    <?php _e('E-mail:') ?> <strong><?php echo $user_email; ?></strong></p> 
    127126    <form action="wp-login.php" method="post" name="login"> 
    128127        <input type="hidden" name="log" value="<?php echo $user_login; ?>" /> 
    129         <input type="submit" value="Login" name="submit" /> 
     128        <input type="submit" value="<?php _e('Login') ?>" name="submit" /> 
    130129    </form> 
    131130</div> 
     
    142141<html xmlns="http://www.w3.org/1999/xhtml"> 
    143142<head> 
    144     <title>WordPress &raquo; Registration Currently Disabled</title> 
     143    <title><?php _e('WordPress &raquo; Registration Currently Disabled') ?></title> 
    145144    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>"> 
    146145    <link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css"> 
     
    150149 
    151150<div id="login"> 
    152     <h2>Registration Disabled</h2> 
    153     <p>User registration is currently not allowed.<br /> 
    154     <a href="<?php echo get_settings('siteurl') .'/'. get_settings('blogfilename'); ?>" title="Go back to the blog">Home</a> 
     151    <h2><?php _e('Registration Disabled') ?></h2> 
     152    <p><?php _e('User registration is currently not allowed.') ?><br /> 
     153    <a href="<?php echo get_settings('siteurl') .'/'. get_settings('blogfilename'); ?>" title="<?php _e('Go back to the blog') ?>"><?php _e('Home') ?></a> 
    155154    </p> 
    156155</div> 
     
    168167<html xmlns="http://www.w3.org/1999/xhtml"> 
    169168<head> 
    170     <title>WordPress &raquo; Registration Form</title> 
     169    <title><?php _e('WordPress &raquo; Registration Form') ?></title> 
    171170    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" /> 
    172171    <link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css" /> 
     
    175174<body> 
    176175<div id="login"> 
    177 <h2>Registration</h2> 
     176<h2><?php _e('Registration') ?></h2> 
    178177 
    179178<form method="post" action="wp-register.php"> 
    180179    <input type="hidden" name="action" value="register" /> 
    181     <label for="user_login">Login:</label> <input type="text" name="user_login" id="user_login" size="10" maxlength="20" /><br /> 
    182     <label for="pass1">Password:</label> <input type="password" name="pass1" id="pass1" size="10" maxlength="100" /><br /> 
     180    <label for="user_login"><?php _e('Login:') ?></label> <input type="text" name="user_login" id="user_login" size="10" maxlength="20" /><br /> 
     181    <label for="pass1"><?php _e('Password:') ?></label> <input type="password" name="pass1" id="pass1" size="10" maxlength="100" /><br /> 
    183182  
    184183    <input type="password" name="pass2" size="10" maxlength="100" /><br /> 
    185     <label for="user_email">E-mail</label>: <input type="text" name="user_email" id="user_email" size="15" maxlength="100" /><br /> 
    186     <input type="submit" value="OK" class="search" name="submit" /> 
     184    <label for="user_email"><?php _e('E-mail') ?></label>: <input type="text" name="user_email" id="user_email" size="15" maxlength="100" /><br /> 
     185    <input type="submit" value="<?php _e('OK') ?>" class="search" name="submit" /> 
    187186</form> 
    188187</div>