C# Class IssueTracker.Abstractions.CultureHelper

Show file Open project: radike/issue-tracker

Public Properties

Property Type Description
DefaultCulture System.Globalization.CultureInfo
PrefferedCultureCookie string
SupportedCultures IReadOnlyCollection

Public Methods

Method Description
GetCultureForCookie ( System.Web.HttpCookie cultureCookie ) : string[]
GetSupportedCulture ( ) : CultureInfo
IsSupportedCulture ( string cultureCode ) : bool

Private Methods

Method Description
parseCulture ( string cultureCode ) : CultureInfo

Method Details

GetCultureForCookie() public static method

public static GetCultureForCookie ( System.Web.HttpCookie cultureCookie ) : string[]
cultureCookie System.Web.HttpCookie
return string[]

GetSupportedCulture() public static method

public static GetSupportedCulture ( ) : CultureInfo
return System.Globalization.CultureInfo

IsSupportedCulture() public static method

public static IsSupportedCulture ( string cultureCode ) : bool
cultureCode string
return bool

Property Details

DefaultCulture public static property

public static CultureInfo,System.Globalization DefaultCulture
return System.Globalization.CultureInfo

PrefferedCultureCookie public static property

public static string PrefferedCultureCookie
return string

SupportedCultures public static property

public static IReadOnlyCollection SupportedCultures
return IReadOnlyCollection