Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
104 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php defined('SYSPATH') OR die('No direct access allowed.'); | ||
/** | ||
* Core Kohana messages | ||
* | ||
* @package Core | ||
* @author Kohana Team | ||
* @copyright (c) 2009 Kohana Team | ||
* @license http://kohanaphp.com/license | ||
*/ | ||
$messages = array | ||
( | ||
'errors' => array | ||
( | ||
E_KOHANA => 'Framework Error', | ||
E_PAGE_NOT_FOUND => 'Page Not Found', | ||
E_DATABASE_ERROR => 'Database Error', | ||
E_RECOVERABLE_ERROR => 'Recoverable Error', | ||
E_ERROR => 'Fatal Error', | ||
E_COMPILE_ERROR => 'Fatal Error', | ||
E_CORE_ERROR => 'Fatal Error', | ||
E_USER_ERROR => 'Fatal Error', | ||
E_PARSE => 'Syntax Error', | ||
E_WARNING => 'Warning Message', | ||
E_COMPILE_WARNING => 'Warning Message', | ||
E_CORE_WARNING => 'Warning Message', | ||
E_USER_WARNING => 'Warning Message', | ||
E_STRICT => 'Strict Mode Error', | ||
E_NOTICE => 'Runtime Message', | ||
E_USER_NOTICE => 'Runtime Message', | ||
), | ||
); | ||
|
||
// E_DEPRECATED is only defined in PHP >= 5.3.0 | ||
if (defined('E_DEPRECATED')) | ||
{ | ||
$messages['errors'][E_DEPRECATED] = 'Deprecated'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', | ||
); |
Oops, something went wrong.