ILocalizer 接口

定义

用于本地化字符串资源的接口。

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

属性

Culture

返回本地化程序区域性。

方法

Add(String, IEnumerable<String>)

添加一个键和一个用分号分隔的翻译列表。

Add(String, IReadOnlyDictionary<Object,DescribeAttribute>)

如果枚举和 prefix;object,则从 object 下的字典中添加值;否则为 。

Add(String, IReadOnlyDictionary<Object,TermsAttribute>)

如果枚举和前缀,则从对象下用分号分隔的字典中添加值;否则为 object。

Add(String, IReadOnlyDictionary<TemplateUsage,TemplateAttribute>)

从模板中添加模式,在前缀;usage 下用分号分隔。

Add(String, String)

添加密钥及其翻译。

Add(String, TemplateAttribute)

从模板中添加模式,在前缀;usage 下用分号分隔。

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

从流加载本地化程序。

Lookup(String, String)

将密钥转换为翻译。

LookupDictionary(String, IDictionary<Object,DescribeAttribute>)

从字典中查找 prefix;object,并替换本地化器中的值。

LookupDictionary(String, IDictionary<Object,TermsAttribute>)

从字典中查找 prefix;object,并替换本地化程序中的值。

LookupTemplates(String, IDictionary<TemplateUsage,TemplateAttribute>)

从本地化程序查找模板中的前缀;使用情况和替换模式。

LookupValues(String, String[])

将键转换为值数组。

Remove(String)

从本地化程序中删除密钥。

Save(IResourceWriter)

将本地化程序资源保存到流中。

适用于