You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
2.0 KiB

  1. Error messages in Xerces are generated by tools\NLS\Xlat, which currently runs
  2. on windows.
  3. Here are the steps:
  4. 1) Modify XMLErrList_EN_US.Xml as per the changes
  5. 2) Compile all the files in tools\NLS\Xlat and link them all into an
  6. executable (Xlat.cpp has the main())
  7. 3) Run this Xlat executable with parameter:
  8. /SrcRoot=x:/xerces-c-src/ /OutPath=x:/output/ /OutFmt=KKK/Locale=EN_US
  9. where:
  10. i. SrcRoot should point to XERCESCROOT
  11. ii. OutPath should be any output folder that stores that generated
  12. files
  13. iii. Run it four times by setting OutFmt=Win32RC, OutFmt=CppSrc,
  14. OutFmt=ResBundle, OutFmt=MsgCat, respectively
  15. 4) Then the following files will be generated, and must be copied to their
  16. appropriate location:
  17. i. en_US.txt - copy this file to
  18. \src\xercesc\util\MsgLoaders\ICU\resources
  19. ii. XercesMessages_en_US.hpp - copy this file to
  20. \src\xercesc\util\MsgLoaders\InMemory
  21. iii. XercesMessages_en_US.Msg - copy this file to
  22. src\xercesc\util\MsgLoaders\MsgCatalog
  23. iv. XMLDOMMsg.hpp - copy this file to src\xercesc\util
  24. v. XMLErrorCodes.hpp - copy this file to src\xercesc\framework
  25. vi. XMLExceptMsgs.hpp - copy this file to src\xercesc\util
  26. vii. XMLMsgCat_Ids.hpp - copy this file to
  27. src\xercesc\util\MsgLoaders\MsgCatalog
  28. viii. XMLValidityCodes.hpp - copy this file to src\xercesc\framework
  29. ix. CppErrMsgs_en_US.RC - copy the entire file and
  30. replace the content
  31. appearing between the line which reads:
  32. #endif // APSTUDIO_INVOKED
  33. and the line which reads:
  34. #endif // English (U.S.) resources
  35. in src\xercesc\util\MsgLoaders\Win32\version.rc
  36. What you replace should begin with:
  37. // ----------------------------------------------------------------
  38. // This file was generated from the XML error message source.
  39. Note: If you run Xlat on windows, and are commiting them under unix, you must
  40. first run dos2unix on them.