Har*_*iam 4 asp.net asp.net-mvc razor asp.net-mvc-3 asp.net-mvc-2
我的任务是使用ASP.NET MVC开发一个多语言站点.对于静态内容,我可以使用resx文件以获得更好的可伸缩性.但问题出在用户输入的数据上.User1填写客户数据表并使用language1保存.现在User2在查看数据时,user1在langauge1中输入的数据应该以User2选择的语言显示.有人可以在这里帮忙.提前致谢.
Dar*_*rov 8
您可以使用Google的翻译等自动语言翻译服务.使用它就像发送GET请求一样简单https://www.googleapis.com/language/translate/v2?key=INSERT-YOUR-KEY&q=hello%20world&source=en&target=de(hello world从英语翻译成德语)并解析生成的JSON.
https://www.googleapis.com/language/translate/v2?key=INSERT-YOUR-KEY&q=hello%20world&source=en&target=de
hello world
正如@olivehour所指出的,微软也提供类似的服务.
尽管就自动语言翻译的质量而言,不要指望奇迹.
归档时间:
14 年,3 月 前
查看次数:
418 次
最近记录: