ILocalizer Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Interface for localizing string resources.
public interface ILocalizer
type ILocalizer = interface
Public Interface ILocalizer
- Derived
Properties
Culture |
Return the localizer culture. |
Methods
Add(String, IEnumerable<String>) |
Add a key and a list of translations separated by semi-colon. |
Add(String, IReadOnlyDictionary<Object,DescribeAttribute>) |
Adds value from dictionary under object if enumeration and prefix;object otherwise. |
Add(String, IReadOnlyDictionary<Object,TermsAttribute>) |
Adds values from dictionary separated by semi-colons under object if enumeration and prefix;object otherwise. |
Add(String, IReadOnlyDictionary<TemplateUsage,TemplateAttribute>) |
Adds patterns from template separated by semi-colons under prefix;usage. |
Add(String, String) |
Add a key and its translation. |
Add(String, TemplateAttribute) |
Adds patterns from template separated by semi-colons under prefix;usage. |
Load(IDictionaryEnumerator, IEnumerable<String>, IEnumerable<String>) |
Load the localizer from a stream. |
Lookup(String, String) |
Translate a key to a translation. |
LookupDictionary(String, IDictionary<Object,DescribeAttribute>) |
Look up prefix;object from dictionary and replace value from localizer. |
LookupDictionary(String, IDictionary<Object,TermsAttribute>) |
Look up prefix;object from dictionary and replace values from localizer. |
LookupTemplates(String, IDictionary<TemplateUsage,TemplateAttribute>) |
Looks up prefix;usage and replace patterns in template from localizer. |
LookupValues(String, String[]) |
Translate a key to an array of values. |
Remove(String) |
Remove a key from the localizer. |
Save(IResourceWriter) |
Save localizer resources to stream. |