From 269dea40ff4848bc9b5f0054d8048e4a64e98e9f Mon Sep 17 00:00:00 2001 From: k-tamura Date: Sun, 26 Feb 2017 23:57:02 +0900 Subject: [PATCH] Fix wrong messages on several pages --- .../t246osslab/easybuggy/others/IntegerOverflowServlet.java | 2 +- src/main/resources/messages_en.properties | 3 ++- src/main/resources/messages_ja.properties | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/t246osslab/easybuggy/others/IntegerOverflowServlet.java b/src/main/java/org/t246osslab/easybuggy/others/IntegerOverflowServlet.java index 9a674689..a0d752a5 100644 --- a/src/main/java/org/t246osslab/easybuggy/others/IntegerOverflowServlet.java +++ b/src/main/java/org/t246osslab/easybuggy/others/IntegerOverflowServlet.java @@ -51,7 +51,7 @@ protected void service(HttpServletRequest req, HttpServletResponse res) throws S StringBuilder bodyHtml = new StringBuilder(); bodyHtml.append("
"); - bodyHtml.append(MessageUtils.getMsg("msg.enter.positive.number", locale)); + bodyHtml.append(MessageUtils.getMsg("msg.question.reach.the.moon", locale)); bodyHtml.append("
"); bodyHtml.append("
"); if (times >= 0) { diff --git a/src/main/resources/messages_en.properties b/src/main/resources/messages_en.properties index c152e9a8..9ee7c45e 100644 --- a/src/main/resources/messages_en.properties +++ b/src/main/resources/messages_en.properties @@ -28,7 +28,7 @@ msg.deadlock.occurs=A lock could not be obtained due to a deadlock. msg.enter.json.string=Please enter JSON string. msg.enter.name.and.passwd=If you enter your name and password, then your secret number is shown. msg.enter.name=Please enter your name. -msg.enter.positive.number=How many times would you have to fold a piece of paper (thickness 0.1mm) for it to be thick enough to reach the moon (384,400 km)? +msg.enter.positive.number=Please enter a positive number. msg.enter.decimal.value=Please enter a decimal number less than 1. msg.enter.word=Please enter a string. msg.error.user.not.exist=User does not exist or password does not match. @@ -69,6 +69,7 @@ msg.note.xss=  \ JavaScript is executed if you set name to >tpircs/<;)\"!SSX\"(trela>tpircs< msg.permgen.space.leak.occur=Memory leak occurs in PermGen space every time you load this page.

\   If keeping on loading this page, OutOfMemoryError is finally thrown. +msg.question.reach.the.moon=How many times would you have to fold a piece of paper (thickness 0.1mm) for it to be thick enough to reach the moon (384,400 km)? msg.socket.leak.occur=Network socket leak occurs every time you load this page. msg.unknown.exception.occur=Unknown exception occurs. msg.update.records=Updated {0} records. diff --git a/src/main/resources/messages_ja.properties b/src/main/resources/messages_ja.properties index 480ceb06..ce25bf1a 100644 --- a/src/main/resources/messages_ja.properties +++ b/src/main/resources/messages_ja.properties @@ -28,7 +28,7 @@ msg.deadlock.occurs=\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u306b\u3088\u308a\u30ed msg.enter.json.string=JSON\u6587\u5b57\u5217\u3092\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002 msg.enter.name.and.passwd=\u540d\u524d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u6697\u8a3c\u756a\u53f7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002 msg.enter.name=\u540d\u524d\u3092\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002 -msg.enter.positive.number=0.1mm\u306e\u539a\u3055\u306e\u7d19\u3092\u4f55\u56de\u6298\u308a\u305f\u305f\u3080\u3068\u3001\u5730\u7403\u304b\u3089\u6708\u306e\u8ddd\u96e2(384,400 km)\u306b\u5230\u9054\u3059\u308b\u3067\u3057\u3087\u3046\u304b\uff1f +msg.enter.positive.number=\u6b63\u306e\u6574\u6570\u3092\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002 msg.enter.decimal.value=1\u672a\u6e80\u306e\u5c0f\u6570\u3092\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002 msg.enter.word=\u6587\u5b57\u5217\u3092\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002 msg.error.user.not.exist=\u30e6\u30fc\u30b6\u30fc\u304c\u5b58\u5728\u3057\u306a\u3044\u304b\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u4e00\u81f4\u3057\u307e\u305b\u3093\u3002 @@ -69,6 +69,7 @@ msg.not.match.regular.expression=\u5165\u529b\u6587\u5b57\u5217\u306f\u6b63\u898 msg.match.regular.expression=\u5165\u529b\u6587\u5b57\u5217\u306f\u6b63\u898f\u8868\u73fe\u306b\u4e00\u81f4\u3057\u307e\u3057\u305f\u3002 msg.permgen.space.leak.occur=\u3053\u306e\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3073\u306b\u3001Permanent\u9818\u57df\u306e\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002

\   \u753b\u9762\u3092\u30ed\u30fc\u30c9\u3057\u7d9a\u3051\u308b\u3068\u3001\u6700\u7d42\u7684\u306bOutOfMemoryError\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3059\u3002 +msg.question.reach.the.moon=0.1mm\u306e\u539a\u3055\u306e\u7d19\u3092\u4f55\u56de\u6298\u308a\u305f\u305f\u3080\u3068\u3001\u5730\u7403\u304b\u3089\u6708\u306e\u8ddd\u96e2(384,400 km)\u306b\u5230\u9054\u3059\u308b\u3067\u3057\u3087\u3046\u304b\uff1f msg.socket.leak.occur=\u3053\u306e\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3073\u306b\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bd\u30b1\u30c3\u30c8\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002 msg.unknown.exception.occur=\u4e0d\u660e\u306a\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002 msg.update.records={0}\u4ef6\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002