Make WordPress Core


Ignore:
Timestamp:
04/01/2015 01:25:55 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Add translator comments for placeholders in network-related strings.

props ramiy.
fixes #31834.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-new.php

    r31517 r31956  
    8686    $id = wpmu_create_blog( $newdomain, $path, $title, $user_id , array( 'public' => 1 ), $current_site->id );
    8787    $wpdb->show_errors();
    88     if ( !is_wp_error( $id ) ) {
    89         if ( !is_super_admin( $user_id ) && !get_user_option( 'primary_blog', $user_id ) )
     88    if ( ! is_wp_error( $id ) ) {
     89        if ( ! is_super_admin( $user_id ) && !get_user_option( 'primary_blog', $user_id ) ) {
    9090            update_user_option( $user_id, 'primary_blog', $id, true );
    91         $content_mail = sprintf( __( 'New site created by %1$s
     91        }
     92
     93        $content_mail = sprintf(
     94            /* translators: 1: user login, 2: site url, 3: site name/title */
     95            __( 'New site created by %1$s
    9296
    9397Address: %2$s
    94 Name: %3$s' ), $current_user->user_login , get_site_url( $id ), wp_unslash( $title ) );
     98Name: %3$s' ),
     99            $current_user->user_login,
     100            get_site_url( $id ),
     101            wp_unslash( $title )
     102        );
    95103        wp_mail( get_site_option('admin_email'), sprintf( __( '[%s] New Site Created' ), $current_site->site_name ), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' );
    96104        wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) );
     
    105113    $messages = array();
    106114    if ( 'added' == $_GET['update'] )
    107         $messages[] = sprintf( __( 'Site added. <a href="%1$s">Visit Dashboard</a> or <a href="%2$s">Edit Site</a>' ), esc_url( get_admin_url( absint( $_GET['id'] ) ) ), network_admin_url( 'site-info.php?id=' . absint( $_GET['id'] ) ) );
     115        $messages[] = sprintf(
     116            /* translators: 1: dashboard url, 2: network admin edit url */
     117            __( 'Site added. <a href="%1$s">Visit Dashboard</a> or <a href="%2$s">Edit Site</a>' ),
     118            esc_url( get_admin_url( absint( $_GET['id'] ) ) ),
     119            network_admin_url( 'site-info.php?id=' . absint( $_GET['id'] ) )
     120        );
    108121}
    109122
Note: See TracChangeset for help on using the changeset viewer.