C# 클래스 i18n.TextLocalizer

A service for retrieving localized text from PO resource files
상속: ITextLocalizer
파일 보기 프로젝트 열기: turquoiseowl/i18n

공개 메소드들

메소드 설명
GetAppLanguages ( ) : LanguageTag>.ConcurrentDictionary
GetText ( string msgid, string msgcomment, LanguageItem languages, LanguageTag &o_langtag, int maxPasses = -1 ) : string
TextLocalizer ( i18nSettings settings, ITranslationRepository translationRepository ) : System

비공개 메소드들

메소드 설명
GetCacheKey ( string langtag ) : string
GetCultureInfoFromLanguage ( string language ) : CultureInfo
IsLanguageValid ( string langtag ) : bool

Assesses whether a language is PO-valid, that is whether or not one or more localized messages exists for the language.

LoadMessagesIntoCache ( string langtag ) : bool
LookupText ( string langtag, string msgkey ) : string
TryGetTextFor ( string langtag, string msgkey ) : string

Lookup whether any messages exist for the passed langtag, and if so attempts to lookup the message for the passed msgid, or if the msgid is null returns indication of whether any messages exist for the langtag.

메소드 상세

GetAppLanguages() 공개 메소드

public GetAppLanguages ( ) : LanguageTag>.ConcurrentDictionary
리턴 LanguageTag>.ConcurrentDictionary

GetText() 공개 메소드

public GetText ( string msgid, string msgcomment, LanguageItem languages, LanguageTag &o_langtag, int maxPasses = -1 ) : string
msgid string
msgcomment string
languages LanguageItem
o_langtag LanguageTag
maxPasses int
리턴 string

TextLocalizer() 공개 메소드

public TextLocalizer ( i18nSettings settings, ITranslationRepository translationRepository ) : System
settings i18n.Domain.Concrete.i18nSettings
translationRepository ITranslationRepository
리턴 System