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

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