From version 1.1
edited by Marius Dumitru Florea
on 2019/09/10 10:23
To version 2.1
edited by Marius Dumitru Florea
on 2019/09/10 10:26
Change comment: There is no comment for this version

Summary

Details

ExtensionCode.ExtensionClass[0]
Description
... ... @@ -1,9 +1,9 @@
1 -The following script is useful in case you have set a wrong default language in the Localization administration section. It will help you fix the default language meta data of the pages that were created with the wrong default language.
1 +The following script is useful in case you have set a wrong default language in the Localization administration section. It will help you fix the default language meta data of the pages that were created with the wrong default language. Make sure you update the value of the ##oldDefaultLocale## and ##newDefaultLocale## variables to match your needs.
2 2  
3 3  {{code language="none"}}
4 4  {{velocity}}
5 -#set ($oldDefaultLocale = 'en')
6 -#set ($newDefaultLocale = 'ro')
5 +#set ($oldDefaultLocale = 'xx')
6 +#set ($newDefaultLocale = 'yy')
7 7  #set ($matchDefaultLocale = 'doc.translation = 0 and doc.defaultLanguage = :defaultLocale')
8 8  #set ($matchTranslation = 'translation.translation = 1 and translation.language = :locale and doc.fullName = translation.fullName')
9 9  #set ($query = $services.query.xwql("from Document translation where $matchDefaultLocale and $matchTranslation order by doc.space, doc.name"))

Get Connected