From 1ef92c6cce0b852e0e4802057b6027d0e22ef107 Mon Sep 17 00:00:00 2001 From: Don HO Date: Wed, 14 Nov 2018 00:42:14 +0100 Subject: [PATCH] Fix a "Frenglish" issue. --- PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp | 8 ++++---- PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.rc | 4 ++-- .../src/WinControls/PluginsAdmin/pluginsAdminRes.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp index fb203eeb7..18e55da37 100644 --- a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp +++ b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp @@ -286,7 +286,7 @@ void PluginsAdminDlg::create(int dialogID, bool isRTL, bool msgDestParent) const int topMarge = 42; - HWND hResearchLabel = ::GetDlgItem(_hSelf, IDC_PLUGINADM_RESEARCH_STATIC); + HWND hResearchLabel = ::GetDlgItem(_hSelf, IDC_PLUGINADM_SEARCH_STATIC); RECT researchLabelRect; ::GetClientRect(hResearchLabel, &researchLabelRect); researchLabelRect.left = rect.left; @@ -294,7 +294,7 @@ void PluginsAdminDlg::create(int dialogID, bool isRTL, bool msgDestParent) ::MoveWindow(hResearchLabel, researchLabelRect.left, researchLabelRect.top, researchLabelRect.right, researchLabelRect.bottom, TRUE); ::InvalidateRect(hResearchLabel, nullptr, TRUE); - HWND hResearchEdit = ::GetDlgItem(_hSelf, IDC_PLUGINADM_RESEARCH_EDIT); + HWND hResearchEdit = ::GetDlgItem(_hSelf, IDC_PLUGINADM_SEARCH_EDIT); RECT researchEditRect; ::GetClientRect(hResearchEdit, &researchEditRect); researchEditRect.left = researchLabelRect.right + marge; @@ -970,7 +970,7 @@ bool PluginsAdminDlg::searchInPlugins(bool isNextMode) const { const int maxLen = 256; TCHAR txt2search[maxLen]; - ::GetDlgItemText(_hSelf, IDC_PLUGINADM_RESEARCH_EDIT, txt2search, maxLen); + ::GetDlgItemText(_hSelf, IDC_PLUGINADM_SEARCH_EDIT, txt2search, maxLen); if (lstrlen(txt2search) < 2) return false; @@ -1083,7 +1083,7 @@ INT_PTR CALLBACK PluginsAdminDlg::run_dlgProc(UINT message, WPARAM wParam, LPARA { switch (LOWORD(wParam)) { - case IDC_PLUGINADM_RESEARCH_EDIT: + case IDC_PLUGINADM_SEARCH_EDIT: { searchInPlugins(false); return TRUE; diff --git a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.rc b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.rc index c83c746b6..5cd96973e 100644 --- a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.rc +++ b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.rc @@ -39,8 +39,8 @@ EXSTYLE WS_EX_TOOLWINDOW CAPTION "Plugins Admin" FONT 8, "MS Shell Dlg", 0, 0, 0x0 BEGIN - RTEXT "Research: ",IDC_PLUGINADM_RESEARCH_STATIC,50,38,50,8 - EDITTEXT IDC_PLUGINADM_RESEARCH_EDIT,160,35,150,14,ES_AUTOHSCROLL + RTEXT "Search: ",IDC_PLUGINADM_SEARCH_STATIC,50,38,50,8 + EDITTEXT IDC_PLUGINADM_SEARCH_EDIT,160,35,150,14,ES_AUTOHSCROLL PUSHBUTTON "Next", IDC_PLUGINADM_RESEARCH_NEXT,332,35,57,14 PUSHBUTTON "Install", IDC_PLUGINADM_INSTALL,432,35,57,14 PUSHBUTTON "Update", IDC_PLUGINADM_UPDATE,432,35,57,14 diff --git a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdminRes.h b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdminRes.h index f371d7378..c3553ace1 100644 --- a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdminRes.h +++ b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdminRes.h @@ -28,8 +28,8 @@ #define IDD_PLUGINSADMIN_DLG 5500 - #define IDC_PLUGINADM_RESEARCH_STATIC (IDD_PLUGINSADMIN_DLG + 1) - #define IDC_PLUGINADM_RESEARCH_EDIT (IDD_PLUGINSADMIN_DLG + 2) + #define IDC_PLUGINADM_SEARCH_STATIC (IDD_PLUGINSADMIN_DLG + 1) + #define IDC_PLUGINADM_SEARCH_EDIT (IDD_PLUGINSADMIN_DLG + 2) #define IDC_PLUGINADM_INSTALL (IDD_PLUGINSADMIN_DLG + 3) #define IDC_PLUGINADM_UPDATE (IDD_PLUGINSADMIN_DLG + 4) #define IDC_PLUGINADM_REMOVE (IDD_PLUGINSADMIN_DLG + 5)