asp.net - How do I feed the language culture thread into the helper class -
With Asp.net mvc 2, I'm trying to work on Matt Havley's Localization Assistant in my web application, but I'm eating an empty feed in the language string variable. I can not understand why I am doing this.
Namespace MVC Localization {Public abstract class localized control box: Controller {public string language code {get; Private set; } Safe override zero initialization (System.Web.Routing.RequestContext requestContext) {LanguageCode = requestContext.RouteData.Values ["languageCode"]. ToString (); If (! AppConfig.SupportedLanguages.Contains (LanguageCode)) LanguageCode = AppConfig.DefaultLanguageCode; System.blobalization.cqueryinfo culture = system Globalization. CulturInfo.CreateSpaceTec (language code); Thread Present. Culture = culture agriculture = culture; Thread Existing content Current uk agriculture = culture; Base.Execute (requestContext); }}
}
What was I doing wrong?
thanks
Paul
HTML>
Comments
Post a Comment