Make WordPress Core

Ticket #25667: 25667.diff

File 25667.diff, 2.6 KB (added by Nao, 12 years ago)
  • src/wp-admin/includes/class-wp-upgrader.php

     
    22932293                $body = array();
    22942294                $failures = 0;
    22952295
    2296                 $body[] = 'WordPress site: ' . network_home_url( '/' );
     2296                $home_url = network_home_url( '/' );
     2297                $body[] = sprintf( __( 'WordPress site: ' ), $home_url );
    22972298
    22982299                // Core
    22992300                if ( isset( $this->update_results['core'] ) ) {
    23002301                        $result = $this->update_results['core'][0];
    23012302                        if ( $result->result && ! is_wp_error( $result->result ) ) {
    2302                                 $body[] = sprintf( 'SUCCESS: WordPress was successfully updated to %s', $result->name );
     2303                                $body[] = sprintf( __( 'SUCCESS: WordPress was successfully updated to %s' ), $result->name );
    23032304                        } else {
    2304                                 $body[] = sprintf( 'FAILED: WordPress failed to update to %s', $result->name );
     2305                                $body[] = sprintf( __( 'FAILED: WordPress failed to update to %s' ), $result->name );
    23052306                                $failures++;
    23062307                        }
    23072308                        $body[] = '';
     
    23312332                }
    23322333
    23332334                if ( $failures ) {
    2334                         $body[] = '';
    2335                         $body[] = 'BETA TESTING?';
    2336                         $body[] = '=============';
    2337                         $body[] = '';
    2338                         $body[] = 'This debugging email is sent when you are using a development version of WordPress.';
    2339                         $body[] = '';
    2340                         $body[] = 'If you think these failures might be due to a bug in WordPress, could you report it?';
    2341                         $body[] = ' * Open a thread in the support forums: http://wordpress.org/support/forum/alphabeta';
    2342                         $body[] = " * Or, if you're comfortable writing a bug report: http://core.trac.wordpress.org/";
    2343                         $body[] = '';
    2344                         $body[] = 'Thanks! -- The WordPress Team';
    2345                         $body[] = '';
    2346                         $subject = sprintf( '[%s] There were failures during background updates', get_bloginfo( 'name' ) );
     2335                        $body = __( '
     2336BETA TESTING?
     2337=============
     2338
     2339This debugging email is sent when you are using a development version of WordPress.
     2340
     2341If you think these failures might be due to a bug in WordPress, could you report it?
     2342 * Open a thread in the support forums: http://wordpress.org/support/forum/alphabeta
     2343 * Or, if you\'re comfortable writing a bug report: http://core.trac.wordpress.org/
     2344
     2345Thanks! -- The WordPress Team' );
     2346
     2347                        $subject = sprintf( __( '[%s] There were failures during background updates' ), get_bloginfo( 'name' ) );
    23472348                } else {
    2348                         $subject = sprintf( '[%s] Background updates have finished', get_bloginfo( 'name' ) );
     2349                        $subject = sprintf( __( '[%s] Background updates have finished' ), get_bloginfo( 'name' ) );
    23492350                }
    23502351
    2351                 $body[] = 'UPDATE LOG';
     2352                $body[] = __( 'UPDATE LOG' );
    23522353                $body[] = '==========';
    23532354                $body[] = '';
    23542355