2024年3月7日发(作者:)
using ing;using ies;
namespace itcherPage{public class HTTPSwitcherModule : IHttpModule{///
public void Dispose(){//clean-up code here.}
///
#endregion
///
HttpApplication httpApp = sender as HttpApplication;
// Get all HTTP-specific information about current HTTP ntext context = t;
// Current strLanguage = ;
// The key of current selected language in the strKeyName = "LangSwitcher_Setting";
try{// Set the current (s[strKeyName] != null){strLanguage = s[strKeyName].Value;}else{strLanguage = "zh-cn";}
var lang = s["Accept-Language"];if (lang != null){if (!ns(strLanguage))s["Accept-Language"] = strLanguage + "," + s["Accept-Language"];
var culture = new eInfo(strLanguage);
// Apply the eadCulture(culture, culture);}}catch (Exception ex){ine(e);}}}}


发布评论