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

2006/unicorn/src/org/w3c/unicorn UnicornCall.java,1.33,1.34

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 06 Oct 2009 08:16:04 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mv5DI-0005bh-TV@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn
In directory hutz:/tmp/cvs-serv21432/src/org/w3c/unicorn

Modified Files:
	UnicornCall.java 
Log Message:
working on language strings

Index: UnicornCall.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/UnicornCall.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- UnicornCall.java	5 Oct 2009 14:25:42 -0000	1.33
+++ UnicornCall.java	6 Oct 2009 08:16:02 -0000	1.34
@@ -31,6 +31,7 @@
 import org.w3c.unicorn.tasklisttree.TLTExec;
 import org.w3c.unicorn.tasklisttree.TLTIf;
 import org.w3c.unicorn.tasklisttree.TLTNode;
+import org.w3c.unicorn.util.Language;
 import org.w3c.unicorn.util.Message;
 import org.w3c.unicorn.util.Property;
 
@@ -98,7 +99,8 @@
 		
 		MimeType aMimeType = inputParameter.getMimeType();
 		if (!aTask.getSupportedMimeTypes().contains(aMimeType.toString()))
-			throw new UnicornException(Message.ERROR, "$message_unsupported_mime_type", null);
+			throw new UnicornException(Message.ERROR, 
+					Language.evaluate(sLang.split(",")[0], "$message_unsupported_mime_type", aMimeType.toString()));
 		
 		doNode(inputParameter, aTask.getTree());
 	}
Received on Tuesday, 6 October 2009 08:16:08 UTC

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