多语言选项 [英] multiple language option

查看:89
本文介绍了多语言选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望使用不同的语言,如果用户在我的ajax控件工具包编辑器中选择任何一种语言,则将以所选的语言键入文本.
请帮助我,它非常紧急..

i want a drop down of different languages by which if user select any language in my ajax control toolkit editor text will be typed in selected language.
please help me its so urgent..

推荐答案

我相信您将必须手动执行此操作. MS提供的语言功能不够灵活,无法做到这一点.我要做的是创建一个具有所有与语言相关的属性的类,为每种语言提供该类的实例,然后只为所选语言选择该类,这基本上是一种状态设计模式.然后在设置类时,必须初始化所有ui元素.我是WPF开发人员,因此将使用绑定,这很容易.可能可以使用MVC在ASP.NET中简化操作.
I beleive that you are going to have to do that manually. The language capability that MS provides is not flexible enough to do this. What I would do is have a class that has all the language dependent properties, have an instance of the class for each language, and just select the class for the selected language, basically a state design pattern. Then when the class set, have to initialize all the ui elements. I am a WPF developer, and so would use binding, which makes is easy. Probably can use MVC to make it easy in ASP.NET.


这篇关于多语言选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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