Make WordPress Core

Ticket #31834: 31834.patch

File 31834.patch, 4.8 KB (added by ramiy, 12 years ago)
  • wp-admin/network.php

     
    223223                <table class="form-table">
    224224                        <tr>
    225225                                <th><label><input type="radio" name="subdomain_install" value="1"<?php checked( $subdomain_install ); ?> /> <?php _e( 'Sub-domains' ); ?></label></th>
    226                                 <td><?php printf( _x( 'like <code>site1.%1$s</code> and <code>site2.%1$s</code>', 'subdomain examples' ), $hostname ); ?></td>
     226                                <td><?php printf(
     227                                        /* translators: 1: hostname. */
     228                                        _x( 'like <code>site1.%1$s</code> and <code>site2.%1$s</code>', 'subdomain examples' ),
     229                                        $hostname
     230                                ); ?></td>
    227231                        </tr>
    228232                        <tr>
    229233                                <th><label><input type="radio" name="subdomain_install" value="0"<?php checked( ! $subdomain_install ); ?> /> <?php _e( 'Sub-directories' ); ?></label></th>
    230                                 <td><?php printf( _x( 'like <code>%1$s/site1</code> and <code>%1$s/site2</code>', 'subdirectory examples' ), $hostname ); ?></td>
     234                                <td><?php printf(
     235                                        /* translators: 1: hostname. */
     236                                        _x( 'like <code>%1$s/site1</code> and <code>%1$s/site2</code>', 'subdirectory examples' ),
     237                                        $hostname
     238                                ); ?></td>
    231239                        </tr>
    232240                </table>
    233241
  • wp-admin/network/site-new.php

     
    8888        if ( !is_wp_error( $id ) ) {
    8989                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                $content_mail = sprintf(
     92                        /* translators: 1: user login. 2: site url. 3: site name/title. */
     93                        __( 'New site created by %1$s
    9294
    9395Address: %2$s
    94 Name: %3$s' ), $current_user->user_login , get_site_url( $id ), wp_unslash( $title ) );
     96Name: %3$s' ),
     97                        $current_user->user_login ,
     98                        get_site_url( $id ),
     99                        wp_unslash( $title )
     100                );
    95101                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' ) . '>' );
    96102                wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) );
    97103                wp_redirect( add_query_arg( array( 'update' => 'added', 'id' => $id ), 'site-new.php' ) );
    … …  
    104110if ( isset($_GET['update']) ) {
    105111        $messages = array();
    106112        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'] ) ) );
     113                $messages[] = sprintf(
     114                        /* translators: 1: dashboard url. 2: network admin edit url. */
     115                        __( 'Site added. <a href="%1$s">Visit Dashboard</a> or <a href="%2$s">Edit Site</a>' ),
     116                        esc_url( get_admin_url( absint( $_GET['id'] ) ) ),
     117                        network_admin_url( 'site-info.php?id=' . absint( $_GET['id'] ) )
     118                );
    108119}
    109120
    110121$title = __('Add New Site');
  • wp-admin/network/upgrade.php

     
    6666                        echo "<li>$siteurl</li>";
    6767                        $response = wp_remote_get( $upgrade_url, array( 'timeout' => 120, 'httpversion' => '1.1' ) );
    6868                        if ( is_wp_error( $response ) )
    69                                 wp_die( sprintf( __( 'Warning! Problem updating %1$s. Your server may not be able to connect to sites running on it. Error message: <em>%2$s</em>' ), $siteurl, $response->get_error_message() ) );
     69                                wp_die(
     70                                        sprintf(
     71                                                /* translators: 1: site url. 2: server error_message */
     72                                                __( 'Warning! Problem updating %1$s. Your server may not be able to connect to sites running on it. Error message: %2$s' ),
     73                                                $siteurl,
     74                                                '<em>' . $response->get_error_message() . '</em>'
     75                                        )
     76                                );
    7077                        /**
    7178                         * Fires after the Multisite DB upgrade for each site is complete.
    7279                         *
  • wp-admin/network/users.php

     
    5757
    5858                        if ( ! empty( $blogs ) ) {
    5959                                ?>
    60                                 <td><fieldset><p><legend><?php printf( __( 'What should be done with content owned by %s?' ), '<em>' . $delete_user->user_login . '</em>' ); ?></legend></p>
     60                                <td><fieldset><p><legend><?php printf(
     61                                        /* translators: user login. */
     62                                        __( 'What should be done with content owned by %s?' ),
     63                                        '<em>' . $delete_user->user_login . '</em>'
     64                                ); ?></legend></p>
    6165                                <?php
    6266                                foreach ( (array) $blogs as $key => $details ) {
    6367                                        $blog_users = get_users( array( 'blog_id' => $details->userblog_id, 'fields' => array( 'ID', 'user_login' ) ) );