C# Class SobekCM.Core.Configuration.Localization.Web_Language_Enum_Converter

Static class is used to change between codes and language names to the language enumeration
Afficher le fichier Open project: MarkVSullivan/SobekCM-Web-Application

Méthodes publiques

Méthode Description
Code_To_Enum ( string Code ) : Web_Language_Enum

Converts the web browser code to the web language enumeration

If this is a sub-language, or refinement code, like 'en-us', and there is no match this will call itself recursively to see if the base language ('en' for example) is recognized.

Enum_To_Code ( Web_Language_Enum Enum ) : string

Convert enumeration to two digit ISO language code

Enum_To_Name ( Web_Language_Enum Web_Language ) : string

Given the language enumeration, return the associated language name

Name_To_Code ( string Language_Name ) : string

Given a language name, returns the associated browser code

Method Details

Code_To_Enum() public static méthode

Converts the web browser code to the web language enumeration
If this is a sub-language, or refinement code, like 'en-us', and there is no match this will call itself recursively to see if the base language ('en' for example) is recognized.
public static Code_To_Enum ( string Code ) : Web_Language_Enum
Code string Code for the browser
Résultat Web_Language_Enum

Enum_To_Code() public static méthode

Convert enumeration to two digit ISO language code
public static Enum_To_Code ( Web_Language_Enum Enum ) : string
Enum Web_Language_Enum Enumeration value to convert to the ISO code
Résultat string

Enum_To_Name() public static méthode

Given the language enumeration, return the associated language name
public static Enum_To_Name ( Web_Language_Enum Web_Language ) : string
Web_Language Web_Language_Enum Enumeration for the web language
Résultat string

Name_To_Code() public static méthode

Given a language name, returns the associated browser code
public static Name_To_Code ( string Language_Name ) : string
Language_Name string Name of the language
Résultat string