TreeProviderChangeSiteDefaultCulture Method (String, String, String) |
Changes default culture of the site. Removes old culture from the site and adds the new one. Changes culture of the documents in the old culture to the new one.
Doesn't handle collisions of existing documents in new culture.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntax public virtual void ChangeSiteDefaultCulture(
string siteName,
string newCultureCode,
string oldCultureCode
)
Parameters
- siteName
- Type: SystemString
Site name - newCultureCode
- Type: SystemString
New default culture code - oldCultureCode
- Type: SystemString
Old default culture code
See Also