Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for updating language packs for all installed languges in wp-fix-languages #134

Open
nturbanov opened this issue Mar 24, 2020 · 2 comments

Comments

@nturbanov
Copy link

At the moment wp-fix-languages only installs language packs for the current active site language (set in General Settings). It does not install language packs for plugins and themes for all installed core languages.

When running multilingual sites (with or without Polylang) users have the ability to change their admin language. Plugins that have front end functionality also require language packs for multilingual support.

For instance, when running a site in Finnish (default) and Swedish via Polylang, wp-fix-languages currently only installs core, theme and plugin language packs for Finnish.

You can use wp eval 'array_keys(wp_get_installed_translations("core")["default"]);' to get an array of all installed language locales.

@ottok ottok self-assigned this May 28, 2020
@ottok
Copy link
Contributor

ottok commented May 28, 2020

This should also produce the list:

$ wp language core list --status=installed
+----------+--------------+-------------+-----------+--------+---------------------+
| language | english_name | native_name | status    | update | updated             |
+----------+--------------+-------------+-----------+--------+---------------------+
| fi       | Finnish      | Suomi       | installed | none   | 2020-05-24 09:39:32 |
| sv_SE    | Swedish      | Svenska     | installed | none   | 2020-05-22 22:23:36 |
+----------+--------------+-------------+-----------+--------+---------------------+

wp-cli/wp-cli@f4922c3

Our wp-fix-language already runs

wp language core update
wp language theme update --all
wp language plugin update --all

..which should cover the request you had. Apparently there are cases where it does not work.

Please send me by email info about that site it was so I can look deeper. Thanks!

@ottok ottok assigned elguitar and unassigned ottok Jan 27, 2021
@ottok
Copy link
Contributor

ottok commented Jan 27, 2021

We have not been able to reproduce this issue, nor did we get futher information about it. We could look at this again when deprecating the wp-languages thing and when we anyway re-review the language pack installations of WordPress and plugins in #76

@elguitar elguitar removed their assignment Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants