This blog post contains information items, but more importantly languages of items, versions of items in languages, and item revision identifiers in languages of items in the Sitecore ASP.NET web Content Management System (CMS).
Sitecore abstracts storage repositories such as relational databases as hierarchies of items that can contain any type of data. For each item, you can create any number of versions in any number of languages. The existence of an item does not indicate the existence of a version in any language. You do not need to create versions in any language, although Sitecore creates a version in the current content language when you create an item.
You can create versions in languages that you have not registered, but I strongly encourage you to register the languages that you will use in advance. Two benefits of registering languages are that you can iterate the language definition items and that you can apply security to languages. Configure languages under /sitecore/system/Languages.
Sitecore publishes languages individually, meaning that you must first publish an item, a branch of items, or an entire database in one language, and then another; you cannot publish each item in each language before publishing the next item without implementing a custom solution. Publishing ensures that at most one version of each item exists in the publishing target database; only the Master database contains multiple versions. Sitecore uses publishing restrictions including workflow state to determine whether to publish the item and which version to publish in each language.
By default, you can translate each field of an item. If you want all versions of an item in a language to contain a common value, you can designate that field as unversioned. If you want all versions of an item in all languages to contain a common value, you can designate that field as shared.
Multiple versions of an item can be in different states of different workflows at the same time. Be aware (or beware) that Sitecore does not store previous values of shared and unversioned fields, and that publishing a version of an item in a language includes unversioned and shared fields. Put another way, you cannot reverse changes to shared and unversioned fields, and you cannot prevent Sitecore from publishing changes to unversioned and shared fields, which in the case of shared fields can affect versions of items in multiple languages.
Excluding shared and unversioned fields, when you update a field in an item, we almost always update a version in a language within that item. The Fields collection of the Sitecore.Data.Items.Item class exposes the fields in a single language, though the class itself exposes the item and all of its versions in all languages. Changes to unversioned fields apply to all versions of the item in that language; changes to shared fields apply to all versions of the item in all languages. Very few other operations including rename and move apply to the item and all of its versions in all languages.
Unless you pass specific parameters to the relevant APIs, when you update a field, Sitecore updates the revision identifier for that version in that language. While version identifiers are numeric, revision identifiers are GUIDs. Sitecore stores the revision identifier in the Revision (__Revision, Sitecore.FieldIDs.Revision, Sitecore.Data.Items.Item.Statistics.Revision) field in the Statistics section of the standard template. Smart publishing skips items for which the revision identifier in the source database to the revision identifier in the publishing target database do not differ.
If you have additional information about items, languages, versions, and revisions, please comment on this blog post.
Hi John, Would love to see a post with some best practices for dealing with language based security/roles for multi-language sites. Language-read and language-write are useful, but these can't be localised to specific areas of the content tree. There also seems to be a range of custom solutions to implementing language based restrictions on creating, deleting and publishing items - each with their own benefits and drawbacks.
Hi John, Is there any way to add Language Version to multiple Sitecore Item at once?
@Ravi: Not to my knowledge. I think you might be able to do something with Rocks or more likely Powershell.
Sitecore Multilingual Support (part one) www.linkedin.com/.../20141029114837-65892830-sitecore-multilingual-support Sitecore Multilingual Support (part two) www.linkedin.com/.../20141030085800-65892830-sitecore-multilingual-support-part-two Sitecore Multilingual Support (part three) www.linkedin.com/.../20141031124752-65892830-sitecore-multilingual-support-part-three Sitecore Multilingual Support (part four) www.linkedin.com/.../20141103084310-65892830-sitecore-multilingual-support-part-four
When I make new language version (e.g Bulgarian) I create the same page but in BG and it is completely blank. Can I somehow save the content form the English version in the BG one without having to copy paste all the content once again?
Are you sure that you actually want to copy the data (possibly useful during translation), or do you want the Bulgarian version to fall back to the English version (avoiding the data duplication?). For fallback, I would try to wait for Sitecore 8.1, which will include that feature by default. Otherwise, there are some shared source options, but I have not used them so I cannot compare them or comment on their functionality: marketplace.sitecore.net/.../language_fallback.aspx marketplace.sitecore.net/.../Field_Fallback.aspx To actually copy, I think you would need some custom code. These might provide some ideas: sdn.sitecore.net/.../ShowPost.aspx sdn.sitecore.net/.../ShowPost.aspx sdn.sitecore.net/.../ShowPost.aspx
While using tokens fin standard values, i get token value only in en version. If i create an item in en-us the token value is not refelcetd. Do i need to create the SV in every languagage version to get the token value picked by item?
Hi John West,
I'm sharing content on Master Site for site A, when after adding new language the Arabic for site A and Mater Site, After that publish cannot create Item version language the Arabic on DB web( Version exist on DB master).
Do you have any solution to help me?
I'm using Sitecore 8.2 - 170728, SXA 1.5.