[MSXML3R] XML/XSL file description localization (#1926)
authorLee Schroeder <spaceseel@gmail.com>
Mon, 23 Sep 2019 21:30:53 +0000 (14:30 -0700)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Mon, 23 Sep 2019 21:30:53 +0000 (23:30 +0200)
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@gmail.com>
boot/bootdata/hivecls.inf
dll/win32/CMakeLists.txt
dll/win32/msxml3r/CMakeLists.txt [new file with mode: 0644]
dll/win32/msxml3r/lang/en-US.rc [new file with mode: 0644]
dll/win32/msxml3r/lang/es-ES.rc [new file with mode: 0644]
dll/win32/msxml3r/lang/fr-FR.rc [new file with mode: 0644]
dll/win32/msxml3r/lang/it-IT.rc [new file with mode: 0644]
dll/win32/msxml3r/lang/ro-RO.rc [new file with mode: 0644]
dll/win32/msxml3r/lang/ru-RU.rc [new file with mode: 0644]
dll/win32/msxml3r/msxml3r.rc [new file with mode: 0644]
dll/win32/msxml3r/resource.h [new file with mode: 0644]

index 1b38c91..d3ae861 100644 (file)
@@ -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,".xml","",0x00000000,"xmlfile"
 HKCR,".xml","Content Type",0x00000000,"text/xml"
 HKCR,"xmlfile","",0x00000000,%XMLFILE%
-;;HKCR,"xmlfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\msxml3r.dll,-1"
+HKCR,"xmlfile","FriendlyTypeName",0x00020000,"@%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"""
 
 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,".xsl","",0x00000000,"xslfile"
 HKCR,".xsl","Content Type",0x00000000,"text/xml"
 HKCR,"xslfile","",0x00000000,%XSLFILE%
-;;HKCR,"xslfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\msxml3r.dll,-2"
+HKCR,"xslfile","FriendlyTypeName",0x00020000,"@%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"""
 
 HKCR,"xslfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\msxml3.dll,1"
 HKCR,"xslfile\shell\open\command","",0x00020000,"%SystemRoot%\system32\notepad.exe ""%1"""
 
index a725979..0150038 100644 (file)
@@ -127,6 +127,7 @@ add_subdirectory(mswsock)
 add_subdirectory(msxml)
 add_subdirectory(msxml2)
 add_subdirectory(msxml3)
 add_subdirectory(msxml)
 add_subdirectory(msxml2)
 add_subdirectory(msxml3)
+add_subdirectory(msxml3r)
 add_subdirectory(msxml4)
 add_subdirectory(msxml6)
 add_subdirectory(mycomput)
 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 (file)
index 0000000..7589115
--- /dev/null
@@ -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 (file)
index 0000000..e14680f
--- /dev/null
@@ -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 (file)
index 0000000..9995823
--- /dev/null
@@ -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 (file)
index 0000000..fce8692
--- /dev/null
@@ -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 (file)
index 0000000..5262436
--- /dev/null
@@ -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 (file)
index 0000000..d28277a
--- /dev/null
@@ -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 (file)
index 0000000..b341853
--- /dev/null
@@ -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 (file)
index 0000000..c3a7f70
--- /dev/null
@@ -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 (file)
index 0000000..94cbda1
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef RESOURCE_H
+#define RESOURCE_H
+
+#define IDS_XML_FILE 1
+#define IDS_XLS_FILE 2
+
+#endif /* RESOURCE_H */