多语言网站的制作?
请指导我如何制作一个支持两种语言的网站。加入网站时,使用将选择默认语言。如果用户选择英语,则所有页面、按钮文本和电子邮件都应为英语,但如果用户选择任何其他语言的网站,则应使用该语言。以下区域是特定于语言的。
- 按钮、标签、标题和所有标题。
- 电子邮件文本和通知
- 所有消息,包括错误消息。
重要的是,目前我想用两种语言制作这个网站,但稍后我可能想将其转换为其他语言。
请指导。
谢谢
Kindly guide me how to make a site that support 2 languages. On joining the site use will select default language. If user select English all pages, button texts and email should be in English but if user select any other language site for him should be coming in that language. The following areas are language specific.
- Buttons, Labels, headings and all captions.
- Email texts and notifications
- All messages including error messages.
Important thing is that currently I want to make this site in 2 languages but later I may want to convert it to other languages.
Please guide.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您基本上是想找出国际化和国际化的选项。 .Net 提供的本地化。这些通常依赖于特定于语言的资源文件和资源文件的组合。使用公用事业和System.Globalization 命名空间提供的区域设置信息。这里有一个非常好的分步教程,可指导您完成此过程:
http: //www.codeproject.com/KB/locale/Internationalization_I18N.aspx
本教程旨在构建桌面应用程序,但其绝大多数内容适用于网站/网络应用程序。这里还有一些很棒的 ASP.NET 特定资源:
http://wiki.asp .net/page.aspx/55/国际化/
Your basically looking to find out the options for Internationalization & Localization provided by .Net. These typically rely on a combination of language specific resource files & use of the utilities & locale information provided by the System.Globalization namespace. There is a very good step-by-step tutorial which guides you through this process here:
http://www.codeproject.com/KB/locale/Internationalization_I18N.aspx
The tutorial is aimed at the construction of a desktop application however the vast majority of it's contents are applicable to a website/web-app. There are also some fantastic asp.net specific resources available here:
http://wiki.asp.net/page.aspx/55/internationalization/