浏览代码

add hibernate validator's messages

jflute 10 年之前
父节点
当前提交
efe0cc46d6
共有 1 个文件被更改,包括 71 次插入0 次删除
  1. 71 0
      src/main/resources/fess_message.properties

+ 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>