i18n for r1090763
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 21 Apr 2011 12:50:40 +0000 (12:50 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 21 Apr 2011 12:50:40 +0000 (12:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1095686 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/compiler/DefaultErrorHandler.java
java/org/apache/jasper/resources/LocalStrings.properties

index 4b8b7ed..444d965 100644 (file)
@@ -38,8 +38,10 @@ class DefaultErrorHandler implements ErrorHandler {
     @Override
     public void jspError(String fname, int line, int column, String errMsg,
             Exception ex) throws JasperException {
-        throw new JasperException(fname + "(line: " + line + ", column: " +
-                column + ")" + " " + errMsg, ex);
+        throw new JasperException(fname + " (" +
+                Localizer.getMessage("jsp.error.location",
+                        Integer.toString(line), Integer.toString(column)) +
+                ") " + errMsg, ex);
     }
     
     /*
index f18fed0..428b673 100644 (file)
@@ -336,6 +336,7 @@ jsp.error.needAlternateJavaEncoding=Default java encoding {0} is invalid on your
 jsp.error.single.line.number=An error occurred at line: {0} in the jsp file: {1}
 jsp.error.multiple.line.number=\n\nAn error occurred between lines: {0} and {1} in the jsp file: {2}\n\n
 jsp.error.java.line.number=An error occurred at line: {0} in the generated java file
+jsp.error.location=line: {0}, column {1}
 jsp.error.corresponding.servlet=Generated servlet error:\n
 jsp.error.empty.body.not.allowed=Empty body not allowed for {0}
 jsp.error.jspbody.required=Must use jsp:body to specify tag body for {0} if jsp:attribute is used.