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:
Will Rossiter 2009-03-24 22:59:49 +00:00 committed by Sam Minnee
parent bb583293a6
commit 09bd69cdd4
3 changed files with 3 additions and 3 deletions

View File

@ -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"
);

View File

@ -102,7 +102,7 @@ JS;
$this->validationError(
$fieldName,
sprintf(
_t('Form.FIELDISREQUIRED'),
_t('Form.FIELDISREQUIRED').'.',
strip_tags('"' . ($formField->Title() ? $formField->Title() : $fieldName) . '"')
),
"required"

View File

@ -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() {