From 2b8e7270d507a54f69c14c3437b8073a5b1ccb56 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 6 May 2015 09:11:18 +0000 Subject: [PATCH] Multisite: Add translator comments to default email messages with non-typical placeholders. props yoavf. fixes #32263. git-svn-id: https://develop.svn.wordpress.org/trunk@32381 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/ms.php | 2 ++ src/wp-admin/includes/schema.php | 1 + src/wp-admin/ms-delete-site.php | 1 + src/wp-includes/ms-functions.php | 6 +++++- 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php index c1f1708e73..937293a34d 100644 --- a/src/wp-admin/includes/ms.php +++ b/src/wp-admin/includes/ms.php @@ -253,6 +253,7 @@ function update_option_new_admin_email( $old_value, $value ) { ); update_option( 'adminhash', $new_admin_email ); + /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */ $email_text = __( 'Howdy ###USERNAME###, You recently requested to have the administration email address on @@ -334,6 +335,7 @@ function send_confirmation_on_profile_email() { ); update_option( $current_user->ID . '_new_email', $new_user_email ); + /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */ $email_text = __( 'Howdy ###USERNAME###, You recently requested to have the email address on your account changed. diff --git a/src/wp-admin/includes/schema.php b/src/wp-admin/includes/schema.php index c522ab5665..3011a6fb82 100644 --- a/src/wp-admin/includes/schema.php +++ b/src/wp-admin/includes/schema.php @@ -917,6 +917,7 @@ function populate_network( $network_id = 1, $domain = '', $email = '', $site_nam $site_admins = get_site_option( 'site_admins' ); } + /* translators: Do not translate USERNAME, SITE_NAME, BLOG_URL, PASSWORD: those are placeholders. */ $welcome_email = __( 'Howdy USERNAME, Your new SITE_NAME site has been successfully set up at: diff --git a/src/wp-admin/ms-delete-site.php b/src/wp-admin/ms-delete-site.php index af8a5e05dc..07d87e2066 100644 --- a/src/wp-admin/ms-delete-site.php +++ b/src/wp-admin/ms-delete-site.php @@ -42,6 +42,7 @@ if ( isset( $_POST['action'] ) && $_POST['action'] == 'deleteblog' && isset( $_P $url_delete = esc_url( admin_url( 'ms-delete-site.php?h=' . $hash ) ); + /* translators: Do not translate USERNAME, URL_DELETE, SITE_NAME: those are placeholders. */ $content = __( "Howdy ###USERNAME###, You recently clicked the 'Delete Site' link on your site and filled in a diff --git a/src/wp-includes/ms-functions.php b/src/wp-includes/ms-functions.php index 6dbcf086d8..43873cabc4 100644 --- a/src/wp-includes/ms-functions.php +++ b/src/wp-includes/ms-functions.php @@ -1433,7 +1433,8 @@ function wpmu_welcome_notification( $blog_id, $user_id, $password, $title, $meta return false; $welcome_email = get_site_option( 'welcome_email' ); - if ( $welcome_email == false ) + if ( $welcome_email == false ) { + /* translators: Do not translate USERNAME, SITE_NAME, BLOG_URL, PASSWORD: those are placeholders. */ $welcome_email = __( 'Howdy USERNAME, Your new SITE_NAME site has been successfully set up at: @@ -1448,6 +1449,7 @@ Log in here: BLOG_URLwp-login.php We hope you enjoy your new site. Thanks! --The Team @ SITE_NAME' ); + } $url = get_blogaddress_by_id($blog_id); $user = get_userdata( $user_id ); @@ -2080,6 +2082,8 @@ function users_can_register_signup_filter() { function welcome_user_msg_filter( $text ) { if ( !$text ) { remove_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' ); + + /* translators: Do not translate USERNAME, PASSWORD, LOGINLINK, SITE_NAME: those are placeholders. */ $text = __( 'Howdy USERNAME, Your new account is set up.