Make find/replace in files progress translatable

Fix #9319, close #9356
pull/9369/head
Scott Sumner 4 years ago committed by Don HO
parent 9f635b22af
commit d6c941034d
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

@ -1377,9 +1377,11 @@ Find in all files except exe, obj && log:
<summary-nbsel1 value=" selected characters ("/>
<summary-nbsel2 value=" bytes) in "/>
<summary-nbrange value=" ranges"/>
<find-in-files-progress-title value="Find In Files progress..."/>
<replace-in-files-confirm-title value="Are you sure?"/>
<replace-in-files-confirm-directory value="Are you sure you want to replace all occurrences in :"/>
<replace-in-files-confirm-filetype value="For file type :"/>
<replace-in-files-progress-title value="Replace In Files progress..."/>
<replace-in-open-docs-confirm-title value="Are you sure?"/>
<replace-in-open-docs-confirm-message value="Are you sure you want to replace all occurrences in all open documents?"/>
<find-result-caption value="Search results"/>

@ -1569,7 +1569,10 @@ bool Notepad_plus::replaceInFiles()
{
if (filesCount >= 200)
filesPerPercent = filesCount / 100;
progress.open(_findReplaceDlg.getHSelf(), TEXT("Replace In Files progress..."));
generic_string msg = _nativeLangSpeaker.getLocalizedStrFromID(
"replace-in-files-progress-title", TEXT("Replace In Files progress..."));
progress.open(_findReplaceDlg.getHSelf(), msg.c_str());
}
for (size_t i = 0, updateOnCount = filesPerPercent; i < filesCount; ++i)
@ -1659,7 +1662,10 @@ bool Notepad_plus::findInFinderFiles(FindersInfo *findInFolderInfo)
{
if (filesCount >= 200)
filesPerPercent = filesCount / 100;
progress.open(_findReplaceDlg.getHSelf(), TEXT("Find In Files progress..."));
generic_string msg = _nativeLangSpeaker.getLocalizedStrFromID(
"find-in-files-progress-title", TEXT("Find In Files progress..."));
progress.open(_findReplaceDlg.getHSelf(), msg.c_str());
}
for (size_t i = 0, updateOnCount = filesPerPercent; i < filesCount; ++i)
@ -1751,7 +1757,10 @@ bool Notepad_plus::findInFiles()
{
if (filesCount >= 200)
filesPerPercent = filesCount / 100;
progress.open(_findReplaceDlg.getHSelf(), TEXT("Find In Files progress..."));
generic_string msg = _nativeLangSpeaker.getLocalizedStrFromID(
"find-in-files-progress-title", TEXT("Find In Files progress..."));
progress.open(_findReplaceDlg.getHSelf(), msg.c_str());
}
const bool isEntireDoc = true;

Loading…
Cancel
Save