mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[SHELL32]
make "Manage" translatable by Giannis and me svn path=/trunk/; revision=67021
This commit is contained in:
parent
b80598739f
commit
f6fa1a2649
|
@ -126,6 +126,7 @@ add_subdirectory(msxml2)
|
|||
add_subdirectory(msxml3)
|
||||
add_subdirectory(msxml4)
|
||||
add_subdirectory(msxml6)
|
||||
add_subdirectory(mycomput)
|
||||
add_subdirectory(nddeapi)
|
||||
add_subdirectory(netapi32)
|
||||
add_subdirectory(netcfgx)
|
||||
|
|
6
reactos/dll/win32/mycomput/CMakeLists.txt
Normal file
6
reactos/dll/win32/mycomput/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
add_library(mycomput SHARED
|
||||
mycomput.rc)
|
||||
|
||||
set_module_type(mycomput win32dll UNICODE)
|
||||
add_cd_file(TARGET mycomput DESTINATION reactos/system32 FOR all)
|
6
reactos/dll/win32/mycomput/lang/de-DE.rc
Normal file
6
reactos/dll/win32/mycomput/lang/de-DE.rc
Normal file
|
@ -0,0 +1,6 @@
|
|||
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_MANAGE "Verwalten"
|
||||
END
|
6
reactos/dll/win32/mycomput/lang/en-US.rc
Normal file
6
reactos/dll/win32/mycomput/lang/en-US.rc
Normal file
|
@ -0,0 +1,6 @@
|
|||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_MANAGE "Manage"
|
||||
END
|
18
reactos/dll/win32/mycomput/mycomput.rc
Normal file
18
reactos/dll/win32/mycomput/mycomput.rc
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include <windef.h>
|
||||
#include <winuser.h>
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
|
||||
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
||||
|
||||
/* UTF-8 */
|
||||
#pragma code_page(65001)
|
||||
|
||||
#ifdef LANGUAGE_DE_DE
|
||||
#include "lang/de-DE.rc"
|
||||
#endif
|
||||
#ifdef LANGUAGE_EN_US
|
||||
#include "lang/en-US.rc"
|
||||
#endif
|
||||
|
3
reactos/dll/win32/mycomput/resource.h
Normal file
3
reactos/dll/win32/mycomput/resource.h
Normal file
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
#define IDS_MANAGE 400
|
|
@ -657,10 +657,26 @@ CDefaultContextMenu::AddStaticContextMenusToMenu(
|
|||
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
HKEY hkVerb;
|
||||
DWORD cbVerb = sizeof(wszVerb);
|
||||
LONG res = RegOpenKeyW(HKEY_CLASSES_ROOT, wszKey, &hkVerb);
|
||||
if (res == ERROR_SUCCESS)
|
||||
{
|
||||
res = RegLoadMUIStringW(hkVerb,
|
||||
NULL,
|
||||
wszVerb,
|
||||
cbVerb,
|
||||
NULL,
|
||||
0,
|
||||
NULL);
|
||||
if (res == ERROR_SUCCESS)
|
||||
{
|
||||
/* use description for the menu entry */
|
||||
mii.dwTypeData = wszVerb;
|
||||
}
|
||||
|
||||
if (RegGetValueW(HKEY_CLASSES_ROOT, wszKey, NULL, RRF_RT_REG_SZ, NULL, wszVerb, &cbVerb) == ERROR_SUCCESS)
|
||||
mii.dwTypeData = wszVerb; /* use description for the menu entry */
|
||||
RegCloseKey(hkVerb);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ HKCR
|
|||
'topic' = s 'AppProperties'
|
||||
}
|
||||
}
|
||||
'Manage'
|
||||
'Manage' = e '@%%SystemRoot%%\system32\mycomput.dll,-400'
|
||||
{
|
||||
'command' = e 'explorer.exe /n,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{D20EA4E1-3957-11d2-A40B-0C5020524153}'
|
||||
val 'SuppressionPolicy' = d '&H4000003c'
|
||||
|
|
Loading…
Reference in a new issue