[freenet-cvs] r13145 - in trunk/freenet/src/freenet: clients/http l10n

toad at freenetproject.org toad at freenetproject.org
Thu May 3 23:09:22 UTC 2007


Author: toad
Date: 2007-05-03 23:09:22 +0000 (Thu, 03 May 2007)
New Revision: 13145

Modified:
   trunk/freenet/src/freenet/clients/http/ConfigToadlet.java
   trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
   trunk/freenet/src/freenet/clients/http/N2NTMToadlet.java
   trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties
Log:
Coalesce "unauthorized" messages

Modified: trunk/freenet/src/freenet/clients/http/ConfigToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/ConfigToadlet.java	2007-05-03 23:06:20 UTC (rev 13144)
+++ trunk/freenet/src/freenet/clients/http/ConfigToadlet.java	2007-05-03 23:09:22 UTC (rev 13145)
@@ -51,7 +51,7 @@
 		}
 		
 		if(!ctx.isAllowedFullAccess()) {
-			super.sendErrorPage(ctx, 403, "Unauthorized", l10n("unauthorized"));
+			super.sendErrorPage(ctx, 403, "Unauthorized", L10n.getString("Toadlet.unauthorized"));
 			return;
 		}
 		
@@ -114,7 +114,7 @@
 	public void handleGet(URI uri, HTTPRequest req, ToadletContext ctx) throws ToadletContextClosedException, IOException {
 		
 		if(!ctx.isAllowedFullAccess()) {
-			super.sendErrorPage(ctx, 403, "Unauthorized", l10n("unauthorized"));
+			super.sendErrorPage(ctx, 403, "Unauthorized", L10n.getString("Toadlet.unauthorized"));
 			return;
 		}
 		

Modified: trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java	2007-05-03 23:06:20 UTC (rev 13144)
+++ trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java	2007-05-03 23:09:22 UTC (rev 13145)
@@ -82,7 +82,7 @@
 		}
 		
 		if(!ctx.isAllowedFullAccess()) {
-			super.sendErrorPage(ctx, 403, "Unauthorized", l10n("unauthorized"));
+			super.sendErrorPage(ctx, 403, "Unauthorized", L10n.getString("Toadlet.unauthorized"));
 			return;
 		}
 		
@@ -657,7 +657,7 @@
 		boolean logMINOR = Logger.shouldLog(Logger.MINOR, this);
 		
 		if(!ctx.isAllowedFullAccess()) {
-			super.sendErrorPage(ctx, 403, "Unauthorized", l10n("unauthorized"));
+			super.sendErrorPage(ctx, 403, "Unauthorized", L10n.getString("Toadlet.unauthorized"));
 			return;
 		}
 		

Modified: trunk/freenet/src/freenet/clients/http/N2NTMToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/N2NTMToadlet.java	2007-05-03 23:06:20 UTC (rev 13144)
+++ trunk/freenet/src/freenet/clients/http/N2NTMToadlet.java	2007-05-03 23:09:22 UTC (rev 13145)
@@ -45,7 +45,7 @@
   public void handleGet(URI uri, HTTPRequest request, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException {
 	  
 	  if(!ctx.isAllowedFullAccess()) {
-		  super.sendErrorPage(ctx, 403, "Unauthorized", l10n("unauthorized"));
+		  super.sendErrorPage(ctx, 403, "Unauthorized", L10n.getString("Toadlet.unauthorized"));
 		  return;
 	  }
 		
@@ -120,7 +120,7 @@
 	  }
 	  
 	  if(!ctx.isAllowedFullAccess()) {
-		  super.sendErrorPage(ctx, 403, "Unauthorized", l10n("unauthorized"));
+		  super.sendErrorPage(ctx, 403, "Unauthorized", L10n.getString("Toadlet.unauthorized"));
 		  return;
 	  }
 		

Modified: trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties
===================================================================
--- trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties	2007-05-03 23:06:20 UTC (rev 13144)
+++ trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties	2007-05-03 23:09:22 UTC (rev 13145)
@@ -53,7 +53,6 @@
 BookmarkEditorToadlet.invalidKeyTitle=Invalid Key
 BookmarkEditorToadlet.invalidKeyWithReason=Invalid Freenet key.
 BookmarkEditorToadlet.save=Save
-ConfigToadlet.unauthorized=You are not permitted access to this page.
 ConfigToadlet.appliedTitle=Configuration Applied
 ConfigToadlet.appliedSuccess=Configuration changes were applied successfully.
 ConfigToadlet.appliedFailureTitle=Configuration Not Applied
@@ -67,7 +66,6 @@
 ConfigToadlet.defaultIs=The default for that configuration option is : '${default}'.
 ConfigToadlet.apply=Apply
 ConfigToadlet.reset=Reset
-DarknetConnectionsToadlet.unauthorized=You are not permitted access to this page.
 DarknetConnectionsToadlet.fullTitle=${counts} Friends of ${name}
 DarknetConnectionsToadlet.activityTitle=Current Activity
 DarknetConnectionsToadlet.noRequests=Your node is not processing any requests right now.
@@ -212,7 +210,6 @@
 LocalFileInsertToadlet.checkPathExist=Check that the specified path does exist.
 LocalFileInsertToadlet.checkPathIsDir=Check that the specified path is a directory.
 LocalFileInsertToadlet.checkPathReadable=Check that the specified path is readable by the user running the node.
-N2NTMToadlet.unauthorized=You are not permitted access to this page.
 N2NTMToadlet.sendMessage=Send Node to Node Text Message
 N2NTMToadlet.sendMessageShort=Send message
 N2NTMToadlet.peerNotFoundTitle=Peer not found




More information about the cvs mailing list