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

unicorn commit: ~ fixed: use task id instead of empty string if a task has no defined name

From: Mercurial notifier <nobody@w3.org>
Date: Wed, 22 Sep 2010 15:48:44 +0000
To: Unicorn Updates <www-validator-cvs@w3.org>
Message-Id: <E1OyRYq-0001Sk-Pw@blinky.w3.org>
changeset:   1506:1f2647ea3d3b
user:        Thomas Gambet <tgambet@w3.org>
date:        Wed Sep 22 11:47:23 2010 -0400
files:       src/org/w3c/unicorn/Framework.java
description:
~ fixed: use task id instead of empty string if a task has no defined name


diff -r 73cda376e461 -r 1f2647ea3d3b src/org/w3c/unicorn/Framework.java
--- a/src/org/w3c/unicorn/Framework.java	Wed Sep 22 11:44:45 2010 -0400
+++ b/src/org/w3c/unicorn/Framework.java	Wed Sep 22 11:47:23 2010 -0400
@@ -427,8 +427,10 @@
 				Task task = mapOfTask.get(taskKey);
 				if (defaultProps.containsKey(taskKey)) 
 					task.addLongName(defaultLang, defaultProps.getProperty(taskKey));
-				else
+				else {
+					task.addLongName(defaultLang, taskKey);
 					logger.warn(">> No default longname found for the task: " + taskKey + ". This task longname will be its key and it won't appear in the translation form.");
+				}
 				if (defaultProps.containsKey(taskKey + ".description"))
 					task.addDescription(defaultLang, defaultProps.getProperty(taskKey + ".description"));
 				else
Received on Wednesday, 22 September 2010 15:48:47 UTC

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