/modules/system/lang/ja/validation.php

https://gitlab.com/gideonmarked/yovelife · PHP · 110 lines · 72 code · 8 blank · 30 comment · 0 complexity · 4eff2cd452e485edd51d60b7ab9b9c18 MD5 · raw file

  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Validation Language Lines
  6. |--------------------------------------------------------------------------
  7. |
  8. | The following language lines contain the default error messages used by
  9. | the validator class. Some of these rules have multiple versions such
  10. | such as the size rules. Feel free to tweak each of these messages.
  11. |
  12. */
  13. "accepted" => ":attributeを承認してください。",
  14. "active_url" => ":attributeは、有効なURLではありません。",
  15. "after" => ":attributeには、:date以降の日付を指定してください。",
  16. "alpha" => ":attributeには、アルファベッドのみ使用できます。",
  17. "alpha_dash" => ":attributeには、英数字('A-Z','a-z','0-9')とハイフンと下線('-','_')が使用できます。",
  18. "alpha_num" => ":attributeには、英数字('A-Z','a-z','0-9')が使用できます。",
  19. "array" => ":attributeには、配列を指定してください。",
  20. "before" => ":attributeには、:date以前の日付を指定してください。",
  21. "between" => [
  22. "numeric" => ":attributeには、:minから、:maxまでの数字を指定してください。",
  23. "file" => ":attributeには、:min KBから:max KBまでのサイズのファイルを指定してください。",
  24. "string" => ":attributeは、:min文字から:max文字にしてください。",
  25. "array" => ":attributeの項目は、:min個から:max個にしてください。",
  26. ],
  27. "boolean" => ":attributeには、'true'か'false'を指定してください。",
  28. "confirmed" => ":attributeと:attribute確認が一致しません。",
  29. "date" => ":attributeは、正しい日付ではありません。",
  30. "date_format" => ":attributeの形式は、':format'と合いません。",
  31. "different" => ":attributeと:otherには、異なるものを指定してください。",
  32. "digits" => ":attributeは、:digits桁にしてください。",
  33. "digits_between" => ":attributeは、:min桁から:max桁にしてください。",
  34. "email" => ":attributeは、有効なメールアドレス形式で指定してください。",
  35. "exists" => "選択された:attributeは、有効ではありません。",
  36. "image" => ":attributeには、画像を指定してください。",
  37. "in" => "選択された:attributeは、有効ではありません。",
  38. "integer" => ":attributeには、整数を指定してください。",
  39. "ip" => ":attributeには、有効なIPアドレスを指定してください。",
  40. "max" => [
  41. "numeric" => ":attributeには、:max以下の数字を指定してください。",
  42. "file" => ":attributeには、:max KB以下のファイルを指定してください。",
  43. "string" => ":attributeは、:max文字以下にしてください。",
  44. "array" => ":attributeの項目は、:max個以下にしてください。",
  45. ],
  46. "mimes" => ":attributeには、:valuesタイプのファイルを指定してください。",
  47. "min" => [
  48. "numeric" => ":attributeには、:min以上の数字を指定してください。",
  49. "file" => ":attributeには、:min KB以上のファイルを指定してください。",
  50. "string" => ":attributeは、:min文字以上にしてください。",
  51. "array" => ":attributeの項目は、:max個以上にしてください。",
  52. ],
  53. "not_in" => "選択された:attributeは、有効ではありません。",
  54. "numeric" => ":attributeには、数字を指定してください。",
  55. "regex" => ":attributeには、有効な正規表現を指定してください。",
  56. "required" => ":attributeは、必ず指定してください。",
  57. "required_if" => ":otherが:valueの場合、:attributeを指定してください",
  58. "required_with" => ":valuesが指定されている場合、:attributeも指定してください。",
  59. "required_with_all" => ":valuesが全て指定されている場合、:attributeも指定してください。",
  60. "required_without" => ":valuesが指定されていない場合、:attributeを指定してください。",
  61. "required_without_all" => ":valuesが全て指定されていない場合、:attributeを指定してください。",
  62. "same" => ":attributeと:otherが一致しません。",
  63. "size" => [
  64. "numeric" => ":attributeには、:sizeを指定してください。",
  65. "file" => ":attributeには、:size KBのファイルを指定してください。",
  66. "string" => ":attributeは、:size文字にしてください。",
  67. "array" => ":attributeの項目は、:size個にしてください。",
  68. ],
  69. "unique" => "指定の:attributeは既に使用されています。",
  70. "url" => ":attributeは、有効なURL形式で指定してください。",
  71. "timezone" => ":attributeには、有効なタイムゾーンを指定してください。",
  72. /*
  73. |--------------------------------------------------------------------------
  74. | Custom Validation Language Lines
  75. |--------------------------------------------------------------------------
  76. |
  77. | Here you may specify custom validation messages for attributes using the
  78. | convention "attribute.rule" to name the lines. This makes it quick to
  79. | specify a specific custom language line for a given attribute rule.
  80. |
  81. */
  82. 'custom' => [
  83. 'phone.regex' => '電話番号の形式が正しくありません。',
  84. ],
  85. /*
  86. |--------------------------------------------------------------------------
  87. | Custom Validation Attributes
  88. |--------------------------------------------------------------------------
  89. |
  90. | The following language lines are used to swap attribute place-holders
  91. | with something more reader friendly such as E-Mail Address instead
  92. | of "email". This simply helps us make messages a little cleaner.
  93. |
  94. */
  95. 'attributes' => [
  96. 'name' => '名前',
  97. 'email' => 'メールアドレス',
  98. 'phone' => '電話番号',
  99. 'subject' => 'お申し込み・お問い合わせ内容',
  100. 'body' => 'メッセージ',
  101. ],
  102. ];