c# - uiCulture does not work on server -
i use asp.net, ef 6.0.2, mvc 5.1.1. in web.config set culture , uiculture:
<system.web> <globalization culture="de-ch" uiculture="de" enableclientbasedculture="false" /> </system.web>
when run application locally, validation messages shown in german correctly. when publish project webserver, validation message shown in english.
but printing of:
culture: @system.threading.thread.currentthread.currentculture.tostring() ui culture: @system.threading.thread.currentthread.currentuiculture.tostring()
shows correct setted 'de-ch' , 'de'...
the validation takes place on server instead (not client side). because validation message after submitting form occurs
what want, set language of application fix german-switzerland.
the problem solved: german language pack not installed on server.
Comments
Post a Comment