W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2006

2006/unicorn/org/w3c/unicorn Framework.java,1.1.1.1,1.2 UnicornCall.java,1.4,1.5

From: Damien Leroy via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 29 Sep 2006 09:25:14 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1GTEcM-0004qN-Rg@lionel-hutz.w3.org>

Update of /sources/public/2006/unicorn/org/w3c/unicorn
In directory hutz:/tmp/cvs-serv18469/org/w3c/unicorn

Modified Files:
	Framework.java UnicornCall.java 
Log Message:
Add use of property DEFAULT_LANGUAGE from the property file to set default language of the class org.w3c.unicorn.util.LocalizedString.

Index: Framework.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/Framework.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- Framework.java	31 Aug 2006 09:09:20 -0000	1.1.1.1
+++ Framework.java	29 Sep 2006 09:25:12 -0000	1.2
@@ -33,6 +33,7 @@
 import org.w3c.unicorn.tasklist.TasksListUnmarshaller;
 import org.w3c.unicorn.tasklist.TasksListUnmarshallerJAXB;
 import org.w3c.unicorn.util.ListFiles;
+import org.w3c.unicorn.util.LocalizedString;
 import org.w3c.unicorn.util.Property;
 import org.xml.sax.SAXException;
 
@@ -73,6 +74,10 @@
 		if (Framework.logger.isDebugEnabled()) {
 			Framework.logger.debug("Observer initialisation.");
 		}
+		final String sLanguage = Property.get("DEFAULT_LANGUAGE");
+		if (null != sLanguage) {
+			LocalizedString.DEFAULT_LANGUAGE = sLanguage;
+		}
 		Framework.mapOfObserver = new LinkedHashMap<String, Observer>();
 		try {			
 			// Add all observer contract

Index: UnicornCall.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/UnicornCall.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- UnicornCall.java	21 Sep 2006 16:01:25 -0000	1.4
+++ UnicornCall.java	29 Sep 2006 09:25:12 -0000	1.5
@@ -174,7 +174,7 @@
 	/**
 	 * @param aTPriority
 	 * @throws JAXBException 
-	 * @throws IOException 
+	 * @throws IOException
 	 */
 	private boolean doRequests (final TPriority aTPriority)
 	throws IOException, JAXBException {
Received on Friday, 29 September 2006 09:25:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:54 GMT