Base solution for your next web application
Open Closed

XML localization in DataAnnotations #42


User avatar
0
cosmic created

Hi, is it possible to use ABP XML localization source in DataAnnotations?

For example, with the Resource file it works:

[Required]
[Display(ResourceType = typeof(MyResource), Name = "Password")]
public string Password { get; set; }

But, is it possible to do with the XML file localization source defined in the ABP module as a DictionaryBasedLocalizationSource?


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    No. But you can use Resource files with ABP: <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Localization#DocLocalizeResources">http://www.aspnetboilerplate.com/Pages/ ... eResources</a>