2006/unicorn/src/org/w3c/unicorn/util Language.java,1.12,1.13

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv19264/src/org/w3c/unicorn/util

Modified Files:
	Language.java 
Log Message:
adds 'dir' and 'xml:lang' attributes on untranslated strings

Index: Language.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/Language.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- Language.java	8 Oct 2009 11:07:10 -0000	1.12
+++ Language.java	9 Oct 2009 15:00:45 -0000	1.13
@@ -58,7 +58,7 @@
 		for (Object key : defaultProps.keySet()) {
 			if (!props.containsKey(key)) {
 				props.put("complete", "false");
-				props.put(key, defaultProps.get(key));
+				props.put(key, "<span dir=\"" + defaultProps.get("direction") + "\" xml:lang=\"" + defaultProps.get("lang") + "\">" + defaultProps.get(key) + "</span>");
 				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, 9 October 2009 15:11:02 UTC