C# Class SimpleDnsCrypt.Tools.LocalizationEx

Class for translation management.
Afficher le fichier Open project: bitbeans/SimpleDnsCrypt

Méthodes publiques

Méthode 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 méthode

Get the supported languages.
public static GetSupportedLanguages ( ) : ObservableCollection
Résultat ObservableCollection

GetUiString() public static méthode

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.
Résultat string

SetCulture() public static méthode

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