mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-21 12:54:42 +02:00
Make regex zero-length-match calltip transatable
Close #8393, close #8414
This commit is contained in:
parent
abadbc6b21
commit
95c6d1ea1e
@ -1274,6 +1274,7 @@ Find in all files except exe, obj && log:
|
|||||||
<find-result-title-info-selections value="($INT_REPLACE1$ hits in $INT_REPLACE2$ selections of $INT_REPLACE3$ searched)"/>
|
<find-result-title-info-selections value="($INT_REPLACE1$ hits in $INT_REPLACE2$ selections of $INT_REPLACE3$ searched)"/>
|
||||||
<find-result-title-info-extra value=" - Line Filter Mode: only display the filtered results"/>
|
<find-result-title-info-extra value=" - Line Filter Mode: only display the filtered results"/>
|
||||||
<find-result-hits value="($INT_REPLACE$ hits)"/>
|
<find-result-hits value="($INT_REPLACE$ hits)"/>
|
||||||
|
<find-regex-zero-length-match value="zero length match" />
|
||||||
</MiscStrings>
|
</MiscStrings>
|
||||||
</Native-Langue>
|
</Native-Langue>
|
||||||
</NotepadPlus>
|
</NotepadPlus>
|
||||||
|
@ -1769,7 +1769,10 @@ bool FindReplaceDlg::processFindNext(const TCHAR *txt2find, const FindOption *op
|
|||||||
// Show a calltip for a zero length match
|
// Show a calltip for a zero length match
|
||||||
if (start == end)
|
if (start == end)
|
||||||
{
|
{
|
||||||
(*_ppEditView)->execute(SCI_CALLTIPSHOW, start, reinterpret_cast<LPARAM>("^ zero length match"));
|
NativeLangSpeaker* pNativeSpeaker = (NppParameters::getInstance()).getNativeLangSpeaker();
|
||||||
|
generic_string msg = pNativeSpeaker->getLocalizedStrFromID("find-regex-zero-length-match", TEXT("zero length match"));
|
||||||
|
msg = TEXT("^ ") + msg;
|
||||||
|
(*_ppEditView)->showCallTip(start, msg.c_str());
|
||||||
}
|
}
|
||||||
if (::SendMessage(_hParent, WM_GETCURRENTMACROSTATUS,0,0) == MACRO_RECORDING_IN_PROGRESS)
|
if (::SendMessage(_hParent, WM_GETCURRENTMACROSTATUS,0,0) == MACRO_RECORDING_IN_PROGRESS)
|
||||||
(*_ppEditView)->execute(SCI_STARTRECORD);
|
(*_ppEditView)->execute(SCI_STARTRECORD);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user