summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2017-01-07 10:22:28 +0100
committerRobert Pösel <robyer@seznam.cz>2017-01-07 11:12:38 +0100
commit2f887561f3083d635ac84103e8c64215a9e63082 (patch)
tree04f18eab0d9c4c97f83bb533c19e4524d819d171
parent64f6b0eeeae1bf0c7383bedf86eec0f01a320050 (diff)
StatusManager: Allow translation of subplugins' checkboxes
-rw-r--r--plugins/StatusManager/res/resource.rc8
-rw-r--r--plugins/StatusManager/src/options.cpp7
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));
}