Skip to content

Commit 43f03da

Browse files
milawynsrealmbinarymaster
authored andcommitted
[MSXML3R] XML/XSL file description localization (reactos#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 <[email protected]>
1 parent 9dd71e1 commit 43f03da

File tree

11 files changed

+90
-2
lines changed

11 files changed

+90
-2
lines changed

boot/bootdata/hivecls.inf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,15 +400,15 @@ HKCR,"txtfile\shell\print\command","",0x00000000,"notepad.exe /p ""%1"""
400400
HKCR,".xml","",0x00000000,"xmlfile"
401401
HKCR,".xml","Content Type",0x00000000,"text/xml"
402402
HKCR,"xmlfile","",0x00000000,%XMLFILE%
403-
;;HKCR,"xmlfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\msxml3r.dll,-1"
403+
HKCR,"xmlfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\msxml3r.dll,-1"
404404
HKCR,"xmlfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\msxml3.dll,0"
405405
HKCR,"xmlfile\shell\open\command","",0x00020000,"%SystemRoot%\system32\notepad.exe ""%1"""
406406

407407
; XSL Stylesheets
408408
HKCR,".xsl","",0x00000000,"xslfile"
409409
HKCR,".xsl","Content Type",0x00000000,"text/xml"
410410
HKCR,"xslfile","",0x00000000,%XSLFILE%
411-
;;HKCR,"xslfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\msxml3r.dll,-2"
411+
HKCR,"xslfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\msxml3r.dll,-2"
412412
HKCR,"xslfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\msxml3.dll,1"
413413
HKCR,"xslfile\shell\open\command","",0x00020000,"%SystemRoot%\system32\notepad.exe ""%1"""
414414

dll/win32/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ add_subdirectory(mswsock)
127127
add_subdirectory(msxml)
128128
add_subdirectory(msxml2)
129129
add_subdirectory(msxml3)
130+
add_subdirectory(msxml3r)
130131
add_subdirectory(msxml4)
131132
add_subdirectory(msxml6)
132133
add_subdirectory(mycomput)

dll/win32/msxml3r/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
add_library(msxml3r SHARED msxml3r.rc)
3+
set_module_type(msxml3r win32dll ENTRYPOINT 0)
4+
add_cd_file(TARGET msxml3r DESTINATION reactos/system32 FOR all)

dll/win32/msxml3r/lang/en-US.rc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
2+
3+
STRINGTABLE
4+
BEGIN
5+
IDS_XML_FILE "XML Document"
6+
IDS_XLS_FILE "XSL Stylesheet"
7+
END

dll/win32/msxml3r/lang/es-ES.rc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
2+
3+
STRINGTABLE
4+
BEGIN
5+
IDS_XML_FILE "Documento XML"
6+
IDS_XLS_FILE "Hoja de estilos XSL"
7+
END

dll/win32/msxml3r/lang/fr-FR.rc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
2+
3+
STRINGTABLE
4+
BEGIN
5+
IDS_XML_FILE "Document XML"
6+
IDS_XLS_FILE "Feuille de style XSL"
7+
END

dll/win32/msxml3r/lang/it-IT.rc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
2+
3+
STRINGTABLE
4+
BEGIN
5+
IDS_XML_FILE "Documento XML"
6+
IDS_XLS_FILE "Foglio di stile XSL"
7+
END

dll/win32/msxml3r/lang/ro-RO.rc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
2+
3+
STRINGTABLE
4+
BEGIN
5+
IDS_XML_FILE "Document XML"
6+
IDS_XLS_FILE "Foaie de stil XSL"
7+
END

dll/win32/msxml3r/lang/ru-RU.rc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
2+
3+
STRINGTABLE
4+
BEGIN
5+
IDS_XML_FILE "Документ XML"
6+
IDS_XLS_FILE "Таблица стилей XSL"
7+
END

dll/win32/msxml3r/msxml3r.rc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#include <windef.h>
2+
3+
#include "resource.h"
4+
5+
#define REACTOS_VERSION_DLL
6+
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS MSXML 3.0 Resource Library"
7+
#define REACTOS_STR_INTERNAL_NAME "msxml3r"
8+
#define REACTOS_STR_ORIGINAL_FILENAME "msxml3r.dll"
9+
10+
#include <reactos/version.rc>
11+
12+
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
13+
14+
/* UTF-8 */
15+
#pragma code_page(65001)
16+
17+
#ifdef LANGUAGE_EN_US
18+
#include "lang/en-US.rc"
19+
#endif
20+
#ifdef LANGUAGE_ES_ES
21+
#include "lang/es-ES.rc"
22+
#endif
23+
#ifdef LANGUAGE_FR_FR
24+
#include "lang/fr-FR.rc"
25+
#endif
26+
#ifdef LANGUAGE_IT_IT
27+
#include "lang/it-IT.rc"
28+
#endif
29+
#ifdef LANGUAGE_RO_RO
30+
#include "lang/ro-RO.rc"
31+
#endif
32+
#ifdef LANGUAGE_RU_RU
33+
#include "lang/ru-RU.rc"
34+
#endif

dll/win32/msxml3r/resource.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#ifndef RESOURCE_H
2+
#define RESOURCE_H
3+
4+
#define IDS_XML_FILE 1
5+
#define IDS_XLS_FILE 2
6+
7+
#endif /* RESOURCE_H */

0 commit comments

Comments
 (0)