Make regex zero-length-match calltip transatable

Close #8393, close #8414
pull/8429/head
Scott Sumner 5 years ago committed by Don HO
parent abadbc6b21
commit 95c6d1ea1e
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

@ -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-extra value=" - Line Filter Mode: only display the filtered results"/>
<find-result-hits value="($INT_REPLACE$ hits)"/>
<find-regex-zero-length-match value="zero length match" />
</MiscStrings>
</Native-Langue>
</NotepadPlus>

@ -1769,7 +1769,10 @@ bool FindReplaceDlg::processFindNext(const TCHAR *txt2find, const FindOption *op
// Show a calltip for a zero length match
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)
(*_ppEditView)->execute(SCI_STARTRECORD);

Loading…
Cancel
Save