Skip to content

Support Resources for DisplayName Attribute #60

@pablitofernandez

Description

@pablitofernandez

Hi,

My application has internazionalization using MVC resource files, and I can specify the Display attribute like this:

[Required]
[Display(Name = "resCategory", ResourceType = typeof(SAEiResource))]
public String Categoria { get; set; }

However DataTables seems to ignore the Display attribute and shows just the member name like "Categoria"

I know we can specify DisplayName with this decoration:

[DataTables(DisplayName = "Full Name")]
public string Name { get; set; }

But I dont know how to point to an entry of my Resource file like:

[DataTables(DisplayName = "Full Name", ResourceType = typeof(SAEiResource))]
public string Name { get; set; }

Is there any way of supporting internazionalization through resource files and applying it to DisplayNames in DataTables?

thanks!
Pablo

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions