Closed ocean90 closed 5 years ago
@schlessera provided some feedback on Slack for this: https://wordpress.slack.com/archives/C02RP4T41/p1539759949000100
tldr; Consider using a table for the output which should make it easier to parse the result of each installation.
Current output is inspired by wp plugin update --all
:
Let me know what you think. If it's good I'm going to do the same for themes and add some tests.
(The command:language-core-install
label should probably be removed as the PR only touches plugins and themes.)
@ocean90 What do you think about combining these two in the "live status messages" (not the table):
Warning: Language 'de_CH' not available.
Language 'de_CH' for 'WP Team List' not installed.
This would then turn into this instead:
Warning: Language 'de_CH' for 'WP Team List' not available.
This already implies that it will not be installed.
Would this make it clearer, or does it worsen overall consistency?
Otherwise, I like the current version and think this is good to go.
What do you think about combining these two in the "live status messages"
The output next to "Warning" is just one of the WP_Error
messages which download_language_pack() can return. We could extend the changes from #69 to also adjust the logging but not sure if it's really worth since it would only cover one case. Maybe worth it's own issue/PR.
See #59.