Show / Hide Table of Contents

Interface ILocalizationController

Namespace: Dnn.PersonaBar.Library.Controllers
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public interface ILocalizationController

Properties

CultureName

Declaration
string CultureName { get; }
Property Value
Type Description
string

Methods

GetLocalizedDictionary(string, string)

Returns a dictionary of localized key for a resource file for a given culture.

Declaration
Dictionary<string, string> GetLocalizedDictionary(string resourceFile, string culture)
Parameters
Type Name Description
string resourceFile

The relative file path of the main resource file, e.g. ~/DesktopModules/SocialLibrary/App_LocalResources/CmxResources.resx.

string culture

The culture for which this dictionary is requested.

Returns
Type Description
Dictionary<string, string>

A dictionary of keys and values.

Remarks

This API does not fallback to any other DNN resource files.

GetLocalizedDictionary(string, string, Localization)

Declaration
Dictionary<string, string> GetLocalizedDictionary(string resourceFile, string culture, Localization localization)
Parameters
Type Name Description
string resourceFile
string culture
Localization localization
Returns
Type Description
Dictionary<string, string>

GetResxTimeStamp(string, Localization)

Declaration
long GetResxTimeStamp(string resourceFile, Localization localization)
Parameters
Type Name Description
string resourceFile
Localization localization
Returns
Type Description
long

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS