Localisation
This commit is contained in:
parent
41d803f851
commit
757c5ca2ea
23 changed files with 26 additions and 39 deletions
|
|
@ -4,7 +4,7 @@ namespace Yavsc.Attributes.Validation
|
|||
{
|
||||
public class YaValidationAttribute : System.ComponentModel.DataAnnotations.ValidationAttribute
|
||||
{
|
||||
public YaValidationAttribute() : base(()=> ResourcesHelpers.DefaultResourceManager.GetString("validationError"))
|
||||
public YaValidationAttribute() : base(()=> ResourcesHelpers.GlobalLocalizer["validationError"])
|
||||
{
|
||||
|
||||
}
|
||||
|
|
@ -16,7 +16,7 @@ namespace Yavsc.Attributes.Validation
|
|||
|
||||
public override string FormatErrorMessage(string name)
|
||||
{
|
||||
return ResourcesHelpers.DefaultResourceManager.GetString(name);
|
||||
return ResourcesHelpers.GlobalLocalizer[name];
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue