Hi,
Thank you for contacting us. We will update the KB. In the mean time you can use this sample query for future reference:
declare @oldDefaultLangId int
declare @newDefaultLangId int
set @oldDefaultLangId = 14
set @newDefaultLangId = 9
-- Convert pages
Update sf_PageContentBase set LangID = @oldDefaultLangId where LangID = 127 and ItemType = 'CmsPageContent'
Update sf_PageContentBase set LangID = 127 where LangID = @newDefaultLangId and ItemType = 'CmsPageContent'
Update sf_CmsPageContent set LangID = @oldDefaultLangId where LangID = 127
Update sf_CmsPageContent set LangID = 127 where LangID = @newDefaultLangId
Update sf_StagedPageContent set LangID = @oldDefaultLangId where LangID = 127 and ID in (select ID from sf_PageContentBase where ItemType = 'CmsPageContent')
Update sf_StagedPageContent set LangID = 127 where LangID = @newDefaultLangId and ID in (select ID from sf_PageContentBase where ItemType = 'CmsPageContent')
Update sf_CmsCtrlLinks set LangID = @oldDefaultLangId where LangID = 127 and PageID in (select ID from sf_PageContentBase where ItemType = 'CmsPageContent')
Update sf_CmsCtrlLinks set LangID = 127 where LangID = @newDefaultLangId and PageID in (select ID from sf_PageContentBase where ItemType = 'CmsPageContent')
Update sf_StagedCtrlLinks set LangID = @oldDefaultLangId where LangID = 127 and PageID in (select ID from sf_PageContentBase where ItemType = 'CmsPageContent')
Update sf_StagedCtrlLinks set LangID = 127 where LangID = @newDefaultLangId and PageID in (select ID from sf_PageContentBase where ItemType = 'CmsPageContent')
-- Convert generic content items.
-- You should run this script if you have generic content modules with enabled localization in the web.config.
-- In the IN clause specify the application names of the generic content providers with content with allowLocalization attribute set to true.
-- For example: '/', '/News'
Update sf_GCMetaData set LangID = @oldDefaultLangId where LangID = 127 and Application in ('/', '/News')
Update sf_GCMetaData set LangID = 127 where LangID = @newDefaultLangId and Application in ('/', '/News')
Update sf_CmsContentVersion set LangID = @oldDefaultLangId where LangID = 127 and Application in ('/', '/News')
Update sf_CmsContentVersion set LangID = 127 where LangID = 9 and Application in ('/', '/News')
Update sf_CmsTextContent set Culture = @oldDefaultLangId where Culture = 127 and Application in ('/', '/News')
Update sf_CmsTextContent set Culture = 127 where Culture = @newDefaultLangId and Application in ('/', '/News')
Update sf_VersionItem set CultureID = @oldDefaultLangId where CultureID = 127 and Application in ('/', '/News')
Update sf_VersionItem set CultureID = 127 where CultureID = @newDefaultLangId and Application in ('/', '/News')
Update sf_VrsTxtData set CultureID = @oldDefaultLangId where CultureID = 127 and Application in ('/', '/News')
Update sf_VrsTxtData set CultureID = 127 where CultureID = @newDefaultLangId and Application in ('/', '/News')
Update sf_VrsBinData set CultureID = @oldDefaultLangId where CultureID = 127 and Application in ('/', '/News')
Update sf_VrsBinData set CultureID = 127 where CultureID = @newDefaultLangId and Application in ('/', '/News')
All the best,
Radoslav Georgiev
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the
Telerik Public Issue Tracking system and vote to affect the priority of the items