Fixing localized message of RequiredAttribute

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-09-28 11:59:55 -07:00
parent a3dd24d73b
commit 6a0e1d035f

View File

@@ -17,7 +17,7 @@ namespace Orchard.Mvc.DataAnnotations {
public override string FormatErrorMessage(string name) {
return String.IsNullOrEmpty(ErrorMessage)
? T("The field {0} is required.", name).Text
? T("The {0} field is required.", name).Text
: T(ErrorMessage, name).Text;
}
}