Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Install/update functionality taken from Core should not be localized #68
WP-CLI output is not localized because it is meant to be easily parsable.
However, for some commands, like
Example output (see Slack discussion):
I'm not convinced forcing English output is the best approach because I'm concerned it may have unintended consequences. If it did have unintended consequences, it probably wouldn't be worth the change.
As an alternative, we could have some documentation that included a code snippet for the user to force this behavior.
@rabin-io This code snippet works for me:
You can force the locale to
The nice thing about this approach is that you can easily apply it across multiple WP installs.
I don't think setting the
Thanks @danielbachhuber , I did try it, and it seems to work for me.
but still I think that for terminal operations the default should be in English, and not using the WP translation strings.