Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.IO.Localization Class

This class provides access to the localization data provider. The localization data provider sets all access methods (like Load, SaveAsync, etc.) during application startup.

These methods should never be called by applications. They are intended for framework use only and some specialized modules that edit or display localization resources.

All properties must be provided by a localization data provider during application startup. The properties in this class provide access to the localization data provider. A localization data provider must be accessed through members of this class ONLY.

The localization data provider is truly plug and play. The default package YetaWF.DataProvider.Localization implements management of the localization files in the .\Localization and .\LocalizationCustom folders. By replacing the package with another that provides equivalent functionality through the Load, SaveAsync, etc. properties, a different repository could be used.

Namespace: YetaWF.Core.IO
Assembly: YetaWF.Core

Inheritance

Syntax

public static class Localization;

Constructors

This class cannot be instantiated.

Properties

PublicStaticClearPackageDataAsyncRemove/clear all package (Package) specific localization resources for the specified language (string).
PublicStaticGetFilesAsyncRetrieves the files for package (Package) specific localization resources (YetaWF.Core.Localize.LocalizationData) for a specific Type (string). Specify (bool) true to get real files names, false for file names without extension.
PublicStaticLoadA method that loads package specific localization resources (Package) for a specific Type (string) from the specified location (Location) and returns a YetaWF.Core.Localize.LocalizationData object.
PublicStaticSaveAsyncA method that saves package (Package) specific localization resources (YetaWF.Core.Localize.LocalizationData) for a specific Type (string) to the specified location (Location).

Methods

PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

Enums

ProtectedLocation(not specified)

See Also YetaWF.Core Overview