Merge pull request #6461 from Crizz0/ticket/17067

[ticket/17067] Add lang variable for rows per second & searchindex:
This commit is contained in:
Marc Alexander 2023-02-06 20:07:12 +01:00 committed by GitHub
commit 49b9dc4a3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -146,6 +146,8 @@ $lang = array_merge($lang, array(
'CLI_REPARSER_REPARSE_REPARSING_START' => 'Reparsing %s...', 'CLI_REPARSER_REPARSE_REPARSING_START' => 'Reparsing %s...',
'CLI_REPARSER_REPARSE_SUCCESS' => 'Reparsing ended with success', 'CLI_REPARSER_REPARSE_SUCCESS' => 'Reparsing ended with success',
'CLI_ROWS_PER_SECOND' => '%s rows/s',
'CLI_SEARCHINDEX_SEARCH_BACKEND_NAME' => 'Backend class', 'CLI_SEARCHINDEX_SEARCH_BACKEND_NAME' => 'Backend class',
'CLI_SEARCHINDEX_BACKEND_NOT_FOUND' => 'Search module not found', 'CLI_SEARCHINDEX_BACKEND_NOT_FOUND' => 'Search module not found',
'CLI_SEARCHINDEX_CREATE_SUCCESS' => 'Search index created successfully', 'CLI_SEARCHINDEX_CREATE_SUCCESS' => 'Search index created successfully',

View file

@ -138,7 +138,7 @@ class create extends command
$this->state_helper->update_counter($status['post_counter']); $this->state_helper->update_counter($status['post_counter']);
$progress->setProgress($status['post_counter']); $progress->setProgress($status['post_counter']);
$progress->setMessage(round($status['rows_per_second'], 2) . ' rows/s'); $progress->setMessage($this->language->lang('CLI_ROWS_PER_SECOND', round($status['rows_per_second'], 2)));
} }
$progress->finish(); $progress->finish();

View file

@ -138,7 +138,7 @@ class delete extends command
$this->state_helper->update_counter($status['post_counter']); $this->state_helper->update_counter($status['post_counter']);
$progress->setProgress($status['post_counter']); $progress->setProgress($status['post_counter']);
$progress->setMessage(round($status['rows_per_second'], 2) . ' rows/s'); $progress->setMessage($this->language->lang('CLI_ROWS_PER_SECOND', round($status['rows_per_second'], 2)));
} }
$progress->finish(); $progress->finish();