Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ranolfi opened this issue Jul 1, 2021 · 0 comments

Comments

@ranolfi
Copy link

ranolfi commented Jul 1, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant