Mark strings for translation.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-04-25 19:33:12 +00:00
parent 518f418a8b
commit 1f29c44b6e

View File

@ -53,31 +53,31 @@ case 'register':
/* checking login has been typed */
if ($user_login == '') {
die ('<strong>ERROR</strong>: Please enter a login.');
die (__('<strong>ERROR</strong>: Please enter a login.'));
}
/* checking the password has been typed twice */
if ($pass1 == '' || $pass2 == '') {
die ('<strong>ERROR</strong>: Please enter your password twice.');
die (__('<strong>ERROR</strong>: Please enter your password twice.'));
}
/* checking the password has been typed twice the same */
if ($pass1 != $pass2) {
die ('<strong>ERROR</strong>: Please type the same password in the two password fields.');
die (__('<strong>ERROR</strong>: Please type the same password in the two password fields.'));
}
$user_nickname = $user_login;
/* checking e-mail address */
if ($user_email == '') {
die ('<strong>ERROR</strong>: Please type your e-mail address.');
die (__('<strong>ERROR</strong>: Please type your e-mail address.'));
} else if (!is_email($user_email)) {
die ('<strong>ERROR</strong>: The email address isn&#8217;t correct.');
die (__('<strong>ERROR</strong>: The email address isn&#8217;t correct.'));
}
/* checking the login isn't already used by another user */
$result = $wpdb->get_results("SELECT user_login FROM $tableusers WHERE user_login = '$user_login'");
if (count($result) >= 1) {
die ('<strong>ERROR</strong>: This login is already registered, please choose another one.');
die (__('<strong>ERROR</strong>: This login is already registered, please choose another one.'));
}
$user_ip = $_SERVER['REMOTE_ADDR'] ;
@ -96,7 +96,7 @@ case 'register':
('$user_login', MD5('$pass1'), '$user_nickname', '$user_email', '$user_ip', '$user_domain', '$user_browser', '$now', '$new_users_can_blog', 'nickname')");
if ($result == false) {
die ('<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:'.get_settings('admin_email').'">webmaster</a> !');
die (sprintf(__('<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:%s">webmaster</a> !'), get_settings('admin_email')));
}
$stars = '';
@ -104,29 +104,28 @@ case 'register':
$stars .= '*';
}
$message = 'New user registration on your blog ' . get_settings('blogname') . ":\r\n\r\n";
$message .= "Login: $user_login\r\n\r\nE-mail: $user_email";
$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);
@mail(get_settings('admin_email'), '[' . get_settings('blogname') . '] New User Registration', $message);
@mail(get_settings('admin_email'), sprintf(__('[%s] New User Registration'), get_settings('blogname')), $message);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WordPress &raquo; Registration Complete</title>
<title><?php _e('WordPress &raquo; Registration Complete') ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />
<link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css" />
</head>
<body>
<div id="login">
<h2>Registration Complete</h2>
<p>Login: <strong><?php echo $user_login; ?></strong><br />
Password: <strong><?php echo $stars; ?></strong><br />
E-mail: <strong><?php echo $user_email; ?></strong></p>
<h2><?php _e('Registration Complete') ?></h2>
<p><?php _e('Login:') ?> <strong><?php echo $user_login; ?></strong><br />
<?php _e('Password:') ?> <strong><?php echo $stars; ?></strong><br />
<?php _e('E-mail:') ?> <strong><?php echo $user_email; ?></strong></p>
<form action="wp-login.php" method="post" name="login">
<input type="hidden" name="log" value="<?php echo $user_login; ?>" />
<input type="submit" value="Login" name="submit" />
<input type="submit" value="<?php _e('Login') ?>" name="submit" />
</form>
</div>
</body>
@ -141,7 +140,7 @@ case 'disabled':
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WordPress &raquo; Registration Currently Disabled</title>
<title><?php _e('WordPress &raquo; Registration Currently Disabled') ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>">
<link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css">
</head>
@ -149,9 +148,9 @@ case 'disabled':
<body>
<div id="login">
<h2>Registration Disabled</h2>
<p>User registration is currently not allowed.<br />
<a href="<?php echo get_settings('siteurl') .'/'. get_settings('blogfilename'); ?>" title="Go back to the blog">Home</a>
<h2><?php _e('Registration Disabled') ?></h2>
<p><?php _e('User registration is currently not allowed.') ?><br />
<a href="<?php echo get_settings('siteurl') .'/'. get_settings('blogfilename'); ?>" title="<?php _e('Go back to the blog') ?>"><?php _e('Home') ?></a>
</p>
</div>
@ -167,23 +166,23 @@ default:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WordPress &raquo; Registration Form</title>
<title><?php _e('WordPress &raquo; Registration Form') ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />
<link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css" />
</head>
<body>
<div id="login">
<h2>Registration</h2>
<h2><?php _e('Registration') ?></h2>
<form method="post" action="wp-register.php">
<input type="hidden" name="action" value="register" />
<label for="user_login">Login:</label> <input type="text" name="user_login" id="user_login" size="10" maxlength="20" /><br />
<label for="pass1">Password:</label> <input type="password" name="pass1" id="pass1" size="10" maxlength="100" /><br />
<label for="user_login"><?php _e('Login:') ?></label> <input type="text" name="user_login" id="user_login" size="10" maxlength="20" /><br />
<label for="pass1"><?php _e('Password:') ?></label> <input type="password" name="pass1" id="pass1" size="10" maxlength="100" /><br />
<input type="password" name="pass2" size="10" maxlength="100" /><br />
<label for="user_email">E-mail</label>: <input type="text" name="user_email" id="user_email" size="15" maxlength="100" /><br />
<input type="submit" value="OK" class="search" name="submit" />
<label for="user_email"><?php _e('E-mail') ?></label>: <input type="text" name="user_email" id="user_email" size="15" maxlength="100" /><br />
<input type="submit" value="<?php _e('OK') ?>" class="search" name="submit" />
</form>
</div>