C# Class Cares.Web.Helper.CultureHelper

Show file Open project: innoist/GF-FRS

Public Methods

Method Description
GetCurrentCulture ( ) : string
GetCurrentNeutralCulture ( ) : string
GetDefaultCulture ( ) : string

Returns default culture name which is the first name decalared (e.g. en-US)

GetImplementedCulture ( string name ) : string

Returns a valid culture name based on "name" parameter. If "name" is not valid, it returns the default culture "en-US"

GetNeutralCulture ( string name ) : string
IsRighToLeft ( ) : bool

Returns true if the language is a right-to-left language. Otherwise, false.

Method Details

GetCurrentCulture() public static method

public static GetCurrentCulture ( ) : string
return string

GetCurrentNeutralCulture() public static method

public static GetCurrentNeutralCulture ( ) : string
return string

GetDefaultCulture() public static method

Returns default culture name which is the first name decalared (e.g. en-US)
public static GetDefaultCulture ( ) : string
return string

GetImplementedCulture() public static method

Returns a valid culture name based on "name" parameter. If "name" is not valid, it returns the default culture "en-US"
public static GetImplementedCulture ( string name ) : string
name string Culture's name (e.g. en-US)
return string

GetNeutralCulture() public static method

public static GetNeutralCulture ( string name ) : string
name string
return string

IsRighToLeft() public static method

Returns true if the language is a right-to-left language. Otherwise, false.
public static IsRighToLeft ( ) : bool
return bool