[LIVECOPY-254] Investigate: Default language with two letter indicator Created: 11/Mar/21  Updated: 19/Aug/21  Resolved: 12/Aug/21

Status: Closed
Project: Live Copy
Component/s: None
Affects Version/s: 3.2.2
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Quach Hao Thien
Resolution: Done Votes: 0
Labels: VN-Analysis, cm-team-support, maintenance
Remaining Estimate: Not Specified
Time Spent: 5d 10m
Original Estimate: Not Specified

Attachments: PNG File image-2021-08-12-11-57-00-280.png     PNG File image-2021-08-12-11-59-46-150.png     PNG File image-2021-08-12-14-14-37-392.png     PNG File travellc-about-page-props.png    
Issue Links:
documentation
to be documented by LIVECOPY-286 DOC: To support only one locale in LC... Closed
relation
is related to LIVECOPY-255 Localized content from the delivery e... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Documentation update required:
Yes
Date of First Response:
Epic Link: Live Copy maintenance
Sprint: Maintenance 49, Content Mngmt 10
Story Points: 5

 Description   

Let's say I have a site with 5 languages (single-tree-multilanguage). I want to make a live copy of each of those languages, so 5 slaves of the master which has five languages. In each slave I only want to serve and edit a single language.

English occupies the default position and I'm editing one of the slave sites. Since I made a live copy the english defaults will show in my slave sites for properties which don't have a translation. This makes for a confusing editing experience. If I am editing one of the slave (single language) sites I don't want any fallback to another language.

The problem comes in because my translations are all on properties which have a two letter lang code. If any values are found on properties without a lang code (the default) then they will be shown in the dialogs of all the slaves.

I attempted to workaround this problem. I tried exporting the site to excel using content translation app. I rearranged the columns to change the defaults and reimported. This creates an issue for Live Copy because the master has english as default.

The title of this ticket "Default language with two letter indicator" hints towards a proposed solution. We have fallbackLocale configuration option but this isn't doing anything for editing. It's the fallback for when someone requests the site for a language without a translation. I need some setting for default which will prevent the dialogs from falling back.

Reproduce

  • Create a live copy of the travel site
  • Create a site def for the live copy.
    • Duplicate travel
    • Map the live copy site
  • Make the fallbackLocale german for the live copy site def
  • Open /travel/about
  • Use the language selector on the dialog


 Comments   
Comment by Richard Gange [ 23/Mar/21 ]

When I was setting this up it seemed that I should be able to turn off the english by setting enabled to false on the locale configuration.

Comment by Yen Lac Tue [ 24/Mar/21 ]

I tried with reproduce steps on demo author instance( demo instance don’t have Livecopy module) and setting fallbackLocale of travel site to “de” and the bug happen the same when editing travel/about page, and another bug is when switching from German to English, the title does not load

Comment by Quach Hao Thien [ 12/Aug/21 ]

hi rgange, there is a special i18n configuration for LiveCopy site https://docs.magnolia-cms.com/product-docs/6.2/Special-Features/Live-Copy/Live-Copy-module.html#_internationalization, or you can take a look to my site definition for livecopy:

and server configuration:

then result:

Comment by Quach Hao Thien [ 12/Aug/21 ]

in the case you want to support only 1 locale for the LC like de, just remove the other availability locales

Generated at Mon Feb 12 02:26:57 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.