Skip to content

'Data' portion of string is truncated from output in ´[Display(Name="...")]' attributes #58

Open
@ranolfi

Description

@ranolfi

I tried adding the following attribute to this line:

[Display(Name = "Data de Início")]

The rendered output is:

image

Upon investigation, I found this portion of code in file TagConventions.cs:

// Just assume a "Data." prefix for attributes.
            Labels
                .Always
                .ModifyWith(er => er.CurrentTag.Text(er.CurrentTag.Text().Replace("Data ", "")));

This really difficults things because 'Data' is Portuguese for 'Date'.

Most of all, I'm wondering what is the rationale behind that portion of code (introduced in ef7152a), and whether it can safely be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions