This commit is contained in:
2017-09-24 21:45:55 +02:00
parent 90520b66d2
commit f99bb8cc4f
8 changed files with 49 additions and 15 deletions

View File

@ -1,4 +1,5 @@
using System;
using System.Resources;
namespace Yavsc.Attributes.Validation
{
@ -50,9 +51,11 @@ namespace Yavsc.Attributes.Validation
{
this.ErrorMessage = pattern;
}
public override string FormatErrorMessage(string name)
{
return Startup.GlobalLocalizer[name];
return Startup.GlobalLocalizer[this.ErrorMessageResourceName];
}
}
}