From 701d1f79d703e6591bb055d1d1c3be462a4aa60e Mon Sep 17 00:00:00 2001 From: Don HO Date: Fri, 24 Feb 2017 21:15:21 +0100 Subject: [PATCH] Add Shift+Enter tip translations --- PowerEditor/installer/nativeLang/chinese.xml | 1 + PowerEditor/installer/nativeLang/english.xml | 1 + PowerEditor/installer/nativeLang/french.xml | 1 + PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 10 +++++----- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/PowerEditor/installer/nativeLang/chinese.xml b/PowerEditor/installer/nativeLang/chinese.xml index 4cbbc8de..1df959d8 100644 --- a/PowerEditor/installer/nativeLang/chinese.xml +++ b/PowerEditor/installer/nativeLang/chinese.xml @@ -994,6 +994,7 @@ + diff --git a/PowerEditor/installer/nativeLang/english.xml b/PowerEditor/installer/nativeLang/english.xml index 15a0afa2..45481af1 100644 --- a/PowerEditor/installer/nativeLang/english.xml +++ b/PowerEditor/installer/nativeLang/english.xml @@ -998,6 +998,7 @@ + diff --git a/PowerEditor/installer/nativeLang/french.xml b/PowerEditor/installer/nativeLang/french.xml index 8fc5a99b..e55c5d67 100644 --- a/PowerEditor/installer/nativeLang/french.xml +++ b/PowerEditor/installer/nativeLang/french.xml @@ -983,6 +983,7 @@ + diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 6d983f30..7e270bd4 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -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(tip2show.c_str())); _shiftTrickDownTip = CreateToolTip(IDDIRECTIONDOWN, _hSelf, _hInst, const_cast(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;