C# Class Forex_Strategy_Builder.Language

Manages the language translations of the program
Mostrar archivo Open project: nuggett11/Forex-Strategy-Builder

Public Methods

Method Description
GenerateLangFiles ( ) : void

Generates English.xml and Bulgarian.xml.

GenerateNewLangFile ( string sFileName, string sLang, string sAuthor, string sWebsite, string sEmail ) : bool

Generates a new language file.

ImportLanguageFile ( string sLangFile ) : void

Imports a language file.

InitLanguages ( ) : void

Inits the languages.

RapairAllLangFiles ( ) : string

Repairs all the language files.

SaveLangFile ( string>.Dictionary dict, string sAuthor, string sWebsite, string sEmail ) : void

Generates a new language file.

ShowPhrases ( int iWhatToShow ) : void

Shows the phrases in a web browser.

T ( string phrase ) : string

Language Translation.

Private Methods

Method Description
CheckLangFile ( ) : void

Checks the language file.

LoadLanguageFile ( string sLangFile ) : void

Loads a language dictionary.

SaveTextFile ( string sFilePath, string sContent ) : bool

Saves a text file

Method Details

GenerateLangFiles() public static method

Generates English.xml and Bulgarian.xml.
public static GenerateLangFiles ( ) : void
return void

GenerateNewLangFile() public static method

Generates a new language file.
public static GenerateNewLangFile ( string sFileName, string sLang, string sAuthor, string sWebsite, string sEmail ) : bool
sFileName string
sLang string
sAuthor string
sWebsite string
sEmail string
return bool

ImportLanguageFile() public static method

Imports a language file.
public static ImportLanguageFile ( string sLangFile ) : void
sLangFile string
return void

InitLanguages() public static method

Inits the languages.
public static InitLanguages ( ) : void
return void

RapairAllLangFiles() public static method

Repairs all the language files.
public static RapairAllLangFiles ( ) : string
return string

SaveLangFile() public static method

Generates a new language file.
public static SaveLangFile ( string>.Dictionary dict, string sAuthor, string sWebsite, string sEmail ) : void
dict string>.Dictionary
sAuthor string
sWebsite string
sEmail string
return void

ShowPhrases() public static method

Shows the phrases in a web browser.
public static ShowPhrases ( int iWhatToShow ) : void
iWhatToShow int
return void

T() public static method

Language Translation.
public static T ( string phrase ) : string
phrase string
return string