Skip to content

Commit

Permalink
Allow pluralization of a few strings
Browse files Browse the repository at this point in the history
Closes #351
  • Loading branch information
dail8859 committed Apr 7, 2023
1 parent 5b15831 commit ff812ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NotepadNext/dialogs/FindReplaceDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ FindReplaceDialog::FindReplaceDialog(ISearchResultsHandler *searchResults, MainW

setEditor(current_editor);

showMessage(tr("Replaced %L1 matches").arg(count), "green");
showMessage(tr("Replaced %Ln matches", "", count), "green");
});
connect(ui->buttonClose, &QPushButton::clicked, this, &FindReplaceDialog::close);

Expand Down Expand Up @@ -328,7 +328,7 @@ void FindReplaceDialog::replaceAll()
}

int count = finder->replaceAll(replaceText);
showMessage(tr("Replaced %L1 matches").arg(count), "green");
showMessage(tr("Replaced %Ln matches", "", count), "green");
}

void FindReplaceDialog::count()
Expand All @@ -339,7 +339,7 @@ void FindReplaceDialog::count()

int total = finder->count();

showMessage(tr("Found %L1 matches").arg(total), "green");
showMessage(tr("Found %Ln matches", "", total), "green");
}

void FindReplaceDialog::setEditor(ScintillaNext *editor)
Expand Down

0 comments on commit ff812ce

Please sign in to comment.