README
上传用户:zhuqijet
上传日期:2013-06-25
资源大小:10074k
文件大小:2k
- Error messages in Xerces are generated by toolsNLSXlat, 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 toolsNLSXlat 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
- srcxercescutilMsgLoadersICUresources
- ii. XercesMessages_en_US.hpp - copy this file to
- srcxercescutilMsgLoadersInMemory
- iii. XercesMessages_en_US.Msg - copy this file to
- srcxercescutilMsgLoadersMsgCatalog
- iv. XMLDOMMsg.hpp - copy this file to srcxercescutil
- v. XMLErrorCodes.hpp - copy this file to srcxercescframework
- vi. XMLExceptMsgs.hpp - copy this file to srcxercescutil
- vii. XMLMsgCat_Ids.hpp - copy this file to
- srcxercescutilMsgLoadersMsgCatalog
- viii. XMLValidityCodes.hpp - copy this file to srcxercescframework
- 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 srcxercescutilPlatformsWin32version.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.