Interface ILocalizer

Interface for Localizer objects


public abstract interface ILocalizer

Interface Members

MemberDescription

AddResourcePath

Add an additional resource path to the localizer. The MainResourceFile for this path will be added to the language dictionary, and any additional culture resource that matches the current UI culture will also be added, if it exists.

public void AddResourcePath(IResourcePath resourcePath);

ChangeCulture

Change the current culture of the localizer to the passed in culture. This changes only the culture settings used for formatting and in calculations where culture is important.

public bool ChangeCulture(string culture);

GetLocalizedEnumMembers

Gets an IEnumerable containing a LocalizedEnumMember for each value of the passed enum type.

public IEnumerable<ILocalizedEnumMember> GetLocalizedEnumMembers(Type enumType);

AvailableCultures

A list of available cultures for the CurrentCulture setting.

AvailableLanguages

A list of available languages based on resource files available.

CurrentCulture

The current culture of the localizer.

IsDefaultCulture

True if the current culture matches the culture set in Windows Regional Settings.

LanguageResources

A ResourceDictionary containing the language resources for the current UI culture.

Requirements

Namespace: Stonefield.Localization
Assembly: interfaces.dll