使MVC网站全球化 [英] Make a MVC website globalized

查看:73
本文介绍了使MVC网站全球化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有人可以让我知道更改语言后如何重新渲染视图.

另外,如果我尝试再次调用呈现页面的action方法,那么我将面临当前线程转到先前线程(原始值)的问题.

例如:在初始加载时,索引已加载
更改文化时,我将线程设置为新文化,该线程成功运行,但是一旦我调用索引,线程就会再次回到原始状态.

Hi,

Can anybody please let me know how to re-render my View when the language is changed.

Also I am facing one issue where current thread goes to previous thread(Original value), if I try to call the action method which rendered the page once again.

For ex:At Inital Load, Index was loaded
When I change Culture, I set the thread to new Culture, which works successfully, but as soon as I call Index, thread goes back to original state, again.

推荐答案

我怀疑这意味着未保留文化背景.我不确定您所说的线程"是什么意思,因此您的MVC网站不应是多线程的.
I suspect this means the culture setting is not being retained. I am not sure what you mean by ''thread'', your MVC site should not be multithreaded.


这篇关于使MVC网站全球化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆