Class CatalogLanguageLoader
Inheritance
System.Object
    CatalogLanguageLoader
  Namespace: EPiServer.Commerce.Catalog.Provider.Construction
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0Syntax
public class CatalogLanguageLoader : ObjectConstructors
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. | 
