|
5 | 5 | #include <string>
|
6 | 6 |
|
7 | 7 | #include "..\HotkeyInfo.h"
|
| 8 | +#include "..\LanguageTranslator.h" |
8 | 9 | #include "..\MeterWnd\Meters\CallbackMeter.h"
|
9 | 10 | #include "..\Monitor.h"
|
10 | 11 | #include "..\Skin.h"
|
@@ -44,13 +45,19 @@ _muteWnd(L"3RVX-MuteOSD", L"3RVX-MuteOSD") {
|
44 | 45 |
|
45 | 46 | /* Set up context menu */
|
46 | 47 | if (settings->NotifyIconEnabled()) {
|
| 48 | + LanguageTranslator *translator = settings->Translator(); |
| 49 | + _menuSetStr = translator->Translate(_menuSetStr); |
| 50 | + _menuDevStr = translator->Translate(_menuDevStr); |
| 51 | + _menuMixerStr = translator->Translate(_menuMixerStr); |
| 52 | + _menuExitStr = translator->Translate(_menuExitStr); |
| 53 | + |
47 | 54 | _menu = CreatePopupMenu();
|
48 | 55 | _deviceMenu = CreatePopupMenu();
|
49 | 56 |
|
50 |
| - InsertMenu(_menu, -1, MF_ENABLED, MENU_SETTINGS, L"Settings"); |
51 |
| - InsertMenu(_menu, -1, MF_POPUP, UINT(_deviceMenu), L"Audio Device"); |
52 |
| - InsertMenu(_menu, -1, MF_ENABLED, MENU_MIXER, L"Mixer"); |
53 |
| - InsertMenu(_menu, -1, MF_ENABLED, MENU_EXIT, L"Exit"); |
| 57 | + InsertMenu(_menu, -1, MF_ENABLED, MENU_SETTINGS, _menuSetStr.c_str()); |
| 58 | + InsertMenu(_menu, -1, MF_POPUP, UINT(_deviceMenu), _menuDevStr.c_str()); |
| 59 | + InsertMenu(_menu, -1, MF_ENABLED, MENU_MIXER, _menuMixerStr.c_str()); |
| 60 | + InsertMenu(_menu, -1, MF_ENABLED, MENU_EXIT, _menuExitStr.c_str()); |
54 | 61 |
|
55 | 62 | _menuFlags = TPM_RIGHTBUTTON;
|
56 | 63 | if (GetSystemMetrics(SM_MENUDROPALIGNMENT) != 0) {
|
|
0 commit comments