From 04831b81ec5f9fbbce971db03553bd1bc3ebbaef Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 11 Nov 2011 18:37:04 +0000 Subject: [PATCH] Used numbered format specifiers. Add translator note. Props SergeyBiryukov. fixes #19090 git-svn-id: http://svn.automattic.com/wordpress/trunk@19255 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/user-new.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 6a8778f27..b0546e241 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -72,7 +72,14 @@ if ( isset($_REQUEST['action']) && 'adduser' == $_REQUEST['action'] ) { } else { $newuser_key = substr( md5( $user_id ), 0, 5 ); add_option( 'new_user_' . $newuser_key, array( 'user_id' => $user_id, 'email' => $user_details->user_email, 'role' => $_REQUEST[ 'role' ] ) ); - $message = __("Hi,\n\nYou have been invited to join '%s' at\n%s with the role of %s.\nPlease click the following link to confirm the invite:\n%s\n"); + /* translators: 1: Site name, 2: site URL, 3: role, 4: activation URL */ + $message = __( 'Hi, + +You\'ve been invited to join \'%1$s\' at +%2$s with the role of %3$s. + +Please click the following link to confirm the invite: +%4$s' ); wp_mail( $new_user_email, sprintf( __( '[%s] Joining confirmation' ), get_option( 'blogname' ) ), sprintf($message, get_option('blogname'), site_url(), $_REQUEST[ 'role' ], site_url("/newbloguser/$newuser_key/"))); $redirect = add_query_arg( array('update' => 'add'), 'user-new.php' ); }