W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2010

2006/unicorn/src/org/w3c/unicorn/action LanguageAction.java,1.23,1.24

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Sun, 21 Mar 2010 21:12:19 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1NtSRX-00067L-Hz@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/action
In directory hutz:/tmp/cvs-serv23495/src/org/w3c/unicorn/action

Modified Files:
	LanguageAction.java 
Log Message:
clears all messages before adding the "default language edit" error

Index: LanguageAction.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/action/LanguageAction.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- LanguageAction.java	20 Mar 2010 17:06:04 -0000	1.23
+++ LanguageAction.java	21 Mar 2010 21:12:17 -0000	1.24
@@ -104,6 +104,7 @@
 			}
 			if (Language.getUiLocales().contains(locale)) {
 				if (locale.equals(Language.getDefaultLocale())) {
+					messages.clear();
 					messages.add(new Message(Message.ERROR, "The language you are trying to edit is either the default language or is unknown. " +
 															"If it is the latter and you think we are wrong please make a request on <a href=\"mailto:public-qa-dev@w3.org\">our public mailing-list</a>."));
 					Templates.write("language.vm", velocityContext, writer);
Received on Sunday, 21 March 2010 21:12:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:19 GMT