0
votes

Was requested by the client a new language to add to the project in sitecore. I'm having some issues with that,

I've created the language, however all the renderings are empty for the new language. There's no version assigned to any item for the new language also.

I tried to do a trick that was to export the English language and open the generated xml file and rename the tags , to the requested language and then import. But when I'm trying to import it, shows as I was importing English language and not the new one.

How can I create a new language with all the renderings and content (even if it goes to english when empty string, I know it's default procedure) ?

Thanks

1

1 Answers

0
votes

You can use Powershell script for that.

See e.g. this blog http://www.coreblimeysitecore.com/blog/create-language-versions-using-sitecore-powershell/

Sample code is

Add-ItemLanguage -Path "master:\sitecore\content" -Language "en" -TargetLanguage "de-AT","de-de","en-za","fi-fi","fr-be","it-it","pl-pl","ru-ru","sv-se","fr-fr" -IfExist OverwriteLatest  -IgnoredFields ""

And here is a very similar question on http://sitecore.stackexchange.com site:

https://sitecore.stackexchange.com/questions/1584/create-new-language-version-for-content-branch