語言

ILocalizer 介面

定義

用於在地化字串資源的介面。

public interface ILocalizer
type ILocalizer = interface
Public Interface ILocalizer
衍生

屬性

名稱 Description
Culture

回歸本地化者的文化。

方法

名稱 Description
Add(String, IEnumerable<String>)

新增一個鍵和一個以分號分隔的翻譯清單。

Add(String, IReadOnlyDictionary<Object,DescribeAttribute>)

若列舉與前綴為物件,則從字典中增加價值;否則,反對。

Add(String, IReadOnlyDictionary<Object,TermsAttribute>)

若為列舉與前綴,則以分號分隔詞字典的值;否則,反對。

Add(String, IReadOnlyDictionary<TemplateUsage,TemplateAttribute>)

新增模板模式,前綴下以分號分隔;使用。

Add(String, String)

加入一個鑰匙及其翻譯。

Add(String, TemplateAttribute)

新增模板模式,前綴下以分號分隔;使用。

Load(IDictionaryEnumerator, IEnumerable<String>, IEnumerable<String>)

從串流載入本地化器。

Lookup(String, String)

把一個鑰匙翻譯成一個翻譯。

LookupDictionary(String, IDictionary<Object,DescribeAttribute>)

查一下前綴;從字典中取物件,並將 Local Izer 中的 value 替換。

LookupDictionary(String, IDictionary<Object,TermsAttribute>)

查一下前綴;從字典中取物件,並從 localizer 替換值。

LookupTemplates(String, IDictionary<TemplateUsage,TemplateAttribute>)

查一下前綴;在 Localizer 中使用並替換範本中的圖案。

LookupValues(String, String[])

將一個鍵轉換成一組數值。

Remove(String)

從 localizer 移除一把鑰匙。

Save(IResourceWriter)

節省本地化資源來串流。

適用於