Make WordPress Core

Ticket #42161: 42161.2.patch

File 42161.2.patch, 2.9 KB (added by ramiy, 7 years ago)

two more strings

  • wp-admin/setup-config.php

     
    4646elseif ( file_exists( dirname( ABSPATH ) . '/wp-config-sample.php' ) )
    4747        $config_file = file( dirname( ABSPATH ) . '/wp-config-sample.php' );
    4848else
    49         wp_die( __( 'Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file to your WordPress installation.' ) );
     49        wp_die( sprintf(
     50                /* translators: %s: wp-config-sample.php */
     51                __( 'The %s file is needed to work from. Please re-upload this file to your WordPress installation.' ),
     52                '<code>wp-config-sample.php</code>'
     53        ) );
    5054
    5155// Check if wp-config.php has been created
    5256if ( file_exists( ABSPATH . 'wp-config.php' ) )
    5357        wp_die( '<p>' . sprintf(
    54                         /* translators: %s: install.php */
    55                         __( "The file 'wp-config.php' already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='%s'>installing now</a>." ),
     58                        /* translators: 1: wp-config.php 2: install.php */
     59                        __( 'The %1$s file already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href="%2$s">installing now</a>.' ),
     60                        '<code>wp-config.php</code>',
    5661                        'install.php'
    5762                ) . '</p>'
    5863        );
     
    6065// Check if wp-config.php exists above the root directory but is not part of another installation
    6166if ( @file_exists( ABSPATH . '../wp-config.php' ) && ! @file_exists( ABSPATH . '../wp-settings.php' ) ) {
    6267        wp_die( '<p>' . sprintf(
    63                         /* translators: %s: install.php */
    64                         __( "The file 'wp-config.php' already exists one level above your WordPress installation. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='%s'>installing now</a>." ),
     68                        /* translators: 1: wp-config.php 2: install.php */
     69                        __( 'The %1$s file already exists one level above your WordPress installation. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href="%2$s">installing now</a>.' ),
     70                        '<code>wp-config.php</code>',
    6571                        'install.php'
    6672                ) . '</p>'
    6773        );
     
    357363?>
    358364<p><?php
    359365        /* translators: %s: wp-config.php */
    360         printf( __( 'Sorry, but I can&#8217;t write the %s file.' ), '<code>wp-config.php</code>' );
     366        printf( __( 'The %s file cannot be written.' ), '<code>wp-config.php</code>' );
    361367?></p>
    362368<p><?php
    363369        /* translators: %s: wp-config.php */
    364         printf( __( 'You can create the %s manually and paste the following text into it.' ), '<code>wp-config.php</code>' );
     370        printf( __( 'You can create the %s file manually and paste the following text into it.' ), '<code>wp-config.php</code>' );
    365371?></p>
    366372<textarea id="wp-config" cols="98" rows="15" class="code" readonly="readonly"><?php
    367373                foreach ( $config_file as $line ) {