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

2006/unicorn/src/org/w3c/unicorn/util MessageList.java,1.2,1.3

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 20 Mar 2010 16:57:26 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Nt1zK-0007gm-Pi@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv29532/src/org/w3c/unicorn/util

Modified Files:
	MessageList.java 
Log Message:
replaced the language String parameter by a ULocale object

Index: MessageList.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/MessageList.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- MessageList.java	7 Oct 2009 12:50:16 -0000	1.2
+++ MessageList.java	20 Mar 2010 16:57:24 -0000	1.3
@@ -2,14 +2,16 @@
 
 import java.util.ArrayList;
 
+import com.ibm.icu.util.ULocale;
+
 public class MessageList extends ArrayList<Message> {
 
 	private static final long serialVersionUID = -720345110444544838L;
 	
-	private String lang;
+	private ULocale locale;
 
 	public MessageList() {
-		this.lang = Property.get("DEFAULT_LANGUAGE");
+		this.locale = Language.getDefaultLocale();
 	}
 	
 	public boolean hasInfo() {
@@ -33,16 +35,16 @@
 		return false;
 	}
 	
-	public MessageList(String lang) {
-		this.lang = lang;
+	public MessageList(ULocale lang) {
+		this.locale = lang;
 	}
 
-	public String getLang() {
-		return lang;
+	public ULocale getLocale() {
+		return locale;
 	}
 
-	public void setLang(String lang) {
-		this.lang = lang;
+	public void setLocale(ULocale locale) {
+		this.locale = locale;
 	}
 
 }
Received on Saturday, 20 March 2010 16:57:28 GMT

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