hestiacp / hestiacp

Hestia Control Panel | A lightweight and powerful control panel for the modern web.
https://hestiacp.com
GNU General Public License v3.0
3.4k stars 680 forks source link

[Bug] Quick install Wordpress other languages then EN #2788

Closed funsurfer2008 closed 2 years ago

funsurfer2008 commented 2 years ago

Describe the bug

If you install Wordpress in English everything is fine. If you change it to Germal for example the Wizzard running wrong, bcause the wp-config file is localized. Can you fix it please?

brgds

Tell us how to replicate the bug

go to quick install select wordpress change language to german

Which components are affected by this bug?

(Backend) Web Server (Nginx, Apache2)

Hestia Control Panel Version

1.6.x

Operating system

Debain

Log capture

No response

jaapmarcus commented 2 years ago

It doesn't work due to:

define( 'DB_NAME', 'datenbankname_hier_einfuegen' ); ..

jaapmarcus commented 2 years ago

So locales translate the wp-config.php file

Great ...

funsurfer2008 commented 2 years ago

Yes. Very Great. 😂

jaapmarcus commented 2 years ago

Even better is I did test it in Dutch and it worked fine... But it uses the English wp-config file

funsurfer2008 commented 2 years ago

Hmmm… why not overwrite wp-config with english content and then replace the lines.

jaapmarcus commented 2 years ago

https://github.com/WordPress/WordPress/blob/a0944f075a27f7d37f67315d98eda857280a7090/wp-admin/setup-config.php#L355-L391

Seems to be a working solution that aways works

funsurfer2008 commented 2 years ago

Dont work at all for German