Language fallback+translation in Sitecore

Preview:

Citation preview

Translation/ Language Fallback

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

Traducción

Vertaling

Traduction

翻譯

भाषांतर

Tradução

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

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

Topics

Why Language Fallback?• Any idea…?

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.

About Horizontal Integration

Chain of language fallback

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.

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.

Field-level language fallbackDefine on individual fields

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

Dictionary items

Item level fallback is enabled by default on the dictionary template

Configuration + Demo

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

1. Enable fallback on Sites

1. Configuration file:

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

2. AttriibutesenableItemLanugeFallbackenableFieldLanguageFallback

3.

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

Path:Sitecore/System/Languages

Attribute/Field Name:Fallback Language

3. Enable Language Fallback3.1 Enable Item Level Fallback

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

Enforce Version Presence??

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

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.

Website Demo

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

Sitecore.LanguageFallback.config Pipelines- Language Fallback Item

- Field Fallback

Cache SettingIn the Sitecore.LanguageFallback.config file

DefaultCacheSize

Different Cache Sizes on different databases

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.

Transperfect

- Third party , Licensed tool to get translated content

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

- Demo of Configuration

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

Recommended