C# 클래스 i18n.Tests.TextLocalizer_Mock_SingleMessage

Mock implementation of ITextLocalizer with simplest of logic: · Supports single msgid/msgstr pair passed to cstor. · GetText checks that the UserLanguage spec. matches "en" and if so and msgid matches that passed to cstor, then returns the msgstr passed to cstor. Otherwise returns null.
상속: ITextLocalizer
파일 보기 프로젝트 열기: turquoiseowl/i18n 1 사용 예제들

공개 메소드들

메소드 설명
AddAppLanguage ( string langtag ) : void
GetAppLanguages ( ) : LanguageTag>.ConcurrentDictionary
GetText ( string msgid, string msgcomment, LanguageItem languages, LanguageTag &o_langtag, int maxPasses = -1 ) : string
TextLocalizer_Mock_SingleMessage ( string msgid, string msgstr ) : System

메소드 상세

AddAppLanguage() 공개 메소드

public AddAppLanguage ( string langtag ) : void
langtag string
리턴 void

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_Mock_SingleMessage() 공개 메소드

public TextLocalizer_Mock_SingleMessage ( string msgid, string msgstr ) : System
msgid string
msgstr string
리턴 System