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

2006/unicorn/src/org/w3c/unicorn/util Language.java,1.1,1.2

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 04 Sep 2009 14:09:11 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MjZTT-0004h1-Qz@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv18011/src/org/w3c/unicorn/util

Modified Files:
	Language.java 
Log Message:
fixed all non default languages were always incomplete

Index: Language.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/Language.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Language.java	1 Sep 2009 13:39:41 -0000	1.1
+++ Language.java	4 Sep 2009 14:09:09 -0000	1.2
@@ -42,10 +42,10 @@
 	}
 
 	public static void complete(Properties props, Properties defaultProps) {
-		props.put("complete", "false");
+		props.put("complete", "true");
 		for (Object key : defaultProps.keySet()) {
 			if (!props.containsKey(key)) {
-				props.put("incomplete", "true");
+				props.put("complete", "false");
 				props.put(key, defaultProps.get(key));
 				Framework.logger.warn(">> Missing property in " + props.getProperty("lang") + ".properties for key: \"" + (String) key + "\". Added default property for this key: \"" + defaultProps.get(key) + "\""); 
 			}
Received on Friday, 4 September 2009 14:09:21 GMT

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