Class LocaleController
Inheritance
LocaleController
Assembly: DotNetNuke.dll
Syntax
public class LocaleController : ComponentBase<ILocaleController, LocaleController>, ILocaleController
Constructors
LocaleController()
Declaration
public LocaleController()
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
GetCultures(Dictionary<string, Locale>)
Declaration
public List<CultureInfo> GetCultures(Dictionary<string, Locale> locales)
Parameters
Returns
GetCurrentLocale(int)
Declaration
public Locale GetCurrentLocale(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
GetDefaultLocale(int)
Declaration
public Locale GetDefaultLocale(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
GetLocale(int)
Declaration
public Locale GetLocale(int languageID)
Parameters
Type |
Name |
Description |
int |
languageID |
|
Returns
GetLocale(int, string)
Declaration
public Locale GetLocale(int portalID, string code)
Parameters
Type |
Name |
Description |
int |
portalID |
|
string |
code |
|
Returns
GetLocale(string)
Declaration
public Locale GetLocale(string code)
Parameters
Type |
Name |
Description |
string |
code |
|
Returns
GetLocaleOrCurrent(int, string)
Declaration
public Locale GetLocaleOrCurrent(int portalID, string code)
Parameters
Type |
Name |
Description |
int |
portalID |
|
string |
code |
|
Returns
GetLocales(int)
Declaration
public Dictionary<string, Locale> GetLocales(int portalID)
Parameters
Type |
Name |
Description |
int |
portalID |
|
Returns
GetPublishedLocales(int)
Declaration
public Dictionary<string, Locale> GetPublishedLocales(int portalID)
Parameters
Type |
Name |
Description |
int |
portalID |
|
Returns
IsDefaultLanguage(string)
Declaration
public bool IsDefaultLanguage(string code)
Parameters
Type |
Name |
Description |
string |
code |
|
Returns
IsEnabled(ref string, int)
Declaration
public bool IsEnabled(ref string localeCode, int portalId)
Parameters
Type |
Name |
Description |
string |
localeCode |
|
int |
portalId |
|
Returns
IsValidCultureName(string)
Declaration
public static bool IsValidCultureName(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
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
Extension Methods