- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 12 Oct 2009 15:25:26 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/action In directory hutz:/tmp/cvs-serv30504/src/org/w3c/unicorn/action Modified Files: Action.java Log Message: added a new parameter (%2) to message_translation (which is referenced by message_incomplete_language, message_unavailable_language, and message_unavailable_requested_language) to redirect the user to the right translation form. Index: Action.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/action/Action.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- Action.java 8 Oct 2009 11:14:43 -0000 1.18 +++ Action.java 12 Oct 2009 15:25:24 -0000 1.19 @@ -77,17 +77,17 @@ 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, "$message_unavailable_requested_language", null, "locale not installed")); + messages.add(new Message(Message.INFO, "$message_unavailable_requested_language", null, langParameter, "?" + Property.get("UNICORN_PARAMETER_PREFIX") + "lang=" + langParameter)); } else - messages.add(new Message(Message.INFO, "$message_unavailable_requested_language", null, locale.getDisplayLanguage(locale))); + messages.add(new Message(Message.INFO, "$message_unavailable_requested_language", null, locale.getDisplayLanguage(locale), "?" + Property.get("UNICORN_PARAMETER_PREFIX") + "lang=" + langParameter)); } else { 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, "$message_unavailable_language", null, req.getLocale().getDisplayLanguage(req.getLocale()))); + messages.add(new Message(Message.INFO, "$message_unavailable_language", null, req.getLocale().getDisplayLanguage(req.getLocale()), "?" + Property.get("UNICORN_PARAMETER_PREFIX") + "lang=" + req.getLocale().getLanguage())); else if (!Language.isComplete(lang)) - messages.add(new Message(Message.INFO, "$message_incomplete_language")); + messages.add(new Message(Message.INFO, "$message_incomplete_language", null, "", "?" + Property.get("UNICORN_PARAMETER_PREFIX") + "lang=" + lang)); return lang; }
Received on Monday, 12 October 2009 15:25:28 UTC