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

2006/unicorn/src/org/w3c/unicorn/action Action.java,1.16,1.17

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 06 Oct 2009 10:06:15 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mv6vv-0008Qz-5R@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/action
In directory hutz:/tmp/cvs-serv32407/src/org/w3c/unicorn/action

Modified Files:
	Action.java 
Log Message:
new message constructors

Index: Action.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/action/Action.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- Action.java	6 Oct 2009 08:16:02 -0000	1.16
+++ Action.java	6 Oct 2009 10:06:13 -0000	1.17
@@ -77,15 +77,12 @@
 				Locale locale = Language.getLocale(langParameter);
 				if (locale == null)
 					logger.warn("Missing locale: " + langParameter + ". This locale should be installed on the system in order to translate Unicorn in this language.");
-				messages.add(new Message(Message.INFO, 
-						Language.evaluate(lang, "$message_unavailable_requested_language", locale.getDisplayLanguage(locale))));
+				messages.add(new Message(Message.INFO, "$message_unavailable_requested_language", null, locale.getDisplayLanguage(locale)));
 			} else {
-				messages.add(new Message(Message.INFO, 
-						Language.evaluate(lang, "$message_invalid_requested_language", langParameter)));
+				messages.add(new Message(Message.INFO, "$message_invalid_requested_language", null, langParameter));
 			}
 		} else if (!Framework.getLanguageProperties().containsKey(req.getLocale().getLanguage()) && Property.get("SHOW_LANGUAGE_UNAVAILABLE_MESSAGE").equals("true"))
-			messages.add(new Message(Message.INFO, 
-					Language.evaluate(lang, "$message_unavailable_language", req.getLocale().getDisplayLanguage(req.getLocale()))));
+			messages.add(new Message(Message.INFO, "$message_unavailable_language", null, req.getLocale().getDisplayLanguage(req.getLocale())));
 		else if (!Language.isComplete(lang))
 			messages.add(new Message(Message.INFO, "$message_incomplete_language"));
 		
@@ -104,12 +101,10 @@
 			return task;
 		
 		if (taskParameter == null) {
-			Message mess = new Message(Message.WARNING, 
-					Language.evaluate(messages.getLang(), "$message_no_task", Framework.getDefaultTask().getLongName(messages.getLang())));
+			Message mess = new Message(Message.WARNING, "$message_no_task", null, Framework.getDefaultTask().getLongName(messages.getLang()));
 			messages.add(mess);
 		} else if (!Framework.mapOfTask.containsKey(taskParameter)) {
-			Message mess = new Message(Message.WARNING,
-					Language.evaluate(messages.getLang(), "$message_unknown_task", taskParameter, Framework.getDefaultTask().getLongName(messages.getLang())));
+			Message mess = new Message(Message.WARNING, "$message_unknown_task", null, taskParameter, Framework.getDefaultTask().getLongName(messages.getLang()));
 			messages.add(mess);
 		}
 		
Received on Tuesday, 6 October 2009 10:06:16 UTC

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