Skip to content

Commit

Permalink
fix localization
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed May 19, 2023
1 parent f149b79 commit 05f41c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions php/pantheon/checks/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,13 @@ public function message(Messenger $messenger) {
$rows[] = array('class'=>$class, 'data' => $alert);
}

$updates_message = $count_update === 1 ? __( 'Found one plugin needing updates' ) : sprintf( _n( 'Found %d plugin needing updates', 'Found %d plugins needing updates', $count_update ), $count_update );
$result_message = ! $should_check_vulnerabilities ?
// Not checking vulnerabilities message.
sprintf( __( 'Found %s needing updates ...' ), _n( 'one plugin', '%d plugins', $count_update ) ) :
$updates_message . ' ...':
// Checking vulnerabilities message.
sprintf( __( 'Found %s needing updates and %s known vulnerabilities ...' ), _n( 'one plugin', '%d plugins', $count_update ), _n( 'one plugin', '%d plugins', $count_vuln ) );
$updates_message . ' ' .
( $count_vuln === 1 ? __( 'Also found one plugin with known vulnerabilities ...' ) : sprintf( _n( 'Also found %d plugin with known vulnerabilities ...', 'Also found %d plugins with known vulnerabilities ...', $count_vuln ), $count_vuln ) );
$rendered = PHP_EOL;
$rendered .= "$result_message \n" . PHP_EOL;
$rendered .= View::make('table', array('headers'=>$headers,'rows'=>$rows));
Expand Down

0 comments on commit 05f41c7

Please sign in to comment.