Add Shift+Enter tip translations

pull/2958/head
Don HO 8 years ago
parent 3ba1b100f2
commit 701d1f79d7

@ -994,6 +994,7 @@
<word-chars-list-warning-end value=" 在你的單字字符集中。"/>
<cloud-invalid-warning value="無效路徑"/>
<cloud-restart-warning value="請重新啟動 Notepad++ 以讓改變生效"/>
<shift-change-direction-tip value="Shift+Enter 相反方向搜尋"/>
</MiscStrings>
</Native-Langue>
</NotepadPlus>

@ -998,6 +998,7 @@
<word-chars-list-warning-end value=" in your character list."/>
<cloud-invalid-warning value="Invalid path."/>
<cloud-restart-warning value="Please restart Notepad++ to take effect."/>
<shift-change-direction-tip value="Use Shift+Enter to search in the opposite direction."/>
</MiscStrings>
</Native-Langue>
</NotepadPlus>

@ -983,6 +983,7 @@
<word-chars-list-warning-end value=" dans la liste des caractères de mot."/>
<cloud-invalid-warning value="Chemin invalide."/>
<cloud-restart-warning value="Veuillez redémarrer Notepad++ afin que le changement prenne effet."/>
<shift-change-direction-tip value="Shift+Enter est utilisé pour la recherche dans le sens inverse."/>
</MiscStrings>
</Native-Langue>
</NotepadPlus>

@ -706,7 +706,7 @@ INT_PTR CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance())->getNativeLangSpeaker();
generic_string tip2show = pNativeSpeaker->getLocalizedStrFromID("shift-change-direction-tip");
if (tip2show.empty())
tip2show = TEXT("Use Shift+Enter to search in the reverse set direction.");
tip2show = TEXT("Use Shift+Enter to search in the opposite direction.");
_shiftTrickUpTip = CreateToolTip(IDDIRECTIONUP, _hSelf, _hInst, const_cast<PTSTR>(tip2show.c_str()));
_shiftTrickDownTip = CreateToolTip(IDDIRECTIONDOWN, _hSelf, _hInst, const_cast<PTSTR>(tip2show.c_str()));
@ -714,13 +714,13 @@ INT_PTR CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM
{
SendMessage(_shiftTrickUpTip, TTM_ACTIVATE, TRUE, 0);
SendMessage(_shiftTrickUpTip, TTM_SETMAXTIPWIDTH, 0, 200);
// Make tip stay 30 seconds
SendMessage(_shiftTrickUpTip, TTM_SETDELAYTIME, TTDT_AUTOPOP, MAKELPARAM((30000), (0)));
// Make tip stay 15 seconds
SendMessage(_shiftTrickUpTip, TTM_SETDELAYTIME, TTDT_AUTOPOP, MAKELPARAM((15000), (0)));
SendMessage(_shiftTrickDownTip, TTM_ACTIVATE, TRUE, 0);
SendMessage(_shiftTrickDownTip, TTM_SETMAXTIPWIDTH, 0, 200);
// Make tip stay 30 seconds
SendMessage(_shiftTrickDownTip, TTM_SETDELAYTIME, TTDT_AUTOPOP, MAKELPARAM((30000), (0)));
// Make tip stay 15 seconds
SendMessage(_shiftTrickDownTip, TTM_SETDELAYTIME, TTDT_AUTOPOP, MAKELPARAM((15000), (0)));
}
return TRUE;

Loading…
Cancel
Save