ILocalizer 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于本地化字符串资源的接口。
public interface ILocalizer
type ILocalizer = interface
Public Interface ILocalizer
- 派生
属性
| 名称 | 说明 |
|---|---|
| Culture |
回归本地化者的文化。 |
方法
| 名称 | 说明 |
|---|---|
| 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>) |
查一下前缀;从词典中取对象,并从localizer替换value。 |
| LookupDictionary(String, IDictionary<Object,TermsAttribute>) |
查一下前缀;从字典中取对象,替换本地化器中的值。 |
| LookupTemplates(String, IDictionary<TemplateUsage,TemplateAttribute>) |
查一下前缀;在本地化工具中使用并替换模板中的模式。 |
| LookupValues(String, String[]) |
将一个键转换为数组值。 |
| Remove(String) |
从本地化器中移除一个密钥。 |
| Save(IResourceWriter) |
节省本地化资源用于直播。 |