W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2010

2006/unicorn/src/org/w3c/unicorn UnicornClient.java,1.5,1.6

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 20 Mar 2010 17:08:58 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Nt2AU-0008AQ-7R@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn
In directory hutz:/tmp/cvs-serv31377/src/org/w3c/unicorn

Modified Files:
	UnicornClient.java 
Log Message:
call to message.setLang changed to message.setLocale

Index: UnicornClient.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/UnicornClient.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- UnicornClient.java	6 Oct 2009 08:20:52 -0000	1.5
+++ UnicornClient.java	20 Mar 2010 17:08:55 -0000	1.6
@@ -17,6 +17,7 @@
 import org.w3c.unicorn.input.URIInputParameter;
 import org.w3c.unicorn.output.OutputFactory;
 import org.w3c.unicorn.output.OutputModule;
+import org.w3c.unicorn.util.Language;
 import org.w3c.unicorn.util.MessageList;
 import org.w3c.unicorn.util.Property;
 
@@ -92,7 +93,7 @@
 				String paramName = param[0].substring(paramPrefix.length());
 				if (paramName.equals("lang")) {
 					outputParameters.put(paramName, param[1]);
-					messages.setLang(param[1]);
+					messages.setLocale(Language.getLocale(param[1]));
 					aUnicornCall.setLang(param[1] + "," + Property.get("DEFAULT_LANGUAGE"));
 				} else if (paramName.equals("task")) {
 					String task = Action.getTask(param[1], messages);
Received on Saturday, 20 March 2010 17:09:00 GMT

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