Skip to content

Commit

Permalink
Fix text when counting tables
Browse files Browse the repository at this point in the history
Signed-off-by: Liviu-Mihail Concioiu <[email protected]>
  • Loading branch information
liviuconcioiu committed Jan 17, 2025
1 parent 07d74b8 commit d0cacae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion js/src/database/structure.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ DatabaseStructure.adjustTotals = function () {

// Update summary with new data
var $summary = $('#tbl_summary_row');
$summary.find('.tbl_num').text(Functions.sprintf(Messages.strNTables, tableSum));
$summary.find('.tbl_num').text(
tableSum === 1
? Functions.sprintf(Messages.strOneTable, tableSum)
: Functions.sprintf(Messages.strNTables, tableSum)
);

if (rowSumApproximated) {
$summary.find('.row_count_sum').text(strRowSum);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ private function setMessages(): void
'strTiB' => __('TiB'),
'strPiB' => __('PiB'),
'strEiB' => __('EiB'),
'strNTables' => __('%d table(s)'),
'strOneTable' => __('%d table'),
'strNTables' => __('%d tables'),

/* l10n: Questions is the name of a MySQL Status variable */
'strQuestions' => __('Questions'),
Expand Down

0 comments on commit d0cacae

Please sign in to comment.