Sets the culture codes on the current Thread
Namespace: DotNetNuke.Services.Localization.InternalAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
void SetThreadCultures( CultureInfo cultureInfo, PortalSettings portalSettings ) |
Visual Basic |
---|
Sub SetThreadCultures ( cultureInfo As CultureInfo, portalSettings As PortalSettings ) |
Parameters
- cultureInfo
- Type: System.Globalization..::..CultureInfo
Culture Info for the current page
- portalSettings
- Type: DotNetNuke.Entities.Portals..::..PortalSettings
The current portalSettings
Remarks
This method will configure the Thread culture codes. Any page which does not derive from PageBase should
be sure to call this method in OnInit to ensure localiztion works correctly. See the TelerikDialogHandler for an example.