Просмотр исходного кода

Merge pull request #307 from jflute/lastaflute

add hibernate validator's messages
Shinsuke Sugaya 10 лет назад
Родитель
Сommit
4b687fc6d3
2 измененных файлов с 73 добавлено и 2 удалено
  1. 2 2
      pom.xml
  2. 71 0
      src/main/resources/fess_message.properties

+ 2 - 2
pom.xml

@@ -39,7 +39,7 @@
 
 		<!-- Main Framework -->
 		<dbflute.version>1.1.0-sp7</dbflute.version>
-		<lastaflute.version>0.6.1-D-SNAPSHOT</lastaflute.version>
+		<lastaflute.version>0.6.1-RC2</lastaflute.version>
 		<lasta.taglib.version>0.6.0</lasta.taglib.version>
 		<servlet.version>3.1.0</servlet.version>
 		<jsp.version>2.3.1</jsp.version>
@@ -53,7 +53,7 @@
 
 		<!-- Testing -->
 		<junit.version>4.8.2</junit.version>
-		<utflute.version>0.5.0-sp8-A-SNAPSHOT</utflute.version>
+		<utflute.version>0.5.0-sp8-RC1</utflute.version>
 		<jetty.boot.version>0.3.2</jetty.boot.version>
 
 		<!-- S2Robot -->

+ 71 - 0
src/main/resources/fess_message.properties

@@ -1,3 +1,74 @@
+
+# ========================================================================================
+#                                                                        Framework Default
+#                                                                        =================
+# ----------------------------------------------------------
+#                                               Lasta Taglib
+#                                               ------------
+errors.header=<font color="red"><ul>
+errors.footer=</ul></font>
+errors.prefix=<li>
+errors.suffix=</li>
+
+# ----------------------------------------------------------
+#                                            Javax Validator
+#                                            ---------------
+constraints.AssertFalse.message = must be false
+constraints.AssertTrue.message  = must be true
+constraints.DecimalMax.message  = must be less than ${inclusive == true ? 'or equal to ' : ''}{value}
+constraints.DecimalMin.message  = must be greater than ${inclusive == true ? 'or equal to ' : ''}{value}
+constraints.Digits.message      = numeric value out of bounds (<{integer} digits>.<{fraction} digits> expected)
+constraints.Future.message      = must be in the future
+constraints.Max.message         = must be less than or equal to {value}
+constraints.Min.message         = must be greater than or equal to {value}
+constraints.NotNull.message     = may not be null
+constraints.Null.message        = must be null
+constraints.Past.message        = must be in the past
+constraints.Pattern.message     = must match "{regexp}"
+constraints.Size.message        = size must be between {min} and {max}
+
+# ----------------------------------------------------------
+#                                        Hibernate Validator
+#                                        -------------------
+constraints.CreditCardNumber.message        = invalid credit card number
+constraints.EAN.message                     = invalid {type} barcode
+constraints.Email.message                   = not a well-formed email address
+constraints.Length.message                  = length must be between {min} and {max}
+constraints.LuhnCheck.message               = The check digit for ${value} is invalid, Luhn Modulo 10 checksum failed
+constraints.Mod10Check.message              = The check digit for ${value} is invalid, Modulo 10 checksum failed
+constraints.Mod11Check.message              = The check digit for ${value} is invalid, Modulo 11 checksum failed
+constraints.ModCheck.message                = The check digit for ${value} is invalid, ${modType} checksum failed
+constraints.NotBlank.message                = may not be empty
+constraints.NotEmpty.message                = may not be empty
+constraints.ParametersScriptAssert.message  = script expression "{script}" didn't evaluate to true
+constraints.Range.message                   = must be between {min} and {max}
+constraints.SafeHtml.message                = may have unsafe html content
+constraints.ScriptAssert.message            = script expression "{script}" didn't evaluate to true
+constraints.URL.message                     = must be a valid URL
+constraints.Required.message                = is required
+
+# ----------------------------------------------------------
+#                                      Application Exception
+#                                      ---------------------
+# /- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# five framework-embedded messages (don't change key names)
+# - - - - - - - - - -/
+errors.login.failure=could not login
+errors.app.illegal.transition=retry because of illegal transition
+errors.app.db.already.deleted=others might be updated, so retry
+errors.app.db.already.updated=others might be updated, so retry
+errors.app.db.already.exists=already existing data, so retry
+
+
+# _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
+# you can define your messages here:
+# e.g.
+#  errors.xxx = ...
+#  info.xxx = ...
+# _/_/_/_/_/_/_/_/_/_/
+# ========================================================================================
+#                                                                                    Fess
+#                                                                                   ======
 errors.front_header=<div class="alert"><button type="button" class="close" data-dismiss="alert">\u00d7</button>
 errors.front_footer=</div>
 errors.front_prefix=<div>