C# Class SimpleDnsCrypt.Tools.LocalizationEx

Class for translation management.
Mostra file Open project: bitbeans/SimpleDnsCrypt

Public Methods

Method Description
GetSupportedLanguages ( ) : ObservableCollection

Get the supported languages.

GetUiString ( string key, CultureInfo culture ) : string

Get a translated string by key and culture.

SetCulture ( string culture ) : CultureInfo

Sets the localization culture.

Method Details

GetSupportedLanguages() public static method

Get the supported languages.
public static GetSupportedLanguages ( ) : ObservableCollection
return ObservableCollection

GetUiString() public static method

Get a translated string by key and culture.
public static GetUiString ( string key, CultureInfo culture ) : string
key string The key to retrieve.
culture System.Globalization.CultureInfo The culture to retrieve the key from.
return string

SetCulture() public static method

Sets the localization culture.
public static SetCulture ( string culture ) : CultureInfo
culture string ISO code of the new culture.
return System.Globalization.CultureInfo