C# 클래스 Catel.Services.LanguageService

Service to implement the retrieval of language services.
상속: LanguageServiceBase, ILanguageService
파일 보기 프로젝트 열기: Catel/Catel 1 사용 예제들

공개 메소드들

메소드 설명
ClearLanguageResources ( ) : void

Clears the language resources.

GetString ( ILanguageSource languageSource, string resourceName, CultureInfo cultureInfo ) : string

Gets the string from the specified resource file with the current culture.

GetString ( string resourceName ) : string

Gets the string with the PreferredCulture. If the preferred language cannot be found, this method will use the FallbackCulture to retrieve the string.

GetString ( string resourceName, CultureInfo cultureInfo ) : string

Gets the string with the specified culture.

LanguageService ( ) : System

Initializes a new instance of the LanguageService class.

PreloadLanguageSources ( ) : void

Preloads the language sources to provide optimal performance.

RegisterLanguageSource ( ILanguageSource languageSource ) : void

Registers the language source.

보호된 메소드들

메소드 설명
PreloadLanguageSource ( ILanguageSource languageSource ) : void

Preloads the language sources to provide optimal performance.

비공개 메소드들

메소드 설명
GetResourceContainer ( string source ) : string
GetResourceManager ( string source ) : Windows.ApplicationModel.Resources.ResourceLoader

Gets the resource manager.

GetStringInternal ( string resourceName, CultureInfo cultureInfo ) : string

메소드 상세

ClearLanguageResources() 공개 메소드

Clears the language resources.
public ClearLanguageResources ( ) : void
리턴 void

GetString() 공개 메소드

Gets the string from the specified resource file with the current culture.
The is null. The is null. The is null.
public GetString ( ILanguageSource languageSource, string resourceName, CultureInfo cultureInfo ) : string
languageSource ILanguageSource The language source.
resourceName string Name of the resource.
cultureInfo System.Globalization.CultureInfo The culture information.
리턴 string

GetString() 공개 메소드

Gets the string with the PreferredCulture. If the preferred language cannot be found, this method will use the FallbackCulture to retrieve the string.
The is null.
public GetString ( string resourceName ) : string
resourceName string Name of the resource.
리턴 string

GetString() 공개 메소드

Gets the string with the specified culture.
The is null. The is null.
public GetString ( string resourceName, CultureInfo cultureInfo ) : string
resourceName string Name of the resource.
cultureInfo System.Globalization.CultureInfo The culture information.
리턴 string

LanguageService() 공개 메소드

Initializes a new instance of the LanguageService class.
public LanguageService ( ) : System
리턴 System

PreloadLanguageSource() 보호된 메소드

Preloads the language sources to provide optimal performance.
protected PreloadLanguageSource ( ILanguageSource languageSource ) : void
languageSource ILanguageSource The language source.
리턴 void

PreloadLanguageSources() 공개 메소드

Preloads the language sources to provide optimal performance.
public PreloadLanguageSources ( ) : void
리턴 void

RegisterLanguageSource() 공개 메소드

Registers the language source.
The is null or whitespace.
public RegisterLanguageSource ( ILanguageSource languageSource ) : void
languageSource ILanguageSource The language source.
리턴 void