Gets a compiled resource file for a specific language and portal. This takes the original resource file and overwrites it with any keys found in localized and overridden resource files according to .net and DNN rules.

Namespace: DotNetNuke.Services.Localization
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
Dictionary<string, string> GetCompiledResourceFile(
	PortalSettings portalSettings,
	string resourceFile,
	string locale
)
Visual Basic
Function GetCompiledResourceFile ( 
	portalSettings As PortalSettings,
	resourceFile As String,
	locale As String
) As Dictionary(Of String, String)

Parameters

portalSettings
Type: DotNetNuke.Entities.Portals..::..PortalSettings
The portal settings for the requesting portal. Only used to retrieve PortalId and DefaultLanguage.
resourceFile
Type: System..::..String
The resource file to be retrieved. Relative path from DNN's root starting with /.
locale
Type: System..::..String
The requested locale. You should use the thread locale by default.

Return Value

Dictionary of key value pairs where the keys are the localization keys and the values the localized texts.

See Also