https://git.reactos.org/?p=reactos.git;a=commitdiff;h=43f03da35844a5c446009…
commit 43f03da35844a5c4460092ed00955b3f9d76b8b8
Author: Lee Schroeder <spaceseel(a)gmail.com>
AuthorDate: Mon Sep 23 14:30:53 2019 -0700
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Mon Sep 23 23:30:53 2019 +0200
[MSXML3R] XML/XSL file description localization (#1926)
Add localization for the file description of both XML and XSL file formats.
Please check for copypasta errors!
CORE-16390
Co-Authored-By: Stanislav Motylkov <x86corez(a)gmail.com>
---
boot/bootdata/hivecls.inf | 4 ++--
dll/win32/CMakeLists.txt | 1 +
dll/win32/msxml3r/CMakeLists.txt | 4 ++++
dll/win32/msxml3r/lang/en-US.rc | 7 +++++++
dll/win32/msxml3r/lang/es-ES.rc | 7 +++++++
dll/win32/msxml3r/lang/fr-FR.rc | 7 +++++++
dll/win32/msxml3r/lang/it-IT.rc | 7 +++++++
dll/win32/msxml3r/lang/ro-RO.rc | 7 +++++++
dll/win32/msxml3r/lang/ru-RU.rc | 7 +++++++
dll/win32/msxml3r/msxml3r.rc | 34 ++++++++++++++++++++++++++++++++++
dll/win32/msxml3r/resource.h | 7 +++++++
11 files changed, 90 insertions(+), 2 deletions(-)
diff --git a/boot/bootdata/hivecls.inf b/boot/bootdata/hivecls.inf
index 1b38c910e56..d3ae861c06b 100644
--- a/boot/bootdata/hivecls.inf
+++ b/boot/bootdata/hivecls.inf
@@ -400,7 +400,7 @@
HKCR,"txtfile\shell\print\command","",0x00000000,"notepad.exe /p
""%1"""
HKCR,".xml","",0x00000000,"xmlfile"
HKCR,".xml","Content Type",0x00000000,"text/xml"
HKCR,"xmlfile","",0x00000000,%XMLFILE%
-;;HKCR,"xmlfile","FriendlyTypeName",0x00020000,"(a)%SystemRoot%\system32\msxml3r.dll,-1"
+HKCR,"xmlfile","FriendlyTypeName",0x00020000,"(a)%SystemRoot%\system32\msxml3r.dll,-1"
HKCR,"xmlfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\msxml3.dll,0"
HKCR,"xmlfile\shell\open\command","",0x00020000,"%SystemRoot%\system32\notepad.exe
""%1"""
@@ -408,7 +408,7 @@
HKCR,"xmlfile\shell\open\command","",0x00020000,"%SystemRoot%\system32\notepad.e
HKCR,".xsl","",0x00000000,"xslfile"
HKCR,".xsl","Content Type",0x00000000,"text/xml"
HKCR,"xslfile","",0x00000000,%XSLFILE%
-;;HKCR,"xslfile","FriendlyTypeName",0x00020000,"(a)%SystemRoot%\system32\msxml3r.dll,-2"
+HKCR,"xslfile","FriendlyTypeName",0x00020000,"(a)%SystemRoot%\system32\msxml3r.dll,-2"
HKCR,"xslfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\msxml3.dll,1"
HKCR,"xslfile\shell\open\command","",0x00020000,"%SystemRoot%\system32\notepad.exe
""%1"""
diff --git a/dll/win32/CMakeLists.txt b/dll/win32/CMakeLists.txt
index a7259794433..015003826d4 100644
--- a/dll/win32/CMakeLists.txt
+++ b/dll/win32/CMakeLists.txt
@@ -127,6 +127,7 @@ add_subdirectory(mswsock)
add_subdirectory(msxml)
add_subdirectory(msxml2)
add_subdirectory(msxml3)
+add_subdirectory(msxml3r)
add_subdirectory(msxml4)
add_subdirectory(msxml6)
add_subdirectory(mycomput)
diff --git a/dll/win32/msxml3r/CMakeLists.txt b/dll/win32/msxml3r/CMakeLists.txt
new file mode 100644
index 00000000000..7589115fd0f
--- /dev/null
+++ b/dll/win32/msxml3r/CMakeLists.txt
@@ -0,0 +1,4 @@
+
+add_library(msxml3r SHARED msxml3r.rc)
+set_module_type(msxml3r win32dll ENTRYPOINT 0)
+add_cd_file(TARGET msxml3r DESTINATION reactos/system32 FOR all)
diff --git a/dll/win32/msxml3r/lang/en-US.rc b/dll/win32/msxml3r/lang/en-US.rc
new file mode 100644
index 00000000000..e14680ff12f
--- /dev/null
+++ b/dll/win32/msxml3r/lang/en-US.rc
@@ -0,0 +1,7 @@
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+
+STRINGTABLE
+BEGIN
+ IDS_XML_FILE "XML Document"
+ IDS_XLS_FILE "XSL Stylesheet"
+END
diff --git a/dll/win32/msxml3r/lang/es-ES.rc b/dll/win32/msxml3r/lang/es-ES.rc
new file mode 100644
index 00000000000..99958239f86
--- /dev/null
+++ b/dll/win32/msxml3r/lang/es-ES.rc
@@ -0,0 +1,7 @@
+LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
+
+STRINGTABLE
+BEGIN
+ IDS_XML_FILE "Documento XML"
+ IDS_XLS_FILE "Hoja de estilos XSL"
+END
diff --git a/dll/win32/msxml3r/lang/fr-FR.rc b/dll/win32/msxml3r/lang/fr-FR.rc
new file mode 100644
index 00000000000..fce8692e5a5
--- /dev/null
+++ b/dll/win32/msxml3r/lang/fr-FR.rc
@@ -0,0 +1,7 @@
+LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
+
+STRINGTABLE
+BEGIN
+ IDS_XML_FILE "Document XML"
+ IDS_XLS_FILE "Feuille de style XSL"
+END
diff --git a/dll/win32/msxml3r/lang/it-IT.rc b/dll/win32/msxml3r/lang/it-IT.rc
new file mode 100644
index 00000000000..52624365b61
--- /dev/null
+++ b/dll/win32/msxml3r/lang/it-IT.rc
@@ -0,0 +1,7 @@
+LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
+
+STRINGTABLE
+BEGIN
+ IDS_XML_FILE "Documento XML"
+ IDS_XLS_FILE "Foglio di stile XSL"
+END
diff --git a/dll/win32/msxml3r/lang/ro-RO.rc b/dll/win32/msxml3r/lang/ro-RO.rc
new file mode 100644
index 00000000000..d28277aeb16
--- /dev/null
+++ b/dll/win32/msxml3r/lang/ro-RO.rc
@@ -0,0 +1,7 @@
+LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
+
+STRINGTABLE
+BEGIN
+ IDS_XML_FILE "Document XML"
+ IDS_XLS_FILE "Foaie de stil XSL"
+END
diff --git a/dll/win32/msxml3r/lang/ru-RU.rc b/dll/win32/msxml3r/lang/ru-RU.rc
new file mode 100644
index 00000000000..b341853528b
--- /dev/null
+++ b/dll/win32/msxml3r/lang/ru-RU.rc
@@ -0,0 +1,7 @@
+LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
+
+STRINGTABLE
+BEGIN
+ IDS_XML_FILE "Документ XML"
+ IDS_XLS_FILE "Таблица стилей XSL"
+END
diff --git a/dll/win32/msxml3r/msxml3r.rc b/dll/win32/msxml3r/msxml3r.rc
new file mode 100644
index 00000000000..c3a7f7099cc
--- /dev/null
+++ b/dll/win32/msxml3r/msxml3r.rc
@@ -0,0 +1,34 @@
+#include <windef.h>
+
+#include "resource.h"
+
+#define REACTOS_VERSION_DLL
+#define REACTOS_STR_FILE_DESCRIPTION "ReactOS MSXML 3.0 Resource Library"
+#define REACTOS_STR_INTERNAL_NAME "msxml3r"
+#define REACTOS_STR_ORIGINAL_FILENAME "msxml3r.dll"
+
+#include <reactos/version.rc>
+
+LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
+
+/* UTF-8 */
+#pragma code_page(65001)
+
+#ifdef LANGUAGE_EN_US
+ #include "lang/en-US.rc"
+#endif
+#ifdef LANGUAGE_ES_ES
+ #include "lang/es-ES.rc"
+#endif
+#ifdef LANGUAGE_FR_FR
+ #include "lang/fr-FR.rc"
+#endif
+#ifdef LANGUAGE_IT_IT
+ #include "lang/it-IT.rc"
+#endif
+#ifdef LANGUAGE_RO_RO
+ #include "lang/ro-RO.rc"
+#endif
+#ifdef LANGUAGE_RU_RU
+ #include "lang/ru-RU.rc"
+#endif
diff --git a/dll/win32/msxml3r/resource.h b/dll/win32/msxml3r/resource.h
new file mode 100644
index 00000000000..94cbda1d9c9
--- /dev/null
+++ b/dll/win32/msxml3r/resource.h
@@ -0,0 +1,7 @@
+#ifndef RESOURCE_H
+#define RESOURCE_H
+
+#define IDS_XML_FILE 1
+#define IDS_XLS_FILE 2
+
+#endif /* RESOURCE_H */