mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-29 00:34:24 +02:00
Merge pull request #8 from andreas-jonsson/plurals
Fix plurals in find-replace dialog.
This commit is contained in:
commit
46cb58069f
@ -883,7 +883,7 @@ BOOL CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lP
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
TCHAR moreInfo[64];
|
TCHAR moreInfo[64];
|
||||||
if(nbReplaced <= 1)
|
if(nbReplaced == 1)
|
||||||
wsprintf(moreInfo, TEXT("Replace All: %d occurrence was replaced."), nbReplaced);
|
wsprintf(moreInfo, TEXT("Replace All: %d occurrence was replaced."), nbReplaced);
|
||||||
else
|
else
|
||||||
wsprintf(moreInfo, TEXT("Replace All: %d occurrences were replaced."), nbReplaced);
|
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
|
else
|
||||||
{
|
{
|
||||||
TCHAR moreInfo[64];
|
TCHAR moreInfo[64];
|
||||||
if (nbReplaced == 0 || nbReplaced == 1)
|
if (nbReplaced == 1)
|
||||||
wsprintf(moreInfo, TEXT("Replace All: %d occurrence was replaced."), nbReplaced);
|
wsprintf(moreInfo, TEXT("Replace All: %d occurrence was replaced."), nbReplaced);
|
||||||
else
|
else
|
||||||
wsprintf(moreInfo, TEXT("Replace All: %d occurrences were replaced."), nbReplaced);
|
wsprintf(moreInfo, TEXT("Replace All: %d occurrences were replaced."), nbReplaced);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user