Search code examples
asp.netlocalizationglobalization

How to support multiple languages in an ASP.NET web application?


I am working on a web forms application that needs to support multiple languages based on a user's preference. Here are some considerations to keep in mind about the needed solution:

I want to avoid using resource files to store the different text translations because I'd like the ability to change them without having to recompile and deploy the application.

Also the translations ideally need to be adminstratable.

It seems its a considerable amount of effort to add this support to an existing application. Any suggestions would be appreciated. Thanks.


Solution

  • You'll need languge tables for each supported language. You may need to start with an "en" table as your base language for the app.

    Then you can add tables for en-gb, en-us and if required you can even go brand specific using custom cultures like en-gb-MyApp1, en-gb-myApp2

    Make extensive use of caching and write a custom resource provider.