From 9dd3f6fb163489adb5377f6c30bffe1300766790 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 6 Nov 2015 17:22:26 +0000 Subject: [PATCH] Remove `` tags from translatable strings in `wp-admin/setup-config.php`. Add translator comments. Props ramiy. Fixes #34579. Built from https://develop.svn.wordpress.org/trunk@35557 git-svn-id: http://core.svn.wordpress.org/trunk@35521 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/setup-config.php | 59 ++++++++++++++++++++++++++++++--------- wp-includes/version.php | 2 +- 2 files changed, 47 insertions(+), 14 deletions(-) diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index 1f6a3ec4a4..038f68bd14 100644 --- a/wp-admin/setup-config.php +++ b/wp-admin/setup-config.php @@ -50,11 +50,21 @@ else // Check if wp-config.php has been created if ( file_exists( ABSPATH . 'wp-config.php' ) ) - wp_die( '

' . sprintf( __( "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 installing now." ), 'install.php' ) . '

' ); + wp_die( '

' . sprintf( + /* translators: %s: install.php */ + __( "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 installing now." ), + 'install.php' + ) . '

' + ); // Check if wp-config.php exists above the root directory but is not part of another install if ( @file_exists( ABSPATH . '../wp-config.php' ) && ! @file_exists( ABSPATH . '../wp-settings.php' ) ) { - wp_die( '

' . sprintf( __( "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 installing now."), 'install.php' ) . '

' ); + wp_die( '

' . sprintf( + /* translators: %s: install.php */ + __( "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 installing now." ), + 'install.php' + ) . '

' + ); } $step = isset( $_GET['step'] ) ? (int) $_GET['step'] : -1; @@ -139,12 +149,26 @@ switch($step) {
  • -

    - wp-config.php file.' ); ?> - wp-config-sample.php in a text editor, fill in your information, and save it as wp-config.php." ); ?> - We got it." ); ?> -

    -

    +

    wp-config.php' + ); + ?> + wp-config-sample.php', + 'wp-config.php' + ); + ?> + We got it.' ), + __( 'https://codex.wordpress.org/Editing_wp-config.php' ) + ); +?>

    +

    -

    +

    @@ -178,7 +202,10 @@ switch($step) { - + @@ -309,8 +336,14 @@ switch($step) { if ( ! is_writable(ABSPATH) ) : setup_config_display_header(); ?> -

    wp-config.php file." ); ?>

    -

    wp-config.php manually and paste the following text into it.' ); ?>

    +

    wp-config.php' ); +?>

    +

    wp-config.php' ); +?>

    localhost doesn’t work.' ); ?>localhost' ); + ?>