Localize C++ Projects of FancyZones (#1130)

* localized dllmain.cpp  of fancyzones project

* localized FancyZones.cpp

* format fancyzones.rc file

* Moved SuperFancyZones back to being a string instead of having it in the resource file as it is the window class name

* reverted changes for window name

* Formatted fancyzones rc file
This commit is contained in:
Alekhya
2020-01-22 10:24:00 -08:00
committed by GitHub
parent 1ad16ade86
commit 925b6694ac
3 changed files with 21 additions and 17 deletions

View File

@@ -7,6 +7,7 @@
#include <lib/ZoneSet.h>
#include <lib/RegistryHelpers.h>
#include <lib/resource.h>
#include <lib/trace.h>
#include <lib/Settings.h>
#include <lib/FancyZones.h>
@@ -108,7 +109,7 @@ public:
// Return the display name of the powertoy, this will be cached
virtual PCWSTR get_name() override
{
return L"FancyZones";
return app_name.c_str();
}
// Return array of the names of all events that this powertoy listens for, with
@@ -197,6 +198,7 @@ public:
FancyZonesModule()
{
app_name = GET_RESOURCE_STRING(IDS_FANCYZONES);
m_settings = MakeFancyZonesSettings(reinterpret_cast<HINSTANCE>(&__ImageBase), FancyZonesModule::get_name());
}
@@ -257,6 +259,7 @@ private:
HANDLE m_movedWindow = nullptr;
winrt::com_ptr<IFancyZones> m_app;
winrt::com_ptr<IFancyZonesSettings> m_settings;
std::wstring app_name;
};
intptr_t FancyZonesModule::HandleKeyboardHookEvent(LowlevelKeyboardEvent* data) noexcept

View File

@@ -14,3 +14,4 @@
#define IDS_SETTING_LAUNCH_EDITOR_HOTKEY_LABEL 114
#define IDS_SETTING_EXCLCUDED_APPS_DESCRIPTION 115
#define IDS_SETTINGS_HIGHLIGHT_OPACITY 116
#define IDS_FANCYZONES 117