diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-12-23 12:42:57 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-12-23 12:42:57 -0800 |
commit | 3e8e13bd2533ff7e3493b27c8a8587dfb65e1b26 (patch) | |
tree | 4b89142230e516b3d327f4e835edb49c76fa237f /system/messages/validation | |
parent | 05c50a052348a4ae664e0b4ca475f9fb3228f24b (diff) |
Updated Kohana to r4728
Diffstat (limited to 'system/messages/validation')
-rw-r--r-- | system/messages/validation/default.php | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/system/messages/validation/default.php b/system/messages/validation/default.php index 2c59fa06..88580a6b 100644 --- a/system/messages/validation/default.php +++ b/system/messages/validation/default.php @@ -1,17 +1,25 @@ -<?php defined('SYSPATH') or die('No direct script access.');
-
-$messages = array(
- 'required' => 'The :field field is required',
- 'length' => 'The :field field must be between :param1 and :param2 characters long',
- 'depends_on' => 'The :field field requires the :param1 field',
- 'matches' => 'The :field field must be the same as :param1',
- 'email' => 'The :field field must be a valid email address',
- 'decimal' => 'The :field field must be a decimal with :param1 places',
- 'digit' => 'The :field field must be a digit',
- 'in_array' => 'The :field field must be one of the available options',
- 'alpha_numeric' => 'The :field field must consist only of alphabetical or numeric characters',
- 'alpha_dash ' => 'The :field field must consist only of alphabetical, numeric, underscore and dash characters',
- 'numeric ' => 'The :field field must be a valid number',
- 'url' => 'The :field field must be a valid url',
- 'phone' => 'The :field field must be a valid phone number',
-);
+<?php defined('SYSPATH') or die('No direct script access.'); +/** + * Default validation messages + * + * @package Validation + * @author Kohana Team + * @copyright (c) 2009 Kohana Team + * @license http://kohanaphp.com/license + */ + +$messages = array( + 'required' => 'The :field field is required', + 'length' => 'The :field field must be between :param1 and :param2 characters long', + 'depends_on' => 'The :field field requires the :param1 field', + 'matches' => 'The :field field must be the same as :param1', + 'email' => 'The :field field must be a valid email address', + 'decimal' => 'The :field field must be a decimal with :param1 places', + 'digit' => 'The :field field must be a digit', + 'in_array' => 'The :field field must be one of the available options', + 'alpha_numeric' => 'The :field field must consist only of alphabetical or numeric characters', + 'alpha_dash ' => 'The :field field must consist only of alphabetical, numeric, underscore and dash characters', + 'numeric ' => 'The :field field must be a valid number', + 'url' => 'The :field field must be a valid url', + 'phone' => 'The :field field must be a valid phone number', +); |