mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
localized the settings file
This commit is contained in:
73
src/modules/powerrename/lib/PowerRenameLib.rc
Normal file
73
src/modules/powerrename/lib/PowerRenameLib.rc
Normal file
@@ -0,0 +1,73 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "winres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (United States) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
LANGUAGE 9, 1
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""winres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
#endif // English (United States) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_ROOT_PATH L"Software\\Microsoft\\PowerRename"
|
||||
IDS_SEARCH_PATH L"SearchMRU"
|
||||
IDS_REPLACE_PATH L"ReplaceMRU"
|
||||
IDS_ENABLED L"Enabled"
|
||||
IDS_SHOW_ICON L"ShowIcon"
|
||||
IDS_CONTEXT_MENU L"ExtendedContextMenuOnly"
|
||||
IDS_PERSIST_STATE L"PersistState"
|
||||
IDS_MAX_MRU_SIZE L"MaxMRUSize"
|
||||
IDS_FLAGS L"Flags"
|
||||
IDS_SEARCH_TEXT L"SearchText"
|
||||
IDS_REPLACE_TEXT L"ReplaceText"
|
||||
IDS_MRU_ENABLED L"MRUEnabled"
|
||||
END
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
@@ -3,20 +3,22 @@
|
||||
#include <commctrl.h>
|
||||
#include "Settings.h"
|
||||
#include "PowerRenameInterfaces.h"
|
||||
#include "resource.h"
|
||||
#include <common.h>
|
||||
|
||||
const wchar_t c_rootRegPath[] = L"Software\\Microsoft\\PowerRename";
|
||||
const wchar_t c_mruSearchRegPath[] = L"SearchMRU";
|
||||
const wchar_t c_mruReplaceRegPath[] = L"ReplaceMRU";
|
||||
wchar_t* c_rootRegPath = GET_RES_STRING_WCHAR(IDS_ROOT_PATH);
|
||||
wchar_t* c_mruSearchRegPath = GET_RES_STRING_WCHAR(IDS_SEARCH_PATH);
|
||||
wchar_t* c_mruReplaceRegPath = GET_RES_STRING_WCHAR(IDS_REPLACE_PATH);
|
||||
|
||||
const wchar_t c_enabled[] = L"Enabled";
|
||||
const wchar_t c_showIconOnMenu[] = L"ShowIcon";
|
||||
const wchar_t c_extendedContextMenuOnly[] = L"ExtendedContextMenuOnly";
|
||||
const wchar_t c_persistState[] = L"PersistState";
|
||||
const wchar_t c_maxMRUSize[] = L"MaxMRUSize";
|
||||
const wchar_t c_flags[] = L"Flags";
|
||||
const wchar_t c_searchText[] = L"SearchText";
|
||||
const wchar_t c_replaceText[] = L"ReplaceText";
|
||||
const wchar_t c_mruEnabled[] = L"MRUEnabled";
|
||||
wchar_t* c_enabled = GET_RES_STRING_WCHAR(IDS_ENABLED);
|
||||
wchar_t* c_showIconOnMenu = GET_RES_STRING_WCHAR(IDS_SHOW_ICON);
|
||||
wchar_t* c_extendedContextMenuOnly = GET_RES_STRING_WCHAR(IDS_CONTEXT_MENU);
|
||||
wchar_t* c_persistState = GET_RES_STRING_WCHAR(IDS_PERSIST_STATE);
|
||||
wchar_t* c_maxMRUSize = GET_RES_STRING_WCHAR(IDS_MAX_MRU_SIZE);
|
||||
wchar_t* c_flags = GET_RES_STRING_WCHAR(IDS_FLAGS);
|
||||
wchar_t* c_searchText = GET_RES_STRING_WCHAR(IDS_SEARCH_TEXT);
|
||||
wchar_t* c_replaceText = GET_RES_STRING_WCHAR(IDS_REPLACE_TEXT);
|
||||
wchar_t* c_mruEnabled = GET_RES_STRING_WCHAR(IDS_MRU_ENABLED);
|
||||
|
||||
const bool c_enabledDefault = true;
|
||||
const bool c_showIconOnMenuDefault = true;
|
||||
|
||||
28
src/modules/powerrename/lib/resource.h
Normal file
28
src/modules/powerrename/lib/resource.h
Normal file
@@ -0,0 +1,28 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by PowerRenameLib.rc
|
||||
|
||||
#define IDS_ROOT_PATH 100
|
||||
#define IDS_SEARCH_PATH 101
|
||||
#define IDS_REPLACE_PATH 102
|
||||
#define IDS_ENABLED 103
|
||||
#define IDS_SHOW_ICON 104
|
||||
#define IDS_CONTEXT_MENU 105
|
||||
#define IDS_PERSIST_STATE 106
|
||||
#define IDS_MAX_MRU_SIZE 107
|
||||
#define IDS_FLAGS 108
|
||||
#define IDS_SEARCH_TEXT 109
|
||||
#define IDS_REPLACE_TEXT 110
|
||||
#define IDS_MRU_ENABLED 111
|
||||
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 101
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1001
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user