Use string manager for i18n.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 17 Oct 2009 19:21:01 +0000 (19:21 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 17 Oct 2009 19:21:01 +0000 (19:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@826291 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/manager/HTMLManagerServlet.java

index 0d40359..93568ae 100644 (file)
@@ -186,13 +186,14 @@ public final class HTMLManagerServlet extends ManagerServlet {
         HttpSession session = request.getSession();
         String sessionNonce = (String) session.getAttribute(NONCE_SESSION);
         if (sessionNonce == null) {
-            message = "FAIL: No nonce found in session. Command [" + command + "] was ignored.";
+            message = sm.getString("htmlManagerServlet.noNonce", command);
             // Reset the command
             command = null;
         } else {
             if (!sessionNonce.equals(requestNonce)) {
                 // Nonce mis-match.
-                message = "FAIL: Nonce mismatch. Command [" + command + "] was ignored.";
+                message =
+                    sm.getString("htmlManagerServlet.nonceMismatch", command);
                 // Reset the command
                 command = null;
             }