mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR: added full stop to required labels for consistency
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@73596 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
bb583293a6
commit
09bd69cdd4
@ -65,7 +65,7 @@ class CustomRequiredFields extends RequiredFields{
|
||||
if(!$data[$fieldName] || preg_match('/^\s*$/', $data[$fieldName])) {
|
||||
$this->validationError(
|
||||
$fieldName,
|
||||
sprintf(_t('Form.FIELDISREQUIRED', "%s is required"),
|
||||
sprintf(_t('Form.FIELDISREQUIRED', "%s is required."),
|
||||
$formField->Title()),
|
||||
"required"
|
||||
);
|
||||
|
@ -102,7 +102,7 @@ JS;
|
||||
$this->validationError(
|
||||
$fieldName,
|
||||
sprintf(
|
||||
_t('Form.FIELDISREQUIRED'),
|
||||
_t('Form.FIELDISREQUIRED').'.',
|
||||
strip_tags('"' . ($formField->Title() ? $formField->Title() : $fieldName) . '"')
|
||||
),
|
||||
"required"
|
||||
|
@ -145,7 +145,7 @@ abstract class Validator extends Object {
|
||||
}
|
||||
|
||||
function requireField($fieldName, $data) {
|
||||
if(!$data[$fieldName]) $this->validationError($fieldName, "$fieldName is required", "required");
|
||||
if(!$data[$fieldName]) $this->validationError($fieldName, "$fieldName is required.", "required");
|
||||
}
|
||||
|
||||
function includeJavascriptValidation() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user