How to Change Default Validation Message Language for an ASP Application. NET MVC

2

I have a template like this:

[Display(Name = "Protocolos Abertos")]
public int ProtocolosId { get; set; }

I use in a SelectList as value , when I will submit a form the validation message is returned in different languages for localhost and for the approval server.

- Test Server:

-Localhost:

aweb.configisset:

<globalizationculture="pt-BR" uiCulture="pt-BR" />

Is there any other settings in the application to be made to effect this change from English to Portuguese?

OBS:  I know you can create custom error messages for the fields, but the default message is very useful.

    
asked by anonymous 29.11.2017 / 14:08

1 answer

0

The workaround I found was to install the language package for the language the server. After that the validation messages started appearing in the correct language.

    
29.11.2017 / 16:50