C# 클래스 Bloom.ToPalaso.LanguageLookupModelExtensions

파일 보기 프로젝트 열기: BloomBooks/BloomDesktop

공개 메소드들

메소드 설명
GetBestLanguageName ( this isoModel, string code, string &name ) : bool

A smarter way to get a name for an iso code. Currently StandardSubtags.RegisteredLanguages.TryGet does not find an entry at all using 3-letter codes. This adds a fall-back which still finds a language that has the exact requested language code. If we can't find ANY name, the out param is set to the code itself, and we return false. Possibly obsolete, I don't know whether the recent rework of writing systems in libpalaso fixed the problem.

메소드 상세

GetBestLanguageName() 공개 정적인 메소드

A smarter way to get a name for an iso code. Currently StandardSubtags.RegisteredLanguages.TryGet does not find an entry at all using 3-letter codes. This adds a fall-back which still finds a language that has the exact requested language code. If we can't find ANY name, the out param is set to the code itself, and we return false. Possibly obsolete, I don't know whether the recent rework of writing systems in libpalaso fixed the problem.
public static GetBestLanguageName ( this isoModel, string code, string &name ) : bool
isoModel this
code string
name string
리턴 bool