C# Class Sharpex2D.Localization.LanguageProvider

显示文件 Open project: ThuCommix/Sharpex2D

Public Methods

Method Description
ChangeLanguage ( System.Guid guid ) : void

Changes the current language.

GetLocalizedString ( string id ) : string

Gets the LocalizedString from the current Language.

LanguageProvider ( ) : System
LoadLanguage ( string path ) : void

Loads a language based on the Path.

LoadLanguagesFromDirectory ( string directoryPath ) : void

Loads a languages in the given Directory.

Method Details

ChangeLanguage() public method

Changes the current language.
public ChangeLanguage ( System.Guid guid ) : void
guid System.Guid The LanguageGuide.
return void

GetLocalizedString() public method

Gets the LocalizedString from the current Language.
public GetLocalizedString ( string id ) : string
id string The Id.
return string

LanguageProvider() public method

public LanguageProvider ( ) : System
return System

LoadLanguage() public method

Loads a language based on the Path.
public LoadLanguage ( string path ) : void
path string The Filepath.
return void

LoadLanguagesFromDirectory() public method

Loads a languages in the given Directory.
public LoadLanguagesFromDirectory ( string directoryPath ) : void
directoryPath string The DirectoryPath.
return void