routing - multilingual website MVC 5 -



routing - multilingual website MVC 5 -

i want create multilingual website, , want website url : en.exemple.com , fr.exemple.com

protected override iasyncresult beginexecutecore(asynccallback callback, object state) { string culturename = null; effort read civilization cookie request httpcookie culturecookie = request.cookies["_culture"]; if (culturecookie != null) culturename = culturecookie.value; else culturename = request.userlanguages != null && request.userlanguages.length > 0 ? request.userlanguages[0] : null; // obtain http header acceptlanguages // validate civilization name culturename = culturehelper.getimplementedculture(culturename); // safe

routing internationalization asp.net-mvc-5

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -