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
public static class Localization;
This class cannot be instantiated.
ClearPackageDataAsync | Remove/clear all package (Package) specific localization resources for the specified language (string). | |
GetFilesAsync | Retrieves 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. | |
Load | A 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. | |
SaveAsync | A method that saves package (Package) specific localization resources (YetaWF.Core.Localize.LocalizationData) for a specific Type (string) to the specified location (Location). |
Equals | Determines whether the specified object is equal to the current object. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. | |
GetHashCode | Serves as the default hash function. | |
GetType | Gets the Type of the current instance. | |
MemberwiseClone | Creates a shallow copy of the current Object. | |
ReferenceEquals | Determines whether the specified Object instances are the same instance. | |
ToString | Returns a string that represents the current object. |
Location | (not specified) |
See Also YetaWF.Core Overview
Documentation Feedback
© 2024 - Softel vdm, Inc. - YetaWF.com