ASP.NET 3.5 unleashed-5-本地化与应用程序资源

Page的本地化属性:UICulture|Culture
Page类设置文化方法:InitializeCulture().....
获取本地文化配置:Request.UserLanguages
 
System.Globalization.CultureInfo类:new CultureInfo("de-DE");
CreateSpecificCulture
GetCultureInfo
GetCultures
 
CultureInfo culture=new CultureInfo("de-DE");
DateTime.Now.Tostring("D",culture);
string.Compare("Hello","Hello",true,culture)==0?.....
 
本地化资源:example.aspx.de-DE.resx
<%$ Resources:ClickHere %>
隐式本地化表达式:meta:resourceKey="btnSubmit"
btnSubmit.Text.....
btnSubmit.ToolTip.....
对页面属性使用本地化资源
<%@ Page meta:resourceKey="page".....
page.Title
 
GetLocalResourceObject("welcomMessage");
HttpContext.GetLocalResourceObject("~/example.aspx","welcomMessage");
 
全局资源:Site.resx
<%$ Resources.Site,Title %>
GetGlobalResourceObject("Site","Title");
Resources.Site.Title;
 
Loalizer控件

你可能感兴趣的:(asp.net)