November Happy Hour will be moved to Thursday December 5th.

Class CatalogLanguageLoader

Inheritance
System.Object
CatalogLanguageLoader
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Catalog.Provider.Construction
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public class CatalogLanguageLoader

Constructors

CatalogLanguageLoader(ICatalogSystem)

Initializes a new instance of the CatalogLanguageLoader class.

Declaration
public CatalogLanguageLoader(ICatalogSystem catalogContext)
Parameters
Type Name Description
ICatalogSystem catalogContext

The catalog context.

Methods

GetAdditionalLanguages(CatalogDto)

Declaration
protected virtual IEnumerable<string> GetAdditionalLanguages(CatalogDto catalogDto)
Parameters
Type Name Description
CatalogDto catalogDto
Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

GetMasterLanguage(CatalogDto)

Declaration
protected virtual string GetMasterLanguage(CatalogDto catalogDto)
Parameters
Type Name Description
CatalogDto catalogDto
Returns
Type Description
System.String

VerifyLanguageSetup(CatalogContentBase, String, Int32)

Verifies the language setup so that the language of the content is one of the available languages of the catalog, and also that the master language and available languages are set.

Declaration
public virtual void VerifyLanguageSetup(CatalogContentBase content, string language, int catalogId)
Parameters
Type Name Description
CatalogContentBase content

The content.

System.String language

The preferred language, or null for master language.

System.Int32 catalogId

The catalog id.