You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2008/03/05 19:24:51 UTC
svn commit: r633962 - in /xerces/c/trunk/tools/NLS/Xlat: Xlat.cpp
Xlat_ICUResourceBundle.cpp
Author: amassari
Date: Wed Mar 5 10:24:49 2008
New Revision: 633962
URL: http://svn.apache.org/viewvc?rev=633962&view=rev
Log:
- Use root instead of en_US as locale for built-in messages in the ICU message loader
- Reflect removed API in XercesDOMParser
Modified:
xerces/c/trunk/tools/NLS/Xlat/Xlat.cpp
xerces/c/trunk/tools/NLS/Xlat/Xlat_ICUResourceBundle.cpp
Modified: xerces/c/trunk/tools/NLS/Xlat/Xlat.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/tools/NLS/Xlat/Xlat.cpp?rev=633962&r1=633961&r2=633962&view=diff
==============================================================================
--- xerces/c/trunk/tools/NLS/Xlat/Xlat.cpp (original)
+++ xerces/c/trunk/tools/NLS/Xlat/Xlat.cpp Wed Mar 5 10:24:49 2008
@@ -428,7 +428,7 @@
// 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);
Modified: xerces/c/trunk/tools/NLS/Xlat/Xlat_ICUResourceBundle.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/tools/NLS/Xlat/Xlat_ICUResourceBundle.cpp?rev=633962&r1=633961&r2=633962&view=diff
==============================================================================
--- xerces/c/trunk/tools/NLS/Xlat/Xlat_ICUResourceBundle.cpp (original)
+++ xerces/c/trunk/tools/NLS/Xlat/Xlat_ICUResourceBundle.cpp Wed Mar 5 10:24:49 2008
@@ -148,7 +148,7 @@
}
-void ICUResBundFormatter::startOutput(const XMLCh* const locale
+void ICUResBundFormatter::startOutput(const XMLCh* const msgLocale
, const XMLCh* const outPath)
{
//
@@ -165,8 +165,8 @@
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 );
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org