mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Adding token support custom validation messages.
This commit is contained in:
@@ -22,7 +22,7 @@ namespace Orchard.DynamicForms.ValidationRules {
|
||||
}
|
||||
|
||||
private LocalizedString GetValidationMessage(ValidationContext context) {
|
||||
return T(ErrorMessage.WithDefault("{0} must match the value of {1}."), context.FieldName, TargetName);
|
||||
return T(Tokenize(ErrorMessage.WithDefault(String.Format("{0} must match the value of {1}.", context.FieldName, TargetName)), context));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user