mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 17:51:45 +08:00
Fixing localized message of RequiredAttribute
--HG-- branch : 1.x
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user