Struts-Dojo Internationalization (how to Override Browser's Language)

拟墨画扇 提交于 2019-12-25 12:27:09

问题


I asked previously on how to implement Internationalization in struts-dojo (Struts Dojo Internationalization of values). The answer solved my problem but I have another problem.

I want to override the browser's language to my user's language. For exmaple, If my browser's language is Japanese but my user's language is English, the page should be displayed in English.

I tried overriding the browser's language by setting request_locale=en_US as parameter but the page language did not change.

Any solution to this problem would be much appreciated. Thank you.

来源:https://stackoverflow.com/questions/32452884/struts-dojo-internationalization-how-to-override-browsers-language

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!