mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
Make find/replace in files progress translatable
Fix #9319, close #9356
This commit is contained in:
parent
9f635b22af
commit
d6c941034d
@ -1377,9 +1377,11 @@ Find in all files except exe, obj && log:
|
|||||||
<summary-nbsel1 value=" selected characters ("/>
|
<summary-nbsel1 value=" selected characters ("/>
|
||||||
<summary-nbsel2 value=" bytes) in "/>
|
<summary-nbsel2 value=" bytes) in "/>
|
||||||
<summary-nbrange value=" ranges"/>
|
<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-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-directory value="Are you sure you want to replace all occurrences in :"/>
|
||||||
<replace-in-files-confirm-filetype value="For file type :"/>
|
<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-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?"/>
|
<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"/>
|
<find-result-caption value="Search results"/>
|
||||||
|
@ -1569,7 +1569,10 @@ bool Notepad_plus::replaceInFiles()
|
|||||||
{
|
{
|
||||||
if (filesCount >= 200)
|
if (filesCount >= 200)
|
||||||
filesPerPercent = filesCount / 100;
|
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)
|
for (size_t i = 0, updateOnCount = filesPerPercent; i < filesCount; ++i)
|
||||||
@ -1659,7 +1662,10 @@ bool Notepad_plus::findInFinderFiles(FindersInfo *findInFolderInfo)
|
|||||||
{
|
{
|
||||||
if (filesCount >= 200)
|
if (filesCount >= 200)
|
||||||
filesPerPercent = filesCount / 100;
|
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)
|
for (size_t i = 0, updateOnCount = filesPerPercent; i < filesCount; ++i)
|
||||||
@ -1751,7 +1757,10 @@ bool Notepad_plus::findInFiles()
|
|||||||
{
|
{
|
||||||
if (filesCount >= 200)
|
if (filesCount >= 200)
|
||||||
filesPerPercent = filesCount / 100;
|
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;
|
const bool isEntireDoc = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user