Make WordPress Core

Changeset 45204


Ignore:
Timestamp:
04/15/2019 10:38:59 PM (7 years ago)
Author:
johnbillion
Message:

I18N: Improvements to and additions of translator comments for various email subject strings.

Props ramiy

Fixes #46920

Location:
trunk/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-automatic-updater.php

    r45165 r45204  
    649649                switch ( $type ) {
    650650                        case 'success': // We updated.
    651                                 /* translators: 1: Site name, 2: WordPress version number. */
     651                                /* translators: Site updated notification email subject. 1: Site title, 2: WordPress version number. */
    652652                                $subject = __( '[%1$s] Your site has updated to WordPress %2$s' );
    653653                                break;
    … …  
    655655                        case 'fail':   // We tried to update but couldn't.
    656656                        case 'manual': // We can't update (and made no attempt).
    657                                 /* translators: 1: Site name, 2: WordPress version number. */
     657                                /* translators: Updated available notification email subject. 1: Site title, 2: WordPress version number. */
    658658                                $subject = __( '[%1$s] WordPress %2$s is available. Please update!' );
    659659                                break;
    660660
    661661                        case 'critical': // We tried to update, started to copy files, then things went wrong.
    662                                 /* translators: 1: Site name. */
     662                                /* translators: Site down notification email subject. 1: Site title. */
    663663                                $subject = __( '[%1$s] URGENT: Your site may be down due to a failed update' );
    664664                                break;
    … …  
    912912                        $body[] = '';
    913913
    914                         /* translators: Background update failed notification email subject. %s: site title */
     914                        /* translators: Background update failed notification email subject. %s: Site title */
    915915                        $subject = sprintf( __( '[%s] Background Update Failed' ), $site_title );
    916916                } else {
    917                         /* translators: Background update finished notification email subject. %s: site title */
     917                        /* translators: Background update finished notification email subject. %s: Site title */
    918918                        $subject = sprintf( __( '[%s] Background Update Finished' ), $site_title );
    919919                }
  • trunk/src/wp-admin/includes/file.php

    r45167 r45204  
    24242424                $email_address,
    24252425                sprintf(
     2426                        /* translators: Personal data export notification email subject. %s: Site title */
    24262427                        __( '[%s] Personal Data Export' ),
    24272428                        $site_name
  • trunk/src/wp-admin/includes/misc.php

    r45180 r45204  
    12901290        $content      = str_replace( '###SITEURL###', home_url(), $content );
    12911291
     1292        /* translators: New admin email address notification email subject. %s: Site title */
    12921293        wp_mail( $value, sprintf( __( '[%s] New Admin Email Address' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ), $content );
    12931294
  • trunk/src/wp-admin/user-new.php

    r45140 r45204  
    123123%4$s'
    124124                        );
     125
     126                        /* translators: Joining confirmation notification email subject. %s: Site title */
    125127                        wp_mail( $new_user_email, sprintf( __( '[%s] Joining Confirmation' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), sprintf( $message, get_option( 'blogname' ), home_url(), wp_specialchars_decode( translate_user_role( $role['name'] ) ), home_url( "/newbloguser/$newuser_key/" ) ) );
    126128
  • trunk/src/wp-includes/ms-functions.php

    r45137 r45204  
    26462646        $content      = str_replace( '###SITEURL###', network_home_url(), $content );
    26472647
     2648        /* translators: Email change notification email subject. %s: Network title */
    26482649        wp_mail( $value, sprintf( __( '[%s] Network Admin Email Change Request' ), wp_specialchars_decode( get_site_option( 'site_name' ), ENT_QUOTES ) ), $content );
    26492650
  • trunk/src/wp-includes/pluggable.php

    r45173 r45204  
    15361536                                $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n";
    15371537                                $notify_message .= __( 'You can see all trackbacks on this post here:' ) . "\r\n";
    1538                                 /* translators: 1: blog name, 2: post title */
     1538                                /* translators: Trackback notification email subject. 1: Site title, 2: Post title */
    15391539                                $subject = sprintf( __( '[%1$s] Trackback: "%2$s"' ), $blogname, $post->post_title );
    15401540                                break;
    … …  
    15491549                                $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n";
    15501550                                $notify_message .= __( 'You can see all pingbacks on this post here:' ) . "\r\n";
    1551                                 /* translators: 1: blog name, 2: post title */
     1551                                /* translators: Pingback notification email subject. 1: Site title, 2: Post title */
    15521552                                $subject = sprintf( __( '[%1$s] Pingback: "%2$s"' ), $blogname, $post->post_title );
    15531553                                break;
    … …  
    15641564                                $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n";
    15651565                                $notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n";
    1566                                 /* translators: 1: blog name, 2: post title */
     1566                                /* translators: Comment notification email subject. 1: Site title, 2: Post title */
    15671567                                $subject = sprintf( __( '[%1$s] Comment: "%2$s"' ), $blogname, $post->post_title );
    15681568                                break;
  • trunk/src/wp-includes/user.php

    r45137 r45204  
    30863086
    30873087        $subject = sprintf(
    3088                 /* translators: 1: Site name. 2: Name of the confirmed action. */
     3088                /* translators: Privacy data request confirmed notification email subject. 1: Site title, 2: Name of the confirmed action. */
    30893089                __( '[%1$s] Action Confirmed: %2$s' ),
    30903090                $email_data['sitename'],
    … …  
    34983498        $content = str_replace( '###SITEURL###', esc_url_raw( $email_data['siteurl'] ), $content );
    34993499
    3500         /* translators: Privacy data request subject. 1: Site name, 2: Name of the action */
     3500        /* translators: Confirm privacy data request notification email subject. 1: Site title, 2: Name of the action */
    35013501        $subject = sprintf( __( '[%1$s] Confirm Action: %2$s' ), $email_data['sitename'], $email_data['description'] );
    35023502
  • trunk/src/wp-login.php

    r45175 r45204  
    396396        $message .= '<' . network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user_login ), 'login' ) . ">\r\n";
    397397
    398         /* translators: Password reset email subject. %s: Site name */
     398        /* translators: Password reset notification email subject. %s: Site title */
    399399        $title = sprintf( __( '[%s] Password Reset' ), $site_name );
    400400
Note: See TracChangeset for help on using the changeset viewer.