Make WordPress Core


Ignore:
Timestamp:
03/25/2005 09:41:45 PM (19 years ago)
Author:
ryan
Message:

Localize email messages. http://mosquito.wordpress.org/view.php?id=1168 Props: slebog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/users.php

    r2449 r2477  
    8282
    8383    $user_login = stripslashes($user_login);
    84     $message  = 'New user registration on your blog ' . get_settings('blogname') . ":\r\n\r\n";
    85     $message .= "Username: $user_login\r\n\r\nE-mail: $user_email";
    86 
    87     @wp_mail(get_settings('admin_email'), '[' . get_settings('blogname') . '] New User Registration', $message);
     84    $message  = sprintf(__('New user registration on your blog %s:'), get_settings('blogname')) . "\r\n\r\n";
     85    $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
     86    $message .= sprintf(__('E-mail: %s'), $user_email) . "\r\n";
     87
     88    @wp_mail(get_settings('admin_email'), sprintf(__('[%s] New User Registration'), get_settings('blogname')), $message);
    8889    header('Location: users.php');
    8990break;
Note: See TracChangeset for help on using the changeset viewer.