Best way to implement a multilingual in ASP.NET application

前端 未结 1 588
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-19 10:58

The following things/behaviors are expected in multi lingual application.

  1. To pick up the correct resources for the logged in user’s language
  2. The strin
相关标签:
1条回答
  • 2021-01-19 11:40

    Overload the InitializeCulture() page event. Use a session var based on the autheticated user, which stores the currentliy selected culture and reset both Thread.Culture and UICulture in the event handler.

    As far as I know, these conversion issues or ToString() format issues should no exist. The current thread culture will handle all for you.

    Some resources:
    Walkthrough: Using Resources for Localization with ASP.NET
    How to: Set the Culture and UI Culture for ASP.NET Web Page Globalization

    0 讨论(0)
提交回复
热议问题