Skip to content

Commit

Permalink
- Use root instead of en_US as locale for built-in messages in the IC…
Browse files Browse the repository at this point in the history
…U message loader

- Reflect removed API in XercesDOMParser

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@633962 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Alberto Massari committed Mar 5, 2008
1 parent 4d37868 commit 921cad8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/NLS/Xlat/Xlat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ int Xlat_main(int argC, XMLCh** argV)
// a DOM tree. Turn on validation when we do this.
//
XercesDOMParser parser;
parser.setDoValidation(true);
parser.setValidationScheme(AbstractDOMParser::Val_Always);
XlatErrHandler errHandler;
parser.setErrorHandler(&errHandler);
parser.parse(tmpFileBuf);
Expand Down
6 changes: 3 additions & 3 deletions tools/NLS/Xlat/Xlat_ICUResourceBundle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void ICUResBundFormatter::startMsgType(const MsgTypes type)
}


void ICUResBundFormatter::startOutput(const XMLCh* const locale
void ICUResBundFormatter::startOutput(const XMLCh* const msgLocale
, const XMLCh* const outPath)
{
//
Expand All @@ -165,8 +165,8 @@ void ICUResBundFormatter::startOutput(const XMLCh* const locale
tmpBuf[0] = 0;
XMLCh *tmpXMLStr = XMLString::transcode(".txt");



// ICU Resource Bundles now uses "root" as locale
const XMLCh* locale = L"root";
XMLString::catString(tmpBuf, outPath);
XMLString::catString(tmpBuf, locale);
XMLString::catString(tmpBuf, tmpXMLStr );
Expand Down

0 comments on commit 921cad8

Please sign in to comment.