Skip to content

FallbackLocalTextSource class

namespace: Serenity.Localization   assemblySerenity.Net.Core

Adds key fallback behavior to any ILocalTextRegistry implementation.

public class FallbackLocalTextSource : ILocalTextRegistry
parameter description
source The local text source.

Public Members

name description
FallbackLocalTextSource(…) Adds key fallback behavior to any ILocalTextRegistry implementation.
Add(…) Adds a local text entry to the registry.
TryGet(…) Returns the localized representation that corresponds to the local text key, or a fallback if none is found in the registry.
static BreakUpString(…) Breaks up a string without spaces (e.g. LastDirectoryUpdate) into a normal string (e.g. 'Last Directory Update').
static TryGetKeyFallback(…) Gets a fallback of the local text key.

Remarks

Initializes a new instance of the FallbackLocalTextSource class.

See Also