Validation DataAnnotation displaying message in English

0

Good afternoon,

In my system I made the validations with data annotations, locally the messages are displayed in Portuguese, when I publish in the hosting server the text message is displayed in English, someone knows how do I keep in Portuguese?     

asked by anonymous 16.10.2018 / 20:25

1 answer

1

This happens, simply responding because your local IIS configuration is in Portuguese and your remote IIS is in English.

To change this globalization setting for your IIS you should add the following line in your web.config file.

<configuration>
    <system.web>
        <globalization culture="pt-BR" uiCulture="pt-BR"/>
    </system.web>
</configuration>
    
16.10.2018 / 20:41