Show / Hide Table of Contents

Class LocaleController

Inheritance
object
ComponentBase<ILocaleController, LocaleController>
LocaleController
Implements
ILocaleController
Inherited Members
ComponentBase<ILocaleController, LocaleController>.RegisterInstance(ILocaleController)
ComponentBase<ILocaleController, LocaleController>.Instance
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Services.Localization
Assembly: DotNetNuke.dll
Syntax
public class LocaleController : ComponentBase<ILocaleController, LocaleController>, ILocaleController

Constructors

LocaleController()

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IHostSettings. Scheduled removal in v12.0.0.")]
public LocaleController()

LocaleController(IHostSettings, IApplicationStatusInfo, DataProvider, IPortalController, ITabController, IUserController, IPackageController)

Declaration
public LocaleController(IHostSettings hostSettings, IApplicationStatusInfo appStatus, DataProvider dataProvider, IPortalController portalController, ITabController tabController, IUserController userController, IPackageController packageController)
Parameters
Type Name Description
IHostSettings hostSettings
IApplicationStatusInfo appStatus
DataProvider dataProvider
IPortalController portalController
ITabController tabController
IUserController userController
IPackageController packageController

Methods

ActivateLanguage(int, string, bool)

Declaration
public void ActivateLanguage(int portalid, string cultureCode, bool publish)
Parameters
Type Name Description
int portalid
string cultureCode
bool publish

CanDeleteLanguage(int)

Declaration
public bool CanDeleteLanguage(int languageId)
Parameters
Type Name Description
int languageId
Returns
Type Description
bool

GetCultures(Dictionary<string, Locale>)

Declaration
public List<CultureInfo> GetCultures(Dictionary<string, Locale> locales)
Parameters
Type Name Description
Dictionary<string, Locale> locales
Returns
Type Description
List<CultureInfo>

GetCurrentLocale(int)

Declaration
public Locale GetCurrentLocale(int portalId)
Parameters
Type Name Description
int portalId
Returns
Type Description
Locale

GetDefaultLocale(int)

Declaration
public Locale GetDefaultLocale(int portalId)
Parameters
Type Name Description
int portalId
Returns
Type Description
Locale

GetLocale(int)

Declaration
public Locale GetLocale(int languageID)
Parameters
Type Name Description
int languageID
Returns
Type Description
Locale

GetLocale(int, string)

Declaration
public Locale GetLocale(int portalID, string code)
Parameters
Type Name Description
int portalID
string code
Returns
Type Description
Locale

GetLocale(string)

Declaration
public Locale GetLocale(string code)
Parameters
Type Name Description
string code
Returns
Type Description
Locale

GetLocaleOrCurrent(int, string)

Declaration
public Locale GetLocaleOrCurrent(int portalID, string code)
Parameters
Type Name Description
int portalID
string code
Returns
Type Description
Locale

GetLocales(int)

Declaration
public Dictionary<string, Locale> GetLocales(int portalID)
Parameters
Type Name Description
int portalID
Returns
Type Description
Dictionary<string, Locale>

GetPublishedLocales(int)

Declaration
public Dictionary<string, Locale> GetPublishedLocales(int portalID)
Parameters
Type Name Description
int portalID
Returns
Type Description
Dictionary<string, Locale>

IsDefaultLanguage(string)

Declaration
public bool IsDefaultLanguage(string code)
Parameters
Type Name Description
string code
Returns
Type Description
bool

IsEnabled(ref string, int)

Declaration
public bool IsEnabled(ref string localeCode, int portalId)
Parameters
Type Name Description
string localeCode
int portalId
Returns
Type Description
bool

IsValidCultureName(string)

Declaration
public static bool IsValidCultureName(string name)
Parameters
Type Name Description
string name
Returns
Type Description
bool

PublishLanguage(int, string, bool)

Declaration
public void PublishLanguage(int portalid, string cultureCode, bool publish)
Parameters
Type Name Description
int portalid
string cultureCode
bool publish

UpdatePortalLocale(Locale)

Declaration
public void UpdatePortalLocale(Locale locale)
Parameters
Type Name Description
Locale locale

Implements

ILocaleController

Extension Methods

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