localize
This commit is contained in:
parent
c6ebb62409
commit
75fbf5a527
8 changed files with 49 additions and 15 deletions
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue