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

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