You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that wp site switch-language is not working after a fresh installation of WordPress 6.6.1. Even though the command prints that activated the language successfully, the en_US keeps activated as the output of the wp language core list.
I've tried the following:
$ wp language core list --status=active --format=csv --fields=language
language
en_US
$ wp language core list --status=installed --format=csv --fields=language
language
pt_BR
uk
$ wp site switch-language uk
Success: Language activated.
$ wp language core list --status=active --format=csv --fields=language
language
en_US
If I run the command with the pt_BR, the behaviour is the same, so it may not be related with the chosen language, I guess.
I also noticed that, after I change manually the language in the Settings at wp-admin to any other installed language (not the en_US) one first time, the admin pages then change its language correctly if I run the command wp site switch-language again. But the command wp language core list keeps printing en_US as the active language.
EDIT
The theme I'm using does not implement internationalization, so if I run the command wp language theme list only the en_US is listed. I'm not sure if it's related to the problem, but as I would like to change the WordPress core language, I think it shouldn't be.
The text was updated successfully, but these errors were encountered:
I doubt it, because that one is specifically for en_US.
Sounds strange that the command isn't working for you. All it does is update_option( 'WPLANG', 'uk' );. So if that fails, there's probably some issue specific to your site.
I noticed that
wp site switch-language
is not working after a fresh installation of WordPress 6.6.1. Even though the command prints that activated the language successfully, theen_US
keeps activated as the output of thewp language core list
.I've tried the following:
If I run the command with the
pt_BR
, the behaviour is the same, so it may not be related with the chosen language, I guess.I also noticed that, after I change manually the language in the Settings at wp-admin to any other installed language (not the
en_US
) one first time, the admin pages then change its language correctly if I run the commandwp site switch-language
again. But the commandwp language core list
keeps printingen_US
as the active language.EDIT
The theme I'm using does not implement internationalization, so if I run the command
wp language theme list
only theen_US
is listed. I'm not sure if it's related to the problem, but as I would like to change the WordPress core language, I think it shouldn't be.The text was updated successfully, but these errors were encountered: