Skip to content

Commit 1801acd

Browse files
committed
Merge branch 'master' of https://github.com/malensek/3RVX
2 parents c4106fa + 5f5b22b commit 1801acd

File tree

5 files changed

+46
-4
lines changed

5 files changed

+46
-4
lines changed

3RVX/CommCtl.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#pragma comment(lib, "comctl32.lib")
24

35
#include <CommCtrl.h>

3RVX/OSD/VolumeOSD.cpp

+11-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <string>
66

77
#include "..\HotkeyInfo.h"
8+
#include "..\LanguageTranslator.h"
89
#include "..\MeterWnd\Meters\CallbackMeter.h"
910
#include "..\Monitor.h"
1011
#include "..\Skin.h"
@@ -44,13 +45,19 @@ _muteWnd(L"3RVX-MuteOSD", L"3RVX-MuteOSD") {
4445

4546
/* Set up context menu */
4647
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+
4754
_menu = CreatePopupMenu();
4855
_deviceMenu = CreatePopupMenu();
4956

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());
5461

5562
_menuFlags = TPM_RIGHTBUTTON;
5663
if (GetSystemMetrics(SM_MENUDROPALIGNMENT) != 0) {

3RVX/OSD/VolumeOSD.h

+6
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,10 @@ class VolumeOSD : public OSD, MeterCallbackReceiver {
7070

7171
virtual LRESULT
7272
WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
73+
74+
private:
75+
std::wstring _menuSetStr = L"Settings";
76+
std::wstring _menuDevStr = L"Audio Device";
77+
std::wstring _menuMixerStr = L"Mixer";
78+
std::wstring _menuExitStr = L"Exit 3RVX";
7379
};

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
3RVX3 Changelog
22
===============
33

4+
Beta 9
5+
------
6+
* Compatiblity mode for the old (v2) skin format
7+
* Automatic updates
8+
* Hotkey to disable/enable the OSD
9+
* Option to temporarily disable the OSD when a DirectX application is running full screen
10+
411
Beta 8
512
------
613
* Full screen detection
@@ -9,8 +16,10 @@ Beta 8
916
* Installer-based (non-portable) setup. Portable distributions will still be provided as well.
1017
* Update checking functionality
1118
* Launching multiple settings instances will now simply raise and activate the first instance
19+
* Added content to the About tab
1220
* Bugfix: Corrupted "Run on Startup" registry entry
1321
* Bugfix: Play sound for custom volume increments
22+
* Bugfix: low-color icons were being loaded for the notification area
1423

1524
Beta 7
1625
------

Languages/TestLanguage.xml

+18
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,24 @@
2222
<translation>XXXXX</translation>
2323
</string>
2424

25+
<!-- Notification Icon Menu Strings -->
26+
<string>
27+
<original>Settings</original>
28+
<translation>XXXXXXXX</translation>
29+
</string>
30+
<string>
31+
<original>Audio Device</original>
32+
<translation>XXXXX XXXXXX</translation>
33+
</string>
34+
<string>
35+
<original>Mixer</original>
36+
<translation>XXXXX</translation>
37+
</string>
38+
<string>
39+
<original>Exit</original>
40+
<original>XXXX</original>
41+
</string>
42+
2543

2644
<!-- Tab Names -->
2745
<string>

0 commit comments

Comments
 (0)