[freenet-cvs] r13126 - in trunk/freenet/src/freenet: clients/http l10n
toad at freenetproject.org
toad at freenetproject.org
Thu May 3 16:57:13 UTC 2007
Author: toad
Date: 2007-05-03 16:57:12 +0000 (Thu, 03 May 2007)
New Revision: 13126
Modified:
trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties
Log:
DarknetConnectionsToadlet.noPeersFirstHalf/noPeersSecondHalf - refactor to a tag substitution.
Modified: trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java 2007-05-03 16:53:18 UTC (rev 13125)
+++ trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java 2007-05-03 16:57:12 UTC (rev 13126)
@@ -391,9 +391,8 @@
HTMLNode peerTableInfoboxContent = peerTableInfobox.addChild("div", "class", "infobox-content");
if (peerNodeStatuses.length == 0) {
- peerTableInfoboxContent.addChild("#", l10n("noPeersFirstHalf"));
- peerTableInfoboxContent.addChild("a", "href", "/", l10n("nodeHomepage"));
- peerTableInfoboxContent.addChild("#", l10n("noPeersSecondHalf"));
+ L10n.addL10nSubstitution(peerTableInfoboxContent, "noPeersWithHomepageLink",
+ new String[] { "link", "/link" }, new String[] { "<a href=\"/\">", "</a>" });
} else {
HTMLNode peerForm = ctx.addFormChild(peerTableInfoboxContent, ".", "peersForm");
HTMLNode peerTable = peerForm.addChild("table", "class", "darknet_connections");
Modified: trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties
===================================================================
--- trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties 2007-05-03 16:53:18 UTC (rev 13125)
+++ trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties 2007-05-03 16:57:12 UTC (rev 13126)
@@ -94,9 +94,7 @@
DarknetConnectionsToadlet.listenOnly=Not connected and listen only: this node won't try to connect to this peer at all because the user has set ListenOnly on it.
DarknetConnectionsToadlet.listenOnlyShort=Listen only
DarknetConnectionsToadlet.myFriends=My Friends
-DarknetConnectionsToadlet.noPeersFirstHalf=Freenet can not work as you have not added any peers so far. Please go to the
-DarknetConnectionsToadlet.nodeHomepage=node homepage
-DarknetConnectionsToadlet.noPeersSecondHalf= and read the top infobox to see how it is done.
+DarknetConnectionsToadlet.noPeersWithHomepageLink=Freenet can not work as you have not added any peers so far. Please go to the ${link}node homepage${/link} and read the top infobox to see how it is done.
DarknetConnectionsToadlet.statusTitle=Status
DarknetConnectionsToadlet.nameClickToMessage=The node's name. Click on the name link to send the node a N2NTM (Node To Node Text Message)
DarknetConnectionsToadlet.nameTitle=Name
More information about the cvs
mailing list