C# Class SobekCM.Core.ApplicationState.Language_Support_Info

Mostrar archivo Open project: MarkVSullivan/SobekCM-Web-Application Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Add_French ( string English, string French ) : void

Add a french translation to the translation dictionary

Add_Spanish ( string English, string Spanish ) : void

Add a spanish translation to the translation dictionary

Clear ( ) : void

Clears all the data stored in this object

Get_French ( string English ) : string

Gets the french translation of an english term

Get_Spanish ( string English ) : string

Gets the spanish translation of an english term

Get_Translation ( string English, Web_Language_Enum Language ) : string

Generic method requests translation from the appropriate translation dictionary

Language_Support_Info ( ) : System

Constructor for a new instance of the Language_Support_Info class

Method Details

Add_French() public method

Add a french translation to the translation dictionary
public Add_French ( string English, string French ) : void
English string Term in english
French string Term in french
return void

Add_Spanish() public method

Add a spanish translation to the translation dictionary
public Add_Spanish ( string English, string Spanish ) : void
English string Term in english
Spanish string Term in spanish
return void

Clear() public method

Clears all the data stored in this object
public Clear ( ) : void
return void

Get_French() public method

Gets the french translation of an english term
public Get_French ( string English ) : string
English string Term in english
return string

Get_Spanish() public method

Gets the spanish translation of an english term
public Get_Spanish ( string English ) : string
English string Term in english
return string

Get_Translation() public method

Generic method requests translation from the appropriate translation dictionary
public Get_Translation ( string English, Web_Language_Enum Language ) : string
English string Term in english
Language Web_Language_Enum Current language of the web interface
return string

Language_Support_Info() public method

Constructor for a new instance of the Language_Support_Info class
public Language_Support_Info ( ) : System
return System