From 43879e64ef4be5289c224eb91d7ad539538b65a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20J=C3=B6nsson?= Date: Fri, 24 Apr 2015 19:32:08 +0200 Subject: [PATCH] Fix plurals in find-replace dialog. --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index f44adc07..02bce652 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -883,7 +883,7 @@ BOOL CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lP else { TCHAR moreInfo[64]; - if(nbReplaced <= 1) + if(nbReplaced == 1) wsprintf(moreInfo, TEXT("Replace All: %d occurrence was replaced."), nbReplaced); else wsprintf(moreInfo, TEXT("Replace All: %d occurrences were replaced."), nbReplaced); @@ -2120,7 +2120,7 @@ void FindReplaceDlg::execSavedCommand(int cmd, int intValue, generic_string stri else { TCHAR moreInfo[64]; - if (nbReplaced == 0 || nbReplaced == 1) + if (nbReplaced == 1) wsprintf(moreInfo, TEXT("Replace All: %d occurrence was replaced."), nbReplaced); else wsprintf(moreInfo, TEXT("Replace All: %d occurrences were replaced."), nbReplaced);