[SHELL32]

make "Manage" translatable
by Giannis and me

svn path=/trunk/; revision=67021
This commit is contained in:
Christoph von Wittich 2015-04-03 14:38:20 +00:00
parent b80598739f
commit f6fa1a2649
8 changed files with 59 additions and 3 deletions

View file

@ -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)

View 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)

View file

@ -0,0 +1,6 @@
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_MANAGE "Verwalten"
END

View file

@ -0,0 +1,6 @@
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STRINGTABLE
BEGIN
IDS_MANAGE "Manage"
END

View 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

View file

@ -0,0 +1,3 @@
#pragma once
#define IDS_MANAGE 400

View file

@ -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);
}
}
}

View file

@ -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'