[wp-trac] [WordPress Trac] #63009: setup-config errors are not localised
WordPress Trac
noreply at wordpress.org
Mon Feb 24 09:16:42 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:
--------------------------+------------------------------
Comment (by swissspidy):
For (1):
When I rename/delete both `wp-config.php` `wp-config-sample.php`, I don't
even get to the language chooser. I immediately get redirected to `setup-
config.php` with "Sorry, I need a `wp-config-sample.php` file to work
from.". In this case no language information is available of course and
this will always be in English.
Can you perhaps clarify this part?
For (2):
The main issue here seems to be that the found `wp-config.php` file isn't
actually loaded, so `wp-settings.php` (which was loaded earlier by itself)
and `wpdb` don't know the actual table prefix, so the locale information
can't be loaded from the database.
To change the behavior here, I think the file would need to be refactored
quite a bit so that if a config file already exists, it is actually
loaded. Then the locale information is known and the translation could be
loaded.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63009#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list