Make WordPress Core

Ticket #42161: 42161.3.diff

File 42161.3.diff, 2.2 KB (added by danieltj, 7 years ago)

Update to strings

  • wp-admin/setup-config.php

    diff --git wp-admin/setup-config.php wp-admin/setup-config.php
    index e416931..9094334 100644
    if ( file_exists( ABSPATH . 'wp-config-sample.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(
     50                sprintf(
     51                        /* translators: 1: wp-config-sample.php */
     52                        __( 'Sorry, I need a %s file to work from. Please re-upload this file to your WordPress installation.' ),
     53                        'wp-config-sample.php'
     54                )
     55        );
    5056
    5157// Check if wp-config.php has been created
    5258if ( file_exists( ABSPATH . 'wp-config.php' ) )
    5359        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>." ),
     60                        /* translators: %1$s: wp-config.php %2$s: install.php */
     61                        __( "The file '%1$s' 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>." ),
     62                        'wp-config.php',
    5663                        'install.php'
    5764                ) . '</p>'
    5865        );
    if ( file_exists( ABSPATH . 'wp-config.php' ) ) 
    6067// Check if wp-config.php exists above the root directory but is not part of another installation
    6168if ( @file_exists( ABSPATH . '../wp-config.php' ) && ! @file_exists( ABSPATH . '../wp-settings.php' ) ) {
    6269        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>." ),
     70                        /* translators: %1$s: wp-config.php %2$s: install.php */
     71                        __( "The file '%1$s' 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>." ),
     72                        'wp-config.php',
    6573                        'install.php'
    6674                ) . '</p>'
    6775        );