Localized the strings of Launcher

This commit is contained in:
Alekhya Reddy Kommuru 2020-03-16 08:34:26 -07:00
parent 16d1245b64
commit 9537dd793d
5 changed files with 22 additions and 9 deletions

View file

@ -1,4 +1,12 @@
1 VERSIONINFO
#include "resource.h"
<EFBFBD>
匀吀刀䤀一䜀吀䄀䈀䰀䔀ഀ<EFBFBD>
䈀䔀䜀䤀一ഀ<EFBFBD>
    䤀䐀匀开䰀䄀唀一䌀䠀䔀刀开一䄀䴀䔀 䰀∀䰀愀甀渀挀栀攀爀∀ <EFBFBD>
    䤀䐀匀开䰀䄀唀一䌀䠀䔀刀开匀䔀吀吀䤀一䜀匀开䐀䔀匀䌀 䰀∀㰀一漀 搀攀猀挀爀椀瀀琀椀漀渀㸀∀ഀ<EFBFBD>
䔀一䐀ഀ<EFBFBD>
<EFBFBD>
 嘀䔀刀匀䤀伀一䤀一䘀伀ഀ<EFBFBD>
FILEVERSION 0,1,0,0
PRODUCTVERSION 0,1,0,0
FILEFLAGSMASK 0x3fL

View file

@ -4,6 +4,7 @@
#include <interface/win_hook_event_data.h>
#include <common/settings_objects.h>
#include "trace.h"
#include "resource.h"
extern "C" IMAGE_DOS_HEADER __ImageBase;
@ -22,10 +23,6 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReser
return TRUE;
}
// The PowerToy name that will be shown in the settings.
const static wchar_t* MODULE_NAME = L"Launcher";
// Add a description that will we shown in the module settings page.
const static wchar_t* MODULE_DESC = L"<no description>";
// These are the properties shown in the Settings page.
struct ModuleSettings {
@ -54,9 +51,13 @@ private:
// Handle to launch and terminate the launcher
HANDLE m_hProcess;
//contains the name of the powerToys
std::wstring app_name;
public:
// Constructor
Wox_Launcher() {
app_name = GET_RESOURCE_STRING(IDS_LAUNCHER_NAME);
init_settings();
};
@ -67,7 +68,7 @@ public:
// Return the display name of the powertoy, this will be cached by the runner
virtual const wchar_t* get_name() override {
return MODULE_NAME;
return app_name.c_str();
}
// Return array of the names of all events that this powertoy listens for, with
@ -92,7 +93,7 @@ public:
// Create a Settings object.
PowerToysSettings::Settings settings(hinstance, get_name());
settings.set_description(MODULE_DESC);
settings.set_description(GET_RESOURCE_STRING(IDS_LAUNCHER_SETTINGS_DESC));
// Show an overview link in the Settings page
//settings.set_overview_link(L"https://");

View file

@ -1,2 +1,3 @@
#include "pch.h"
#pragma comment(lib, "windowsapp")
#pragma comment(lib, "windowsapp")
#pragma comment(lib, "shlwapi.lib")

View file

@ -3,4 +3,5 @@
#include <windows.h>
#include <common/common.h>
#include <ProjectTelemetry.h>
#include <shellapi.h>
#include <shellapi.h>
#include <Shlwapi.h>

View file

@ -0,0 +1,2 @@
#define IDS_LAUNCHER_NAME 601
#define IDS_LAUNCHER_SETTINGS_DESC 602