Opened 11 years ago
Closed 11 years ago
#35716 closed defect (bug) (fixed)
Add translators comments and context string to "New Site Created" email notification
| Reported by: | ramiy | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5 |
| Component: | I18N | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
See the attached patch.
Attachments (4)
Change History (12)
This ticket was mentioned in Slack in #core by chriscct7. View the logs.
11 years ago
#4
@
11 years ago
- Milestone Awaiting Review → 4.5
Seems like "Site Admin" should be translatable too, and it also needs a context, because we already have the same string in different context in wp_register().
#5
@
11 years ago
- Summary Add translators comments to wp-admin/network/site-new.php → Add translators comments and context string to "New Site Created" email notification
The second patch adds: _x( 'Site Admin', 'Email "From" feild' )
#6
@
11 years ago
Also, the $content_mail defined outside the wp_mail() function and use it only once.
I think we should eliminate this variable and move the mail content inside the wp_mail() functions:
wp_mail( get_site_option( 'admin_email' ), sprintf( /* translators: %s: site name */ __( '[%s] New Site Created' ), $current_site->site_name ), sprintf( /* translators: 1: user login, 2: site url, 3: site name/title */ __( 'New site created by %1$s Address: %2$s Name: %3$s' ), $current_user->user_login, get_site_url( $id ), wp_unslash( $title ) ) sprintf( 'From: "%1$s" <%2$s>', _x( 'Site Admin', 'Email "From" feild' ), get_site_option( 'admin_email' ) ) );
See patch no. 3
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
It's a simple patch that adds
/* translators: %s: site name */to the translation string.