- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 06 Oct 2009 10:02:13 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util In directory hutz:/tmp/cvs-serv31841/src/org/w3c/unicorn/util Modified Files: Message.java Log Message: added getMessage(String lang) method Index: Message.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/Message.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- Message.java 5 Oct 2009 14:25:42 -0000 1.6 +++ Message.java 6 Oct 2009 10:02:11 -0000 1.7 @@ -11,6 +11,8 @@ private int level; private boolean evaluateContent = false; + private String[] parameters; + public Message() { } @@ -25,11 +27,12 @@ evaluateContent = false; } - public Message(int level, String message, String content) { + public Message(int level, String message, String content, String... parameters) { this.level = level; this.message = message; this.content = content; evaluateContent = true; + this.parameters = parameters; } public Message(int level, String message) { @@ -41,6 +44,10 @@ return message; } + public String getMessage(String lang) { + return Language.evaluate(lang, message, parameters); + } + public void setMessage(String message) { this.message = message; }
Received on Tuesday, 6 October 2009 10:02:14 UTC