get language using CookieRequestCultureProvider
This commit is contained in:
parent
b0c8203b24
commit
0dfdb12431
@ -215,9 +215,7 @@
|
|||||||
// set language for page
|
// set language for page
|
||||||
if (!string.IsNullOrEmpty(culture))
|
if (!string.IsNullOrEmpty(culture))
|
||||||
{
|
{
|
||||||
// localization cookie value in form of c=en|uic=en
|
_language = Shared.CookieRequestCultureProvider.ParseCookieValue(culture).Culture.Name;
|
||||||
_language = culture.Split('|')[0];
|
|
||||||
_language = _language.Replace("c=", "");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// create initial PageState
|
// create initial PageState
|
||||||
|
Loading…
x
Reference in New Issue
Block a user