How to Remove a Language from a Catalog
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
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
Use one of the GetCatalog methods on the CatalogContext object to get the specified catalog.
Use the RemoveLanguage method on the ProductCatalog object to remove the specified language from the catalog.
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();
}