Class LocalizationController
Inheritance
System.Object
LocalizationController
Implements
Inherited Members
Namespace: Dnn.PersonaBar.Library.Controllers
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public class LocalizationController : ServiceLocator<ILocalizationController, LocalizationController>, ILocalizationController
Fields
| Improve this Doc View SourceFiveMinutes
Declaration
public static readonly TimeSpan FiveMinutes
Field Value
Type | Description |
---|---|
TimeSpan |
OneHour
Declaration
public static readonly TimeSpan OneHour
Field Value
Type | Description |
---|---|
TimeSpan |
Properties
| Improve this Doc View SourceCultureName
Declaration
public string CultureName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetFactory()
Gets the service locator factory.
Declaration
protected override Func<ILocalizationController> GetFactory()
Returns
Type | Description |
---|---|
Func<ILocalizationController> | A factory function. |
Overrides
DotNetNuke.Framework.ServiceLocator<Dnn.PersonaBar.Library.Controllers.ILocalizationController, Dnn.PersonaBar.Library.Controllers.LocalizationController>.GetFactory()
|
Improve this Doc
View Source
GetLocalizedDictionary(String, String, Localization)
Declaration
public Dictionary<string, string> GetLocalizedDictionary(string resourceFile, string culture, Localization localization)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceFile | |
System.String | culture | |
Localization | localization |
Returns
Type | Description |
---|---|
Dictionary<System.String, System.String> |
GetLocalizedDictionary(String, String)
Returns a dictionary of localized key for a resource file for a given culture.
Declaration
public Dictionary<string, string> GetLocalizedDictionary(string resourceFile, string culture)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceFile | The relative file path of the main resource file, e.g. |
System.String | culture | The culture for which this dictionary is requested. |
Returns
Type | Description |
---|---|
Dictionary<System.String, System.String> | A dictionary of keys and values. |
Remarks
This API does not fallback to any other DNN resource files.
GetResxTimeStamp(String, Localization)
Declaration
public long GetResxTimeStamp(string resourceFile, Localization localization)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceFile | |
Localization | localization |
Returns
Type | Description |
---|---|
System.Int64 |