Jaa


How to Remove a Language from a Catalog

You can remove a language from a catalog. If you remove the language scope, the system will remove the language from the catalog but not from the Catalog System. For more information about the language scope, see How to Manage Multilingual Catalogs.

To remove a language from a catalog

  1. Use one of the GetCatalog methods on the CatalogContext object to get the specified catalog.

  2. Use the RemoveLanguage method on the ProductCatalog object to remove the specified language from the catalog.

  3. Save the changes to the Catalog System.

Example

The following example adds a language to a catalog. It first gets the "Books" catalog. It then removes German from the catalog and saves the changes to the Catalog System.

public static void AddNewLanguage(CatalogContext context)
{
    // Get the "Books" catalog.
    ProductCatalog catalog = (ProductCatalog)context.GetCatalog("Books");
    
    // Remove German from the catalog.
    catalog.RemoveLanguage("de-DE");

    // Save the changes.
    catalog.Save();
}

See Also

Other Resources

How to Manage Multilingual Catalogs

Managing International Catalogs