WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/21/2016 01:21:01 AM (4 years ago)
Author:
johnbillion
Message:

I18n: Begin introducing translator comments for strings which include placeholders but no accompanying translator comment.

Adds context to one string used in two different contexts for the new user and new site signup email notification.

More to come.

See #38882

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-functions.php

    r39203 r39323  
    847847         */
    848848        apply_filters( 'wpmu_signup_blog_notification_subject',
    849             __( '[%1$s] Activate %2$s' ),
     849            /* translators: New site notification email subject. 1: Network name, 2: New site URL */
     850            _x( '[%1$s] Activate %2$s', 'New site notification email subject' ),
    850851            $domain, $path, $title, $user_login, $user_email, $key, $meta
    851852        ),
     
    940941         */
    941942        apply_filters( 'wpmu_signup_user_notification_subject',
    942             __( '[%1$s] Activate %2$s' ),
     943            /* translators: New user notification email subject. 1: Network name, 2: New user login */
     944            _x( '[%1$s] Activate %2$s', 'New user notification email subject' ),
    943945            $user_login, $user_email, $key, $meta
    944946        ),
     
    12031205    restore_current_blog();
    12041206
     1207    /* translators: New site notification email. 1: Site URL, 2: User IP address, 3: Settings screen URL */
    12051208    $msg = sprintf( __( 'New Site: %1$s
    12061209URL: %2$s
     
    12451248
    12461249    $options_site_url = esc_url(network_admin_url('settings.php'));
     1250    /* translators: New user notification email. 1: User login, 2: User IP address, 3: Settings screen URL */
    12471251    $msg = sprintf(__('New User: %1$s
    12481252Remote IP: %2$s
     
    15241528        $current_network->site_name = 'WordPress';
    15251529
     1530    /* translators: New site notification email subject. 1: Network name, 2: New site name */
     1531    $subject = __( 'New %1$s Site: %2$s' );
     1532
    15261533    /**
    15271534     * Filters the subject of the welcome email after site activation.
     
    15311538     * @param string $subject Subject of the email.
    15321539     */
    1533     $subject = apply_filters( 'update_welcome_subject', sprintf( __( 'New %1$s Site: %2$s' ), $current_network->site_name, wp_unslash( $title ) ) );
     1540    $subject = apply_filters( 'update_welcome_subject', sprintf( $subject, $current_network->site_name, wp_unslash( $title ) ) );
    15341541    wp_mail( $user->user_email, wp_specialchars_decode( $subject ), $message, $message_headers );
    15351542
     
    16091616        $current_network->site_name = 'WordPress';
    16101617
     1618    /* translators: New user notification email subject. 1: Network name, 2: New user login */
     1619    $subject = __( 'New %1$s User: %2$s' );
     1620
    16111621    /**
    16121622     * Filters the subject of the welcome email after user activation.
     
    16161626     * @param string $subject Subject of the email.
    16171627     */
    1618     $subject = apply_filters( 'update_welcome_user_subject', sprintf( __( 'New %1$s User: %2$s' ), $current_network->site_name, $user->user_login) );
     1628    $subject = apply_filters( 'update_welcome_user_subject', sprintf( $subject, $current_network->site_name, $user->user_login) );
    16191629    wp_mail( $user->user_email, wp_specialchars_decode( $subject ), $message, $message_headers );
    16201630
Note: See TracChangeset for help on using the changeset viewer.