[freenet-cvs] r14968 - trunk/freenet/src/freenet/node/useralerts

nextgens at freenetproject.org nextgens at freenetproject.org
Tue Sep 4 22:29:29 UTC 2007


Author: nextgens
Date: 2007-09-04 22:29:28 +0000 (Tue, 04 Sep 2007)
New Revision: 14968

Modified:
   trunk/freenet/src/freenet/node/useralerts/MeaningfulNodeNameUserAlert.java
Log:
Fix an issue with MeaningfulNodeNameUserAlert : we weren't displaying the l10n strings but their keys!

Modified: trunk/freenet/src/freenet/node/useralerts/MeaningfulNodeNameUserAlert.java
===================================================================
--- trunk/freenet/src/freenet/node/useralerts/MeaningfulNodeNameUserAlert.java	2007-09-04 22:01:42 UTC (rev 14967)
+++ trunk/freenet/src/freenet/node/useralerts/MeaningfulNodeNameUserAlert.java	2007-09-04 22:29:28 UTC (rev 14968)
@@ -44,8 +44,11 @@
 		formNode.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", node.clientCore.formPassword });
 		HTMLNode listNode = formNode.addChild("ul", "class", "config");
 		HTMLNode itemNode = listNode.addChild("li");
-		itemNode.addChild("span", "class", "configshortdesc", o.getShortDesc()).addChild("input", new String[] { "type", "name", "value" }, new String[] { "text", sc.getPrefix() + ".name", o.getValueString() });
-		itemNode.addChild("span", "class", "configlongdesc", o.getLongDesc());
+		itemNode.addChild("span", new String[]{ "class", "title", "style" },
+				new String[]{ "configshortdesc", L10n.getString("ConfigToadlet.defaultIs", new String[] { "default" }, new String[] { o.getDefault() }), 
+				"cursor: help;" }).addChild(L10n.getHTMLNode(o.getShortDesc()));
+		itemNode.addChild("input", new String[] { "type", "class", "alt", "name", "value" }, new String[] { "text", "config", o.getShortDesc(), "node.name", o.getValueString() });
+		itemNode.addChild("span", "class", "configlongdesc").addChild(L10n.getHTMLNode(o.getLongDesc()));
 		formNode.addChild("input", new String[] { "type", "value" }, new String[] { "submit", L10n.getString("UserAlert.apply") });
 		formNode.addChild("input", new String[] { "type", "value" }, new String[] { "reset", L10n.getString("UserAlert.reset") });
 




More information about the cvs mailing list