Fix a "Frenglish" issue.

pull/5023/head
Don HO 6 years ago
parent 5251bdd6db
commit 1ef92c6cce

@ -286,7 +286,7 @@ void PluginsAdminDlg::create(int dialogID, bool isRTL, bool msgDestParent)
const int topMarge = 42; const int topMarge = 42;
HWND hResearchLabel = ::GetDlgItem(_hSelf, IDC_PLUGINADM_RESEARCH_STATIC); HWND hResearchLabel = ::GetDlgItem(_hSelf, IDC_PLUGINADM_SEARCH_STATIC);
RECT researchLabelRect; RECT researchLabelRect;
::GetClientRect(hResearchLabel, &researchLabelRect); ::GetClientRect(hResearchLabel, &researchLabelRect);
researchLabelRect.left = rect.left; 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); ::MoveWindow(hResearchLabel, researchLabelRect.left, researchLabelRect.top, researchLabelRect.right, researchLabelRect.bottom, TRUE);
::InvalidateRect(hResearchLabel, nullptr, TRUE); ::InvalidateRect(hResearchLabel, nullptr, TRUE);
HWND hResearchEdit = ::GetDlgItem(_hSelf, IDC_PLUGINADM_RESEARCH_EDIT); HWND hResearchEdit = ::GetDlgItem(_hSelf, IDC_PLUGINADM_SEARCH_EDIT);
RECT researchEditRect; RECT researchEditRect;
::GetClientRect(hResearchEdit, &researchEditRect); ::GetClientRect(hResearchEdit, &researchEditRect);
researchEditRect.left = researchLabelRect.right + marge; researchEditRect.left = researchLabelRect.right + marge;
@ -970,7 +970,7 @@ bool PluginsAdminDlg::searchInPlugins(bool isNextMode) const
{ {
const int maxLen = 256; const int maxLen = 256;
TCHAR txt2search[maxLen]; TCHAR txt2search[maxLen];
::GetDlgItemText(_hSelf, IDC_PLUGINADM_RESEARCH_EDIT, txt2search, maxLen); ::GetDlgItemText(_hSelf, IDC_PLUGINADM_SEARCH_EDIT, txt2search, maxLen);
if (lstrlen(txt2search) < 2) if (lstrlen(txt2search) < 2)
return false; return false;
@ -1083,7 +1083,7 @@ INT_PTR CALLBACK PluginsAdminDlg::run_dlgProc(UINT message, WPARAM wParam, LPARA
{ {
switch (LOWORD(wParam)) switch (LOWORD(wParam))
{ {
case IDC_PLUGINADM_RESEARCH_EDIT: case IDC_PLUGINADM_SEARCH_EDIT:
{ {
searchInPlugins(false); searchInPlugins(false);
return TRUE; return TRUE;

@ -39,8 +39,8 @@ EXSTYLE WS_EX_TOOLWINDOW
CAPTION "Plugins Admin" CAPTION "Plugins Admin"
FONT 8, "MS Shell Dlg", 0, 0, 0x0 FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN BEGIN
RTEXT "Research: ",IDC_PLUGINADM_RESEARCH_STATIC,50,38,50,8 RTEXT "Search: ",IDC_PLUGINADM_SEARCH_STATIC,50,38,50,8
EDITTEXT IDC_PLUGINADM_RESEARCH_EDIT,160,35,150,14,ES_AUTOHSCROLL EDITTEXT IDC_PLUGINADM_SEARCH_EDIT,160,35,150,14,ES_AUTOHSCROLL
PUSHBUTTON "Next", IDC_PLUGINADM_RESEARCH_NEXT,332,35,57,14 PUSHBUTTON "Next", IDC_PLUGINADM_RESEARCH_NEXT,332,35,57,14
PUSHBUTTON "Install", IDC_PLUGINADM_INSTALL,432,35,57,14 PUSHBUTTON "Install", IDC_PLUGINADM_INSTALL,432,35,57,14
PUSHBUTTON "Update", IDC_PLUGINADM_UPDATE,432,35,57,14 PUSHBUTTON "Update", IDC_PLUGINADM_UPDATE,432,35,57,14

@ -28,8 +28,8 @@
#define IDD_PLUGINSADMIN_DLG 5500 #define IDD_PLUGINSADMIN_DLG 5500
#define IDC_PLUGINADM_RESEARCH_STATIC (IDD_PLUGINSADMIN_DLG + 1) #define IDC_PLUGINADM_SEARCH_STATIC (IDD_PLUGINSADMIN_DLG + 1)
#define IDC_PLUGINADM_RESEARCH_EDIT (IDD_PLUGINSADMIN_DLG + 2) #define IDC_PLUGINADM_SEARCH_EDIT (IDD_PLUGINSADMIN_DLG + 2)
#define IDC_PLUGINADM_INSTALL (IDD_PLUGINSADMIN_DLG + 3) #define IDC_PLUGINADM_INSTALL (IDD_PLUGINSADMIN_DLG + 3)
#define IDC_PLUGINADM_UPDATE (IDD_PLUGINSADMIN_DLG + 4) #define IDC_PLUGINADM_UPDATE (IDD_PLUGINSADMIN_DLG + 4)
#define IDC_PLUGINADM_REMOVE (IDD_PLUGINSADMIN_DLG + 5) #define IDC_PLUGINADM_REMOVE (IDD_PLUGINSADMIN_DLG + 5)

Loading…
Cancel
Save