Author: cwittich
Date: Fri Apr  3 14:38:20 2015
New Revision: 67021

URL: http://svn.reactos.org/svn/reactos?rev=67021&view=rev
Log:
[SHELL32]
make "Manage" translatable
by Giannis and me

Added:
    trunk/reactos/dll/win32/mycomput/   (with props)
    trunk/reactos/dll/win32/mycomput/CMakeLists.txt   (with props)
    trunk/reactos/dll/win32/mycomput/lang/   (with props)
    trunk/reactos/dll/win32/mycomput/lang/de-DE.rc   (with props)
    trunk/reactos/dll/win32/mycomput/lang/en-US.rc   (with props)
    trunk/reactos/dll/win32/mycomput/mycomput.rc   (with props)
    trunk/reactos/dll/win32/mycomput/resource.h   (with props)
Modified:
    trunk/reactos/dll/win32/CMakeLists.txt
    trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp
    trunk/reactos/dll/win32/shell32/res/rgs/mycomputer.rgs

Modified: trunk/reactos/dll/win32/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/CMakeLists.txt?rev=67021&r1=67020&r2=67021&view=diff
==============================================================================
--- trunk/reactos/dll/win32/CMakeLists.txt      [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/CMakeLists.txt      [iso-8859-1] Fri Apr  3 
14:38:20 2015
@@ -126,6 +126,7 @@
 add_subdirectory(msxml3)
 add_subdirectory(msxml4)
 add_subdirectory(msxml6)
+add_subdirectory(mycomput)
 add_subdirectory(nddeapi)
 add_subdirectory(netapi32)
 add_subdirectory(netcfgx)

Propchange: trunk/reactos/dll/win32/mycomput/
------------------------------------------------------------------------------
--- bugtraq:logregex    (added)
+++ bugtraq:logregex    Fri Apr  3 14:38:20 2015
@@ -0,0 +1 @@
+((CORE|ROSTESTS|ROSAPPS)-\d+)(,? ?((CORE|ROSTESTS|ROSAPPS)-\d+))*(,? ?(and |or 
)?((CORE|ROSTESTS|ROSAPPS)-\d+))?

Propchange: trunk/reactos/dll/win32/mycomput/
------------------------------------------------------------------------------
    bugtraq:message = See issue %BUGID% for more details.

Propchange: trunk/reactos/dll/win32/mycomput/
------------------------------------------------------------------------------
    bugtraq:url = https://jira.reactos.org/browse/%BUGID%

Propchange: trunk/reactos/dll/win32/mycomput/
------------------------------------------------------------------------------
    tsvn:logminsize = 10

Added: trunk/reactos/dll/win32/mycomput/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mycomput/CMakeLists.txt?rev=67021
==============================================================================
--- trunk/reactos/dll/win32/mycomput/CMakeLists.txt     (added)
+++ trunk/reactos/dll/win32/mycomput/CMakeLists.txt     [iso-8859-1] Fri Apr  3 
14:38:20 2015
@@ -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)

Propchange: trunk/reactos/dll/win32/mycomput/CMakeLists.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/reactos/dll/win32/mycomput/lang/
------------------------------------------------------------------------------
--- bugtraq:logregex    (added)
+++ bugtraq:logregex    Fri Apr  3 14:38:20 2015
@@ -0,0 +1 @@
+((CORE|ROSTESTS|ROSAPPS)-\d+)(,? ?((CORE|ROSTESTS|ROSAPPS)-\d+))*(,? ?(and |or 
)?((CORE|ROSTESTS|ROSAPPS)-\d+))?

Propchange: trunk/reactos/dll/win32/mycomput/lang/
------------------------------------------------------------------------------
    bugtraq:message = See issue %BUGID% for more details.

Propchange: trunk/reactos/dll/win32/mycomput/lang/
------------------------------------------------------------------------------
    bugtraq:url = https://jira.reactos.org/browse/%BUGID%

Propchange: trunk/reactos/dll/win32/mycomput/lang/
------------------------------------------------------------------------------
    tsvn:logminsize = 10

Added: trunk/reactos/dll/win32/mycomput/lang/de-DE.rc
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mycomput/lang/de-DE.rc?rev=67021
==============================================================================
--- trunk/reactos/dll/win32/mycomput/lang/de-DE.rc      (added)
+++ trunk/reactos/dll/win32/mycomput/lang/de-DE.rc      [iso-8859-1] Fri Apr  3 
14:38:20 2015
@@ -0,0 +1,6 @@
+LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
+
+STRINGTABLE
+BEGIN
+    IDS_MANAGE "Verwalten"
+END

Propchange: trunk/reactos/dll/win32/mycomput/lang/de-DE.rc
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/reactos/dll/win32/mycomput/lang/en-US.rc
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mycomput/lang/en-US.rc?rev=67021
==============================================================================
--- trunk/reactos/dll/win32/mycomput/lang/en-US.rc      (added)
+++ trunk/reactos/dll/win32/mycomput/lang/en-US.rc      [iso-8859-1] Fri Apr  3 
14:38:20 2015
@@ -0,0 +1,6 @@
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+
+STRINGTABLE
+BEGIN
+    IDS_MANAGE "Manage"
+END

Propchange: trunk/reactos/dll/win32/mycomput/lang/en-US.rc
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/reactos/dll/win32/mycomput/mycomput.rc
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mycomput/mycomput.rc?rev=67021
==============================================================================
--- trunk/reactos/dll/win32/mycomput/mycomput.rc        (added)
+++ trunk/reactos/dll/win32/mycomput/mycomput.rc        [iso-8859-1] Fri Apr  3 
14:38:20 2015
@@ -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
+

Propchange: trunk/reactos/dll/win32/mycomput/mycomput.rc
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/reactos/dll/win32/mycomput/resource.h
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mycomput/resource.h?rev=67021
==============================================================================
--- trunk/reactos/dll/win32/mycomput/resource.h (added)
+++ trunk/reactos/dll/win32/mycomput/resource.h [iso-8859-1] Fri Apr  3 
14:38:20 2015
@@ -0,0 +1,3 @@
+#pragma once
+
+#define IDS_MANAGE 400

Propchange: trunk/reactos/dll/win32/mycomput/resource.h
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp?rev=67021&r1=67020&r2=67021&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp     [iso-8859-1] 
(original)
+++ trunk/reactos/dll/win32/shell32/CDefaultContextMenu.cpp     [iso-8859-1] 
Fri Apr  3 14:38:20 2015
@@ -657,10 +657,26 @@
 
             if (SUCCEEDED(hr))
             {
+                HKEY hkVerb;
                 DWORD cbVerb = sizeof(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 */
+                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; 
+                    }
+
+                    RegCloseKey(hkVerb);
+                }
             }
         }
 

Modified: trunk/reactos/dll/win32/shell32/res/rgs/mycomputer.rgs
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/res/rgs/mycomputer.rgs?rev=67021&r1=67020&r2=67021&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/res/rgs/mycomputer.rgs      [iso-8859-1] 
(original)
+++ trunk/reactos/dll/win32/shell32/res/rgs/mycomputer.rgs      [iso-8859-1] 
Fri Apr  3 14:38:20 2015
@@ -28,7 +28,7 @@
                                                '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'


Reply via email to