Added missing dot to translation messages.
This commit is contained in:
parent
74548943e2
commit
4bff221e7b
@ -20,5 +20,5 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Blank extends Constraint
|
class Blank extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value should be blank';
|
public $message = 'This value should be blank.';
|
||||||
}
|
}
|
||||||
|
@ -26,10 +26,10 @@ class Choice extends Constraint
|
|||||||
public $strict = false;
|
public $strict = false;
|
||||||
public $min = null;
|
public $min = null;
|
||||||
public $max = null;
|
public $max = null;
|
||||||
public $message = 'The value you selected is not a valid choice';
|
public $message = 'The value you selected is not a valid choice.';
|
||||||
public $multipleMessage = 'One or more of the given values is invalid';
|
public $multipleMessage = 'One or more of the given values is invalid.';
|
||||||
public $minMessage = 'You must select at least {{ limit }} choices';
|
public $minMessage = 'You must select at least {{ limit }} choices.';
|
||||||
public $maxMessage = 'You must select at most {{ limit }} choices';
|
public $maxMessage = 'You must select at most {{ limit }} choices.';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
|
@ -23,8 +23,8 @@ class Collection extends Constraint
|
|||||||
public $fields;
|
public $fields;
|
||||||
public $allowExtraFields = false;
|
public $allowExtraFields = false;
|
||||||
public $allowMissingFields = false;
|
public $allowMissingFields = false;
|
||||||
public $extraFieldsMessage = 'This field was not expected';
|
public $extraFieldsMessage = 'This field was not expected.';
|
||||||
public $missingFieldsMessage = 'This field is missing';
|
public $missingFieldsMessage = 'This field is missing.';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
|
@ -20,5 +20,5 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Country extends Constraint
|
class Country extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value is not a valid country';
|
public $message = 'This value is not a valid country.';
|
||||||
}
|
}
|
||||||
|
@ -20,5 +20,5 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Date extends Constraint
|
class Date extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value is not a valid date';
|
public $message = 'This value is not a valid date.';
|
||||||
}
|
}
|
||||||
|
@ -20,5 +20,5 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class DateTime extends Constraint
|
class DateTime extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value is not a valid datetime';
|
public $message = 'This value is not a valid datetime.';
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Email extends Constraint
|
class Email extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value is not a valid email address';
|
public $message = 'This value is not a valid email address.';
|
||||||
public $checkMX = false;
|
public $checkMX = false;
|
||||||
public $checkHost = false;
|
public $checkHost = false;
|
||||||
}
|
}
|
||||||
|
@ -20,5 +20,5 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class False extends Constraint
|
class False extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value should be false';
|
public $message = 'This value should be false.';
|
||||||
}
|
}
|
||||||
|
@ -22,17 +22,17 @@ class File extends Constraint
|
|||||||
{
|
{
|
||||||
public $maxSize = null;
|
public $maxSize = null;
|
||||||
public $mimeTypes = array();
|
public $mimeTypes = array();
|
||||||
public $notFoundMessage = 'The file could not be found';
|
public $notFoundMessage = 'The file could not be found.';
|
||||||
public $notReadableMessage = 'The file is not readable';
|
public $notReadableMessage = 'The file is not readable.';
|
||||||
public $maxSizeMessage = 'The file is too large ({{ size }}). Allowed maximum size is {{ limit }}';
|
public $maxSizeMessage = 'The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.';
|
||||||
public $mimeTypesMessage = 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}';
|
public $mimeTypesMessage = 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.';
|
||||||
|
|
||||||
public $uploadIniSizeErrorMessage = 'The file is too large. Allowed maximum size is {{ limit }}';
|
public $uploadIniSizeErrorMessage = 'The file is too large. Allowed maximum size is {{ limit }}.';
|
||||||
public $uploadFormSizeErrorMessage = 'The file is too large';
|
public $uploadFormSizeErrorMessage = 'The file is too large.';
|
||||||
public $uploadPartialErrorMessage = 'The file was only partially uploaded';
|
public $uploadPartialErrorMessage = 'The file was only partially uploaded.';
|
||||||
public $uploadNoFileErrorMessage = 'No file was uploaded';
|
public $uploadNoFileErrorMessage = 'No file was uploaded.';
|
||||||
public $uploadNoTmpDirErrorMessage = 'No temporary folder was configured in php.ini';
|
public $uploadNoTmpDirErrorMessage = 'No temporary folder was configured in php.ini.';
|
||||||
public $uploadCantWriteErrorMessage = 'Cannot write temporary file to disk';
|
public $uploadCantWriteErrorMessage = 'Cannot write temporary file to disk.';
|
||||||
public $uploadExtensionErrorMessage = 'A PHP extension caused the upload to fail';
|
public $uploadExtensionErrorMessage = 'A PHP extension caused the upload to fail.';
|
||||||
public $uploadErrorMessage = 'The file could not be uploaded';
|
public $uploadErrorMessage = 'The file could not be uploaded.';
|
||||||
}
|
}
|
||||||
|
@ -24,10 +24,10 @@ class Image extends File
|
|||||||
public $maxHeight = null;
|
public $maxHeight = null;
|
||||||
public $minHeight = null;
|
public $minHeight = null;
|
||||||
|
|
||||||
public $mimeTypesMessage = 'This file is not a valid image';
|
public $mimeTypesMessage = 'This file is not a valid image.';
|
||||||
public $sizeNotDetectedMessage = 'The size of the image could not be detected';
|
public $sizeNotDetectedMessage = 'The size of the image could not be detected.';
|
||||||
public $maxWidthMessage = 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px';
|
public $maxWidthMessage = 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.';
|
||||||
public $minWidthMessage = 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px';
|
public $minWidthMessage = 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.';
|
||||||
public $maxHeightMessage = 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px';
|
public $maxHeightMessage = 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.';
|
||||||
public $minHeightMessage = 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px';
|
public $minHeightMessage = 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.';
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ class Ip extends Constraint
|
|||||||
|
|
||||||
public $version = self::V4;
|
public $version = self::V4;
|
||||||
|
|
||||||
public $message = 'This is not a valid IP address';
|
public $message = 'This is not a valid IP address.';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
|
@ -20,5 +20,5 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Language extends Constraint
|
class Language extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value is not a valid language';
|
public $message = 'This value is not a valid language.';
|
||||||
}
|
}
|
||||||
|
@ -20,5 +20,5 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Locale extends Constraint
|
class Locale extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value is not a valid locale';
|
public $message = 'This value is not a valid locale.';
|
||||||
}
|
}
|
||||||
|
@ -20,8 +20,8 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Max extends Constraint
|
class Max extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value should be {{ limit }} or less';
|
public $message = 'This value should be {{ limit }} or less.';
|
||||||
public $invalidMessage = 'This value should be a valid number';
|
public $invalidMessage = 'This value should be a valid number.';
|
||||||
public $limit;
|
public $limit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -20,7 +20,7 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class MaxLength extends Constraint
|
class MaxLength extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value is too long. It should have {{ limit }} characters or less';
|
public $message = 'This value is too long. It should have {{ limit }} characters or less.';
|
||||||
public $limit;
|
public $limit;
|
||||||
public $charset = 'UTF-8';
|
public $charset = 'UTF-8';
|
||||||
|
|
||||||
|
@ -20,8 +20,8 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Min extends Constraint
|
class Min extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value should be {{ limit }} or more';
|
public $message = 'This value should be {{ limit }} or more.';
|
||||||
public $invalidMessage = 'This value should be a valid number';
|
public $invalidMessage = 'This value should be a valid number.';
|
||||||
public $limit;
|
public $limit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -20,7 +20,7 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class MinLength extends Constraint
|
class MinLength extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value is too short. It should have {{ limit }} characters or more';
|
public $message = 'This value is too short. It should have {{ limit }} characters or more.';
|
||||||
public $limit;
|
public $limit;
|
||||||
public $charset = 'UTF-8';
|
public $charset = 'UTF-8';
|
||||||
|
|
||||||
|
@ -20,5 +20,5 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class NotBlank extends Constraint
|
class NotBlank extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value should not be blank';
|
public $message = 'This value should not be blank.';
|
||||||
}
|
}
|
||||||
|
@ -20,5 +20,5 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class NotNull extends Constraint
|
class NotNull extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value should not be null';
|
public $message = 'This value should not be null.';
|
||||||
}
|
}
|
||||||
|
@ -20,5 +20,5 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Null extends Constraint
|
class Null extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value should be null';
|
public $message = 'This value should be null.';
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Regex extends Constraint
|
class Regex extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value is not valid';
|
public $message = 'This value is not valid.';
|
||||||
public $pattern;
|
public $pattern;
|
||||||
public $match = true;
|
public $match = true;
|
||||||
|
|
||||||
|
@ -20,9 +20,9 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Size extends Constraint
|
class Size extends Constraint
|
||||||
{
|
{
|
||||||
public $minMessage = 'This value should be {{ limit }} or more';
|
public $minMessage = 'This value should be {{ limit }} or more.';
|
||||||
public $maxMessage = 'This value should be {{ limit }} or less';
|
public $maxMessage = 'This value should be {{ limit }} or less.';
|
||||||
public $invalidMessage = 'This value should be a valid number';
|
public $invalidMessage = 'This value should be a valid number.';
|
||||||
public $min;
|
public $min;
|
||||||
public $max;
|
public $max;
|
||||||
|
|
||||||
|
@ -20,9 +20,9 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class SizeLength extends Constraint
|
class SizeLength extends Constraint
|
||||||
{
|
{
|
||||||
public $minMessage = 'This value is too short. It should have {{ limit }} characters or more';
|
public $minMessage = 'This value is too short. It should have {{ limit }} characters or more.';
|
||||||
public $maxMessage = 'This value is too long. It should have {{ limit }} characters or less';
|
public $maxMessage = 'This value is too long. It should have {{ limit }} characters or less.';
|
||||||
public $exactMessage = 'This value should have exactly {{ limit }} characters';
|
public $exactMessage = 'This value should have exactly {{ limit }} characters.';
|
||||||
public $min;
|
public $min;
|
||||||
public $max;
|
public $max;
|
||||||
public $charset = 'UTF-8';
|
public $charset = 'UTF-8';
|
||||||
|
@ -20,5 +20,5 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Time extends Constraint
|
class Time extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value is not a valid time';
|
public $message = 'This value is not a valid time.';
|
||||||
}
|
}
|
||||||
|
@ -20,5 +20,5 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class True extends Constraint
|
class True extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value should be true';
|
public $message = 'This value should be true.';
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Type extends Constraint
|
class Type extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value should be of type {{ type }}';
|
public $message = 'This value should be of type {{ type }}.';
|
||||||
public $type;
|
public $type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -20,6 +20,6 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Url extends Constraint
|
class Url extends Constraint
|
||||||
{
|
{
|
||||||
public $message = 'This value is not a valid URL';
|
public $message = 'This value is not a valid URL.';
|
||||||
public $protocols = array('http', 'https');
|
public $protocols = array('http', 'https');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user