November Happy Hour will be moved to Thursday December 5th.

Class LocalizationElement

A configuration element within the EPiServer Framework section of web.config.

Inheritance
System.Object
LocalizationElement
Namespace: EPiServer.Framework.Configuration
Assembly: EPiServer.Framework.dll
Version: 10.10.4
Syntax
public class LocalizationElement : ConfigurationElement
Examples
<episerver.framework>
...
<localization fallbackBehavior="FallbackCulture, MissingMessage, Echo" fallbackCulture="en">
<providers>
<add physicalPath="c:\temp\resourceFolder"
   name="customResources"
   type="EPiServer.Framework.Localization.XmlResources.FileXmlLocalizationProvider" />
</providers>
</localization>
...
</episerver.framework>

Constructors

LocalizationElement()

Declaration
public LocalizationElement()

Properties

FallbackBehavior

Gets or sets a value describing the fallback behavior of the LocalizationService if the resource could not be found.

Declaration
public FallbackBehaviors FallbackBehavior { get; set; }
Property Value
Type Description
FallbackBehaviors

The fallback behavior enum value.

Examples
<episerver.framework>
...
<localization fallbackBehavior="FallbackCulture, MissingMessage, Echo" fallbackCulture="en">
<providers>
<add physicalPath="c:\temp\resourceFolder"
   name="customResources"
   type="EPiServer.Framework.Localization.XmlResources.FileXmlLocalizationProvider" />
</providers>
</localization>
...
</episerver.framework>

FallbackCulture

Gets or sets a value describing what fallback culture the LocalizationService should use if the resource could not be found.

Declaration
public CultureInfo FallbackCulture { get; set; }
Property Value
Type Description
System.Globalization.CultureInfo

The fallback culture identifier.

Examples
<episerver.framework>
...
<localization fallbackBehavior="FallbackCulture, MissingMessage, Echo" fallbackCulture="en">
<providers>
<add physicalPath="c:\temp\resourceFolder"
   name="customResources"
   type="EPiServer.Framework.Localization.XmlResources.FileXmlLocalizationProvider" />
</providers>
</localization>
...
</episerver.framework>

Providers

Gets the localization providers that should be used by the ProviderBasedLocalizationService to respond to resource requests.

Declaration
public ProviderSettingsCollection Providers { get; }
Property Value
Type Description
System.Configuration.ProviderSettingsCollection
Examples
<episerver.framework>
...
<localization fallbackBehavior="FallbackCulture, MissingMessage, Echo" fallbackCulture="en">
<providers>
<add physicalPath="c:\temp\resourceFolder"
   name="customResources"
   type="EPiServer.Framework.Localization.XmlResources.FileXmlLocalizationProvider" />
</providers>
</localization>
...
</episerver.framework>

Methods

InitializeWithDefaults()

Declaration
public void InitializeWithDefaults()

Extension Methods