From d4eac78e3ae43123799fb6340fe8c6d817f2b138 Mon Sep 17 00:00:00 2001 From: Gareth Reakes <gareth@apache.org> Date: Wed, 18 Dec 2002 15:29:52 +0000 Subject: [PATCH] Temporary README file describing the steps to generate error messages. This file will be removed when the process is automated/ the tools work on more platforms. git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@174541 13f79535-47bb-0310-9956-ffa450edef68 --- tools/NLS/README | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 tools/NLS/README diff --git a/tools/NLS/README b/tools/NLS/README new file mode 100644 index 000000000..307a9becb --- /dev/null +++ b/tools/NLS/README @@ -0,0 +1,44 @@ +Error messages in Xerces are generated by tools\NLS\Xlat, which currently runs +on windows. + +Here are the steps: +1) Modify XMLErrList_EN_US.Xml as per the changes +2) Compile all the files in tools\NLS\Xlat and link them all into an + executable (Xlat.cpp has the main()) +3) Run this Xlat executable with parameter: + /SrcRoot=x:/xerces-c-src/ /OutPath=x:/output/ /OutFmt=KKK/Locale=EN_US + where: + i. SrcRoot should point to XERCESCROOT + ii. OutPath should be any output folder that stores that generated + files + iii. Run it four times by setting OutFmt=Win32RC, OutFmt=CppSrc, + OutFmt=ResBundle, OutFmt=MsgCat, respectively + +4) Then the following files will be generated, and must be copied to their + appropriate location: + i. en_US.txt - copy this file to + \src\xercesc\util\MsgLoaders\ICU\resources + ii. XercesMessages_en_US.hpp - copy this file to + \src\xercesc\util\MsgLoaders\InMemory + iii. XercesMessages_en_US.Msg - copy this file to + src\xercesc\util\MsgLoaders\MsgCatalog + iv. XMLDOMMsg.hpp - copy this file to src\xercesc\util + v. XMLErrorCodes.hpp - copy this file to src\xercesc\framework + vi. XMLExceptMsgs.hpp - copy this file to src\xercesc\util + vii. XMLMsgCat_Ids.hpp - copy this file to + src\xercesc\util\MsgLoaders\MsgCatalog + viii. XMLValidityCodes.hpp - copy this file to src\xercesc\framework + ix. CppErrMsgs_en_US.RC - copy the entire file and + replace the content + appearing between the line which reads: + #endif // APSTUDIO_INVOKED + and the line which reads: + #endif // English (U.S.) resources + in src\xercesc\util\Platforms\Win32\version.rc + What you replace should begin with: + // ---------------------------------------------------------------- + // This file was generated from the XML error message source. + + +Note: If you run Xlat on windows, and are commiting them under unix, you must + first run dos2unix on them. -- GitLab