diff --git a/apps/susimail/src/src/i2p/susi/webmail/WebMail.java b/apps/susimail/src/src/i2p/susi/webmail/WebMail.java index d7ac88ca84d9c092fb1eca6dd7334ca23dc3d6aa..edf94936fa2775af8d09ce995743c893a1cd7d12 100644 --- a/apps/susimail/src/src/i2p/susi/webmail/WebMail.java +++ b/apps/susimail/src/src/i2p/susi/webmail/WebMail.java @@ -1657,12 +1657,12 @@ public class WebMail extends HttpServlet if (nonce == null || !sessionObject.isValidNonce(nonce)) { // These two strings are already in the router console FormHandler, // so translate with that bundle. - sessionObject.error = Translate.getString( + sessionObject.error = consoleGetString( "Invalid form submission, probably because you used the 'back' or 'reload' button on your browser. Please resubmit.", - ctx, CONSOLE_BUNDLE_NAME) + ctx) + '\n' + - Translate.getString("If the problem persists, verify that you have cookies enabled in your browser.", - ctx, CONSOLE_BUNDLE_NAME); + consoleGetString("If the problem persists, verify that you have cookies enabled in your browser.", + ctx); isPOST = false; } } @@ -1834,6 +1834,14 @@ public class WebMail extends HttpServlet } } + /** + * Translate with the console bundle. + * @since 0.9.27 + */ + private static String consoleGetString(String s, I2PAppContext ctx) { + return Translate.getString(s, ctx, CONSOLE_BUNDLE_NAME); + } + /** * @param sessionObject * @param response