22

Language fallback+translation in Sitecore

Embed Size (px)

Citation preview

Page 1: Language fallback+translation in Sitecore
Page 2: Language fallback+translation in Sitecore

Translation/ Language Fallback

#sitecore #translation #languageFallback #sharedVersion #itemFallback #fieldFallback #thirdPartyTools #Global-Link Transperfect

Traducción

Vertaling

Traduction

翻譯

भाषांतर

Tradução

Översättning अनुवादઅનુવાદ

Page 3: Language fallback+translation in Sitecore

• Why Language Fallback?• What is Language Fallback?• Item Language Fallback• Field Language Fallback• Configurations + Demo• Caching• Bugs• Transperfect

Topics

Page 4: Language fallback+translation in Sitecore

Why Language Fallback?• Any idea…?

Page 5: Language fallback+translation in Sitecore

About Horizontal Integration

What is language fallback• Reuse content from another language or display translated content

• Specify a fallback language for the languages in Sitecore solution and enable language fallback on the relevant items or fields. If a version does not exist in a given language, language fallback activates, and the item or field value is displayed in the fallback language instead.

Page 6: Language fallback+translation in Sitecore

About Horizontal Integration

Chain of language fallback

Page 7: Language fallback+translation in Sitecore

Item-level language fallbackTo set up an 'empty' item.

For example, if your website is in standard English (en) and you want to launch a localized version of the same website for India - Hindi(hi-IN), you enable item-level fallback on the site and set up the language hi-IN to fallback to en. Then you enable item-level fallback on the items or templates that you want to fall back to the standard English version. In this way, there is no actual version in Hindi available, but the fallback version from the language en is available instead.In the Content Editor, in the language drop-down menu, the Hindi version of the item specifies that it is a fallback version.

For the items that you want to localize into Hindi, you create an actual version in the language hi-IN. This will override all fallback functionality that may have been setup on the item.

Page 8: Language fallback+translation in Sitecore

Why Field-level fallback??- What if in a item’s language version, not all fields have its translations.

- What if you want an item to have fallback partially.

Page 9: Language fallback+translation in Sitecore

Field-level language fallbackDefine on individual fields

Which field values to localize and which field values to fall back to another language

Page 10: Language fallback+translation in Sitecore

Dictionary items

Item level fallback is enabled by default on the dictionary template

Page 11: Language fallback+translation in Sitecore

Configuration + Demo

Enable Item-level / Field level fallback on• Sites• Item/Field/Template• Language Definition

Page 12: Language fallback+translation in Sitecore

1. Enable fallback on Sites

1. Configuration file:

\Website\App_Config\Include\Sitecore.LanguageFallback.config

2. AttriibutesenableItemLanugeFallbackenableFieldLanguageFallback

3.

Page 13: Language fallback+translation in Sitecore

2. Fallback on Language DefinitionsEnable the fallback option on Language Definitions item in Sitecore:

Path:Sitecore/System/Languages

Attribute/Field Name:Fallback Language

Page 14: Language fallback+translation in Sitecore

3. Enable Language Fallback3.1 Enable Item Level Fallback

1. Item Template __Standard Values2. Content Tab Advanced Section Enable Item Fallback

Enforce Version Presence??

Page 15: Language fallback+translation in Sitecore

3. Enable Language Fallback3.2 Enable Field Level Fallback1. Item Template Field Definition2. Content Tab Advanced Section Enable field level fallback

Page 16: Language fallback+translation in Sitecore

3. Enable Language FallbackEnable versioned field level fallback

1. To enable language fallback for only the current language version of the field2. Configuration change in Sitecore.LanguageFallback.config file:

<setting name=“LanguageFieldFallback.AllowVaryFallbackSettingsPerLanguage” value=“false”/>

* Read its description just above this setting in the Sitecore.LanguageFallback.config file.

Page 17: Language fallback+translation in Sitecore

Website Demo

1. http://sc81rev151207/2. http://sc81rev151207/sitecore/login

Page 18: Language fallback+translation in Sitecore

Sitecore.LanguageFallback.config Pipelines- Language Fallback Item

- Field Fallback

Page 19: Language fallback+translation in Sitecore

Cache SettingIn the Sitecore.LanguageFallback.config file

DefaultCacheSize

Different Cache Sizes on different databases

Page 20: Language fallback+translation in Sitecore

Known Bugs in the Translations / VersionsField level fallback is not working on Inherited fieldSolution: Patch files are provided by Sitecore Support

Details: https://learnsitecorebasics.wordpress.com/2016/05/15/field-level-fallback-is-not-working-in-inheritance/

Language Fallback - Item package creates items in all versionsSolution: Patch files are provided by Sitecore Support

Display of version count / fallback version is not properSolution:language version number 1 must be exist.

Page 21: Language fallback+translation in Sitecore

Transperfect

- Third party , Licensed tool to get translated content

- Installation:- SQL script as Pre installation- Sitecore Package

- Demo of Configuration

Page 22: Language fallback+translation in Sitecore

Thank you!

Ref:• https://doc.sitecore.net/sitecore_experience_platform/setting_up__maintaining/language_fallback/setting_up/configure_language_fallback• https://doc.sitecore.net/sitecore_experience_platform/setting_up__maintaining/language_fallback/setting_up/enable_and_set_up_language_fallback• https://doc.sitecore.net/sitecore_experience_platform/setting_up__maintaining/language_fallback/language_fallback• http://support.sitecore.net• http://learnsitecorebasics.wordpress.com