C# 클래스 SimpleDnsCrypt.Tools.LocalizationEx

Class for translation management.
파일 보기 프로젝트 열기: bitbeans/SimpleDnsCrypt

공개 메소드들

메소드 설명
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.

메소드 상세

GetSupportedLanguages() 공개 정적인 메소드

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

GetUiString() 공개 정적인 메소드

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.
리턴 string

SetCulture() 공개 정적인 메소드

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