Class LocalizationManager
Inheritance
Inherited Members
Namespace: Mediachase.BusinessFoundation.Data.Modules
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2Syntax
public static class LocalizationManager
Fields
CurrentCultureProperty
Declaration
public const string CurrentCultureProperty = "McLocalization_CurrentCulture"
Field Value
Type | Description |
---|---|
System.String |
InstalledLanguagesProperty
Declaration
public const string InstalledLanguagesProperty = "InstalledLanguages"
Field Value
Type | Description |
---|---|
System.String |
LanguageContainerName
Declaration
public const string LanguageContainerName = "InstalledLanguage"
Field Value
Type | Description |
---|---|
System.String |
LocalizableFieldContainerName
Declaration
public const string LocalizableFieldContainerName = "LocalizableField"
Field Value
Type | Description |
---|---|
System.String |
LocalizableFieldsProperty
Declaration
public const string LocalizableFieldsProperty = "LocalizableFields"
Field Value
Type | Description |
---|---|
System.String |
ModuleFriendlyName
Declaration
public const string ModuleFriendlyName = "McLocalization"
Field Value
Type | Description |
---|---|
System.String |
ModuleName
Declaration
public const string ModuleName = "McLocalization"
Field Value
Type | Description |
---|---|
System.String |
Properties
CurrentCulture
Gets or sets the current culture.
Declaration
public static string CurrentCulture { get; set; }
Property Value
Type | Description |
---|---|
System.String | The current culture. |
Methods
ActivateFieldLocalization(MetaField)
Activates the field localization.
Declaration
public static void ActivateFieldLocalization(MetaField metaField)
Parameters
Type | Name | Description |
---|---|---|
MetaField | metaField | The meta field. |
ActivateFieldLocalization(String, String)
Activates the field localization.
Declaration
public static void ActivateFieldLocalization(string metaClass, string metaField)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClass | The meta class. |
System.String | metaField | The meta field. |
CheckLanguageName(String)
Checks the name of the language.
Declaration
public static bool CheckLanguageName(string languageName)
Parameters
Type | Name | Description |
---|---|---|
System.String | languageName | Name of the language. |
Returns
Type | Description |
---|---|
System.Boolean |
CopyLocalizableToNeutral(EntityObject)
Copies propertie value from the localizable to neutral.
Declaration
public static void CopyLocalizableToNeutral(EntityObject entity)
Parameters
Type | Name | Description |
---|---|---|
EntityObject | entity | The entity. |
CopyNeutralToLocalizable(EntityObject)
Copies propertie value from the neutral to localizable.
Declaration
public static void CopyNeutralToLocalizable(EntityObject entity)
Parameters
Type | Name | Description |
---|---|---|
EntityObject | entity | The entity. |
CreateModuleManifest()
Creates the module manifest.
Declaration
public static ModuleManifest CreateModuleManifest()
Returns
Type | Description |
---|---|
ModuleManifest |
DeactivateFieldLocalization(MetaField)
Deactivates the field localization.
Declaration
public static void DeactivateFieldLocalization(MetaField metaField)
Parameters
Type | Name | Description |
---|---|---|
MetaField | metaField | The meta field. |
DeactivateFieldLocalization(String, String)
Deactivates the field localization.
Declaration
public static void DeactivateFieldLocalization(string metaClass, string metaField)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClass | The meta class. |
System.String | metaField | The meta field. |
GetInstalledLanguageCultureInfos()
Gets the array of installed language culture information.
Declaration
public static CultureInfo[] GetInstalledLanguageCultureInfos()
Returns
Type | Description |
---|---|
System.Globalization.CultureInfo[] |
GetInstalledLanguages()
Gets the installed languages.
Declaration
public static string[] GetInstalledLanguages()
Returns
Type | Description |
---|---|
System.String[] |
GetLanguageCultureInfo(String)
Gets the language culture info.
Declaration
public static CultureInfo GetLanguageCultureInfo(string cultureInfoName)
Parameters
Type | Name | Description |
---|---|---|
System.String | cultureInfoName | Name of the culture info. |
Returns
Type | Description |
---|---|
System.Globalization.CultureInfo |
GetLanguageFieldName(CultureInfo, String)
Gets the name of the language field.
Declaration
public static string GetLanguageFieldName(CultureInfo cultureInfo, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | cultureInfo | The culture info. |
System.String | fieldName | Name of the field. |
Returns
Type | Description |
---|---|
System.String |
GetLanguageFieldName(String, String)
Gets the name of the language field.
Declaration
public static string GetLanguageFieldName(string cultureInfoName, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
System.String | cultureInfoName | Name of the culture info. |
System.String | fieldName | Name of the field. |
Returns
Type | Description |
---|---|
System.String |
GetLanguageSuffix(CultureInfo)
Gets the language suffix.
Declaration
public static string GetLanguageSuffix(CultureInfo cultureInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | cultureInfo | The culture info. |
Returns
Type | Description |
---|---|
System.String |
GetLanguageSuffix(String)
Gets the language suffix.
Declaration
public static string GetLanguageSuffix(string cultureInfoName)
Parameters
Type | Name | Description |
---|---|---|
System.String | cultureInfoName | Name of the culture info. |
Returns
Type | Description |
---|---|
System.String |
GetLocalizableFields(MetaClass)
Gets the localizable fields.
Declaration
public static MetaField[] GetLocalizableFields(MetaClass metaClass)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
Returns
Type | Description |
---|---|
MetaField[] |
GetLocalizableFields(String)
Gets the localizable fields.
Declaration
public static string[] GetLocalizableFields(string metaClass)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClass | The meta class. |
Returns
Type | Description |
---|---|
System.String[] |
InstallLanguage(String)
Installs the language.
Declaration
public static void InstallLanguage(string cultureInfoName)
Parameters
Type | Name | Description |
---|---|---|
System.String | cultureInfoName | Name of the culture info. |
IsFieldLocalizable(MetaField)
Determines whether [is field localizable] [the specified meta field].
Declaration
public static bool IsFieldLocalizable(MetaField metaField)
Parameters
Type | Name | Description |
---|---|---|
MetaField | metaField | The meta field. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsFieldLocalizable(String, String)
Determines whether [is field localizable] [the specified meta class].
Declaration
public static bool IsFieldLocalizable(string metaClass, string metaField)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClass | The meta class. |
System.String | metaField | The meta field. |
Returns
Type | Description |
---|---|
System.Boolean |
|
UninstallLanguage(String)
Uninstalls the language.
Declaration
public static void UninstallLanguage(string cultureInfoName)
Parameters
Type | Name | Description |
---|---|---|
System.String | cultureInfoName | Name of the culture info. |