Skip to content

Commit

Permalink
Merge pull request #32 from spicecadet/feature/language-command#25
Browse files Browse the repository at this point in the history
Updated wp language core update --dry-run message
  • Loading branch information
schlessera authored Apr 14, 2018
2 parents d7104f5 + 19ea036 commit a27c3ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion features/language-core.feature
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Feature: Manage translation files for a WordPress install
| en_GB | English (UK) | available |

When I run `wp language core update --dry-run`
Then save STDOUT 'Available (\d+) translations updates' as {UPDATES}
Then save STDOUT 'Found (\d+) translation updates that would be processed' as {UPDATES}

When I run `wp language core update`
Then STDOUT should contain:
Expand Down
2 changes: 1 addition & 1 deletion src/WP_CLI/CommandWithTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public function update( $args, $assoc_args ) {

// Only preview which translations would be updated.
if ( \WP_CLI\Utils\get_flag_value( $assoc_args, 'dry-run' ) ) {
\WP_CLI::line( sprintf( 'Available %d translations updates:', count( $updates ) ) );
\WP_CLI::line( sprintf( 'Found %d translation updates that would be processed:', count( $updates ) ) );
\WP_CLI\Utils\format_items( 'table', $updates, array( 'Type', 'Name', 'Version', 'Language' ) );

return;
Expand Down

0 comments on commit a27c3ea

Please sign in to comment.