Closed strarsis closed 2 years ago
This doesn't sound like you're using the latest version of this package. At least I cannot reproduce the issue locally.
What's the output of wp package list
? What's the output of wp i18n
?
I installed the latest version of the package using wp package install wp-cli/i18n-command:dev-main
and then I get this:
$ wp package list
+------------------------------------+------------------+----------+-----------+----------------+
| name | authors | version | update | update_version |
+------------------------------------+------------------+----------+-----------+----------------+
| swissspidy/validate-readme-command | | dev-main | none | |
| wp-cli/dist-archive-command | Daniel Bachhuber | v2.0.1 | none | |
| wp-cli/i18n-command | Pascal Birchler | dev-main | available | 2.x-dev |
| wp-cli/scaffold-package-command | Daniel Bachhuber | v2.0.1 | none | |
+------------------------------------+------------------+----------+-----------+----------------+
$ wp i18n update-po
usage: wp i18n update-po <source> [<destination>]
So it works as expected.
@swissspidy: Yes, I can confirm that installing the latest wp i18n
as you described (wp package install
) works correctly.
What I did first (and which didn't work):
cd ~/src
)git clone https://github.com/wp-cli/i18n-command
cd i18n-command
)composer install
~/src/i18n-command/vendor/bin/wp i18n update-po
After install the latest wp i18n
using wp package install
the issue also went away.
So my approach for using wp i18n
directly from GitHub repository appears to be wrong.
@swissspidy check this
It says
"This package is included with WP-CLI itself, no additional installation necessary."
Check this issue please: https://github.com/wp-cli/i18n-command/issues/340
Bug Report
Describe the current, buggy behavior Trying to invoke the new
update-po
subcommand withwp i18n
from the latest releasev2.4.0
, that introduced it, or latestmain
results in an error that this subcommand is not known:Describe how other contributors can replicate this bug
wp i18n
(starting with the current latest version2.4.0
). (Ensure that thiswp i18n
version is invoked, not the one bundled with an installedwp
phar, aswp
CLI hadn't a new release yet that contains the latestwp i18n
version).update-po
subcommand ofwp i18n
, note that this subcommand isn't found:Describe what you would expect as the correct outcome
update-po
subcommand is found and can be used.Let us know what environment you are running this on
Provide a possible solution The new
update-po
subcommand isn't registered/loaded. Probably some piece of code is missing that would register this subcommand otherwise.