From 30be2ff5699bdd4773d8de0b0c8e9825b83e34fd Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 25 Apr 2004 19:33:12 +0000 Subject: [PATCH] Mark strings for translation. git-svn-id: https://develop.svn.wordpress.org/trunk@1169 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-register.php | 53 ++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 27 deletions(-) diff --git a/wp-register.php b/wp-register.php index 2641b02170..c883349f6f 100644 --- a/wp-register.php +++ b/wp-register.php @@ -53,31 +53,31 @@ case 'register': /* checking login has been typed */ if ($user_login == '') { - die ('ERROR: Please enter a login.'); + die (__('ERROR: Please enter a login.')); } /* checking the password has been typed twice */ if ($pass1 == '' || $pass2 == '') { - die ('ERROR: Please enter your password twice.'); + die (__('ERROR: Please enter your password twice.')); } /* checking the password has been typed twice the same */ if ($pass1 != $pass2) { - die ('ERROR: Please type the same password in the two password fields.'); + die (__('ERROR: Please type the same password in the two password fields.')); } $user_nickname = $user_login; /* checking e-mail address */ if ($user_email == '') { - die ('ERROR: Please type your e-mail address.'); + die (__('ERROR: Please type your e-mail address.')); } else if (!is_email($user_email)) { - die ('ERROR: The email address isn’t correct.'); + die (__('ERROR: The email address isn’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 ('ERROR: This login is already registered, please choose another one.'); + die (__('ERROR: 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 ('ERROR: Couldn’t register you... please contact the webmaster !'); + die (sprintf(__('ERROR: Couldn’t register you... please contact the webmaster !'), 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); ?> - WordPress » Registration Complete + <?php _e('WordPress » Registration Complete') ?>
-

Registration Complete

-

Login:
- Password:
- E-mail:

+

+


+
+

- +
@@ -141,7 +140,7 @@ case 'disabled': - WordPress » Registration Currently Disabled + <?php _e('WordPress » Registration Currently Disabled') ?> @@ -149,9 +148,9 @@ case 'disabled':
-

Registration Disabled

-

User registration is currently not allowed.
- Home +

+


+

@@ -167,23 +166,23 @@ default: - WordPress » Registration Form + <?php _e('WordPress » Registration Form') ?>
-

Registration

+

-
-
+
+

- :
- + :
+
@@ -193,4 +192,4 @@ default: break; } -?> \ No newline at end of file +?>