Interface ILocaleController
Assembly: DotNetNuke.dll
Syntax
public interface ILocaleController
Methods
ActivateLanguage(int, string, bool)
Declaration
void ActivateLanguage(int portalid, string cultureCode, bool publish)
Parameters
Type |
Name |
Description |
int |
portalid |
|
string |
cultureCode |
|
bool |
publish |
|
CanDeleteLanguage(int)
Declaration
bool CanDeleteLanguage(int languageId)
Parameters
Type |
Name |
Description |
int |
languageId |
|
Returns
GetCultures(Dictionary<string, Locale>)
Declaration
List<CultureInfo> GetCultures(Dictionary<string, Locale> locales)
Parameters
Returns
GetCurrentLocale(int)
Declaration
Locale GetCurrentLocale(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
GetDefaultLocale(int)
Declaration
Locale GetDefaultLocale(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
GetLocale(int)
Declaration
Locale GetLocale(int languageID)
Parameters
Type |
Name |
Description |
int |
languageID |
|
Returns
GetLocale(int, string)
Declaration
Locale GetLocale(int portalID, string code)
Parameters
Type |
Name |
Description |
int |
portalID |
|
string |
code |
|
Returns
GetLocale(string)
Declaration
Locale GetLocale(string code)
Parameters
Type |
Name |
Description |
string |
code |
|
Returns
GetLocaleOrCurrent(int, string)
Declaration
Locale GetLocaleOrCurrent(int portalID, string code)
Parameters
Type |
Name |
Description |
int |
portalID |
|
string |
code |
|
Returns
GetLocales(int)
Declaration
Dictionary<string, Locale> GetLocales(int portalID)
Parameters
Type |
Name |
Description |
int |
portalID |
|
Returns
GetPublishedLocales(int)
Declaration
Dictionary<string, Locale> GetPublishedLocales(int portalID)
Parameters
Type |
Name |
Description |
int |
portalID |
|
Returns
IsDefaultLanguage(string)
Declaration
bool IsDefaultLanguage(string code)
Parameters
Type |
Name |
Description |
string |
code |
|
Returns
IsEnabled(ref string, int)
Declaration
bool IsEnabled(ref string localeCode, int portalId)
Parameters
Type |
Name |
Description |
string |
localeCode |
|
int |
portalId |
|
Returns
PublishLanguage(int, string, bool)
Declaration
void PublishLanguage(int portalid, string cultureCode, bool publish)
Parameters
Type |
Name |
Description |
int |
portalid |
|
string |
cultureCode |
|
bool |
publish |
|
UpdatePortalLocale(Locale)
Declaration
void UpdatePortalLocale(Locale locale)
Parameters
Type |
Name |
Description |
Locale |
locale |
|
Extension Methods