mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 23:59:51 +01:00
Add country code to postal code exception message
This commit is contained in:
parent
9ab672d489
commit
3fbc45d44f
4 changed files with 18 additions and 2 deletions
|
|
@ -15,10 +15,10 @@ class PostalCodeException extends ValidationException
|
|||
{
|
||||
public static $defaultTemplates = array(
|
||||
self::MODE_DEFAULT => array(
|
||||
self::STANDARD => '{{name}} must be a valid postal code',
|
||||
self::STANDARD => '{{name}} must be a valid postal code on {{countryCode}}',
|
||||
),
|
||||
self::MODE_NEGATIVE => array(
|
||||
self::STANDARD => '{{name}} must not be a valid postal code',
|
||||
self::STANDARD => '{{name}} must not be a valid postal code on {{countryCode}}',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue