mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
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:
@@ -7,6 +7,7 @@
|
|||||||
#include <lib/ZoneSet.h>
|
#include <lib/ZoneSet.h>
|
||||||
#include <lib/RegistryHelpers.h>
|
#include <lib/RegistryHelpers.h>
|
||||||
|
|
||||||
|
#include <lib/resource.h>
|
||||||
#include <lib/trace.h>
|
#include <lib/trace.h>
|
||||||
#include <lib/Settings.h>
|
#include <lib/Settings.h>
|
||||||
#include <lib/FancyZones.h>
|
#include <lib/FancyZones.h>
|
||||||
@@ -108,7 +109,7 @@ public:
|
|||||||
// Return the display name of the powertoy, this will be cached
|
// Return the display name of the powertoy, this will be cached
|
||||||
virtual PCWSTR get_name() override
|
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
|
// Return array of the names of all events that this powertoy listens for, with
|
||||||
@@ -197,6 +198,7 @@ public:
|
|||||||
|
|
||||||
FancyZonesModule()
|
FancyZonesModule()
|
||||||
{
|
{
|
||||||
|
app_name = GET_RESOURCE_STRING(IDS_FANCYZONES);
|
||||||
m_settings = MakeFancyZonesSettings(reinterpret_cast<HINSTANCE>(&__ImageBase), FancyZonesModule::get_name());
|
m_settings = MakeFancyZonesSettings(reinterpret_cast<HINSTANCE>(&__ImageBase), FancyZonesModule::get_name());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -257,6 +259,7 @@ private:
|
|||||||
HANDLE m_movedWindow = nullptr;
|
HANDLE m_movedWindow = nullptr;
|
||||||
winrt::com_ptr<IFancyZones> m_app;
|
winrt::com_ptr<IFancyZones> m_app;
|
||||||
winrt::com_ptr<IFancyZonesSettings> m_settings;
|
winrt::com_ptr<IFancyZonesSettings> m_settings;
|
||||||
|
std::wstring app_name;
|
||||||
};
|
};
|
||||||
|
|
||||||
intptr_t FancyZonesModule::HandleKeyboardHookEvent(LowlevelKeyboardEvent* data) noexcept
|
intptr_t FancyZonesModule::HandleKeyboardHookEvent(LowlevelKeyboardEvent* data) noexcept
|
||||||
|
|||||||
Binary file not shown.
@@ -1,16 +1,17 @@
|
|||||||
#define IDS_SETTING_DESCRIPTION_SHIFTDRAG 101
|
#define IDS_SETTING_DESCRIPTION_SHIFTDRAG 101
|
||||||
#define IDS_SETTING_DESCRIPTION_OVERRIDE_SNAP_HOTKEYS 102
|
#define IDS_SETTING_DESCRIPTION_OVERRIDE_SNAP_HOTKEYS 102
|
||||||
#define IDS_SETTING_DESCRIPTION_DISPLAYCHANGE_MOVEWINDOWS 103
|
#define IDS_SETTING_DESCRIPTION_DISPLAYCHANGE_MOVEWINDOWS 103
|
||||||
#define IDS_SETTING_DESCRIPTION_ZONESETCHANGE_MOVEWINDOWS 104
|
#define IDS_SETTING_DESCRIPTION_ZONESETCHANGE_MOVEWINDOWS 104
|
||||||
#define IDS_SETTING_DESCRIPTION_ZONESETCHANGE_FLASHZONES 105
|
#define IDS_SETTING_DESCRIPTION_ZONESETCHANGE_FLASHZONES 105
|
||||||
#define IDS_SETTING_DESCRIPTION_VIRTUALDESKTOPCHANGE_MOVEWINDOWS 106
|
#define IDS_SETTING_DESCRIPTION_VIRTUALDESKTOPCHANGE_MOVEWINDOWS 106
|
||||||
#define IDS_SETTING_DESCRIPTION_ZONEHIGHLIGHTCOLOR 107
|
#define IDS_SETTING_DESCRIPTION_ZONEHIGHLIGHTCOLOR 107
|
||||||
#define IDS_SETTING_DESCRIPTION_APPLASTZONE_MOVEWINDOWS 108
|
#define IDS_SETTING_DESCRIPTION_APPLASTZONE_MOVEWINDOWS 108
|
||||||
#define IDS_SETTING_DESCRIPTION_USE_CURSORPOS_EDITOR_STARTUPSCREEN 109
|
#define IDS_SETTING_DESCRIPTION_USE_CURSORPOS_EDITOR_STARTUPSCREEN 109
|
||||||
#define IDS_SETTING_DESCRIPTION 110
|
#define IDS_SETTING_DESCRIPTION 110
|
||||||
#define IDS_SETTING_LAUNCH_EDITOR_LABEL 111
|
#define IDS_SETTING_LAUNCH_EDITOR_LABEL 111
|
||||||
#define IDS_SETTING_LAUNCH_EDITOR_BUTTON 112
|
#define IDS_SETTING_LAUNCH_EDITOR_BUTTON 112
|
||||||
#define IDS_SETTING_LAUNCH_EDITOR_DESCRIPTION 113
|
#define IDS_SETTING_LAUNCH_EDITOR_DESCRIPTION 113
|
||||||
#define IDS_SETTING_LAUNCH_EDITOR_HOTKEY_LABEL 114
|
#define IDS_SETTING_LAUNCH_EDITOR_HOTKEY_LABEL 114
|
||||||
#define IDS_SETTING_EXCLCUDED_APPS_DESCRIPTION 115
|
#define IDS_SETTING_EXCLCUDED_APPS_DESCRIPTION 115
|
||||||
#define IDS_SETTINGS_HIGHLIGHT_OPACITY 116
|
#define IDS_SETTINGS_HIGHLIGHT_OPACITY 116
|
||||||
|
#define IDS_FANCYZONES 117
|
||||||
|
|||||||
Reference in New Issue
Block a user