From 2f887561f3083d635ac84103e8c64215a9e63082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sat, 7 Jan 2017 10:22:28 +0100 Subject: StatusManager: Allow translation of subplugins' checkboxes --- plugins/StatusManager/res/resource.rc | 8 +++++--- plugins/StatusManager/src/options.cpp | 7 ------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/plugins/StatusManager/res/resource.rc b/plugins/StatusManager/res/resource.rc index b561065f9a..6b55e42b1d 100644 --- a/plugins/StatusManager/res/resource.rc +++ b/plugins/StatusManager/res/resource.rc @@ -29,9 +29,11 @@ STYLE DS_SETFONT | DS_3DLOOK | DS_FIXEDSYS | WS_CHILD EXSTYLE WS_EX_CONTROLPARENT FONT 8, "MS Shell Dlg", 0, 0, 0x1 BEGIN - CONTROL "Enable ""%s"" *",IDC_ENABLE_KEEPSTATUS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,19,24,173,10 - CONTROL "Enable ""%s"" *",IDC_ENABLE_STARTUPSTATUS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,19,37,173,10 - CONTROL "Enable ""%s"" *",IDC_ENABLE_ADVANCEDAUTOAWAY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,19,50,173,10 + CONTROL "Enable ""Keep status"" *",IDC_ENABLE_KEEPSTATUS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,19,24,173,10 + CONTROL "Enable ""Startup status"" *",IDC_ENABLE_STARTUPSTATUS, + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,19,37,173,10 + CONTROL "Enable ""Advanced auto away"" *",IDC_ENABLE_ADVANCEDAUTOAWAY, + "Button",BS_AUTOCHECKBOX | WS_TABSTOP,19,50,173,10 GROUPBOX "Subplugins control",IDC_STATIC,7,7,198,89 LTEXT "* requires a reboot for applying changes",IDC_STATIC,19,81,173,9 END diff --git a/plugins/StatusManager/src/options.cpp b/plugins/StatusManager/src/options.cpp index fbf410b520..c6fe45bda4 100644 --- a/plugins/StatusManager/src/options.cpp +++ b/plugins/StatusManager/src/options.cpp @@ -12,15 +12,8 @@ void CSubPluginsOptionsDlg::OnInitDialog() { CDlgBase::OnInitDialog(); - wchar_t text[128]; - mir_snwprintf(text, L"Enable \"%s\" *", L"Keep status"); - m_enableKeepStatus.SetText(text); m_enableKeepStatus.SetState(IsSubPluginEnabled(KSMODULENAME)); - mir_snwprintf(text, L"Enable \"%s\" *", L"Startup status"); - m_enableStartupStatus.SetText(text); m_enableStartupStatus.SetState(IsSubPluginEnabled(SSMODULENAME)); - mir_snwprintf(text, L"Enable \"%s\" *", L"Advanced auto away"); - m_enableAdvancedAutoAway.SetText(text); m_enableAdvancedAutoAway.SetState(IsSubPluginEnabled(AAAMODULENAME)); } -- cgit v1.2.3