[wp-trac] [WordPress Trac] #63009: setup-config errors are not localised
WordPress Trac
noreply at wordpress.org
Sun Feb 23 21:44:53 UTC 2025
#63009: setup-config errors are not localised
--------------------------+------------------------------
Reporter: johnbillion | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Description changed by johnbillion:
Old description:
> There are two error messages shown in setup-config.php that are not
> localised.
>
> 1. If `wp-config-sample.php` is missing during the initial installation,
> the error message stating this is always shown in English rather than the
> language chosen in the first step of installation (from
> `$_REQUEST['language']`).
> - To reproduce, delete or rename both `wp-config.php` and `wp-config-
> sample.php` and then attempt tp proceed through the installation steps.
> 2. Manually visiting wp-admin/setup-config.php during normal site
> operation will show an error message stating that the `wp-config.php`
> file already exists. This is always shown in English rather than the
> installed site language (from the `WPLANG` option).
> - To reproduce, visit `wp-admin/setup-config.php` during normal site
> operation.
New description:
There are two error messages shown in setup-config.php that are not
localised.
1. If `wp-config-sample.php` is missing during the initial installation,
the error message stating this is always shown in English rather than the
language chosen in the first step of installation (from
`$_REQUEST['language']`).
- To reproduce, delete or rename both `wp-config.php` and `wp-config-
sample.php` and then attempt tp proceed through the installation steps.
2. Manually visiting wp-admin/setup-config.php during normal site
operation will show an error message stating that the `wp-config.php` file
already exists. This is always shown in English rather than the installed
site language (from the `WPLANG` option).
- To reproduce, visit `wp-admin/setup-config.php` during normal site
operation.
Affected error messages: https://github.com/WordPress/wordpress-
develop/blob/fc96319aa770050d22cfdc1bbab437154017bcf7/src/wp-admin/setup-
config.php#L43-L82
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63009#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list