mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
[ContextMenus]Update context menu labels and improve localization calls (#31000)
* Update file locksmith * ImageResizer * Update imageresizer context menu * Changes * [PowerRename]Don't use app name for context menu caption * [ImageResizer]Apply string to old context menu too * Add localization to the PowerRenameContextMenu project * Show actual context menu string in PowerRename * New Ids for the resource strings * Add do not loc comments * Add fallback and cache resource values * Update src/modules/imageresizer/dll/ContextMenuHandler.cpp Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com> * Remove do not loc comments from Image Resizer --------- Co-authored-by: Jaime Bernardo <jaime@janeasystems.com> Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>
This commit is contained in:
@@ -21,3 +21,4 @@ inline std::wstring get_resource_string(UINT resource_id, HINSTANCE instance, co
|
||||
extern "C" IMAGE_DOS_HEADER __ImageBase;
|
||||
// Wrapper for getting a string from the resource file. Returns the resource id text when fails.
|
||||
#define GET_RESOURCE_STRING(resource_id) get_resource_string(resource_id, reinterpret_cast<HINSTANCE>(&__ImageBase), L#resource_id)
|
||||
#define GET_RESOURCE_STRING_FALLBACK(resource_id, fallback) get_resource_string(resource_id, reinterpret_cast<HINSTANCE>(&__ImageBase), fallback)
|
||||
|
||||
Reference in New Issue
Block a user