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

2006/unicorn/src/org/w3c/unicorn/util Language.java,1.14,1.15

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 13 Oct 2009 11:34:37 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MxfeH-0004lx-Jl@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv18331/src/org/w3c/unicorn/util

Modified Files:
	Language.java 
Log Message:
removed <span xml:lang=""> for untranslated strings as it is not safe for string used in attributes

Index: Language.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/Language.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- Language.java	12 Oct 2009 15:22:39 -0000	1.14
+++ Language.java	13 Oct 2009 11:34:35 -0000	1.15
@@ -59,7 +59,8 @@
 		for (Object key : defaultProps.keySet()) {
 			if (!props.containsKey(key)) {
 				props.put("complete", "false");
-				props.put(key, "<span dir=\"" + defaultProps.get("direction") + "\" xml:lang=\"" + defaultProps.get("lang") + "\">" + defaultProps.get(key) + "</span>");
+				//props.put(key, "<span dir=\"" + defaultProps.get("direction") + "\" xml:lang=\"" + defaultProps.get("lang") + "\">" + defaultProps.get(key) + "</span>");
+				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 Tuesday, 13 October 2009 11:34:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC