Advice on ASP.NET Multi-Lingual Strategy

前端 未结 2 1431
花落未央
花落未央 2021-01-14 18:05

Hi brothers and sisters,

I am wondering if anyone would share their experience on what they think as the best strategy to enable dynamic multi-lingual system using .

2条回答
  •  终归单人心
    2021-01-14 18:28

    we've had the same conundrum and New in Town has basically given the options.

    why we went with the resx option, mainly is because in most cases, especially websites, all that needs to change is the static content, i.e. labels, UI elements. if you're working with VS, once you create a page, there is an option to create the resx files for you. This is found in the Generate Local Resource in the Tools options. This will pick up all elements that HAVE ids (this is important), and generate the first resx file for you. creating copies of that for different languages is pretty simple after that.

    changing the language is as simple as changing your web.config. example

     
    

    hope that helps

提交回复
热议问题