Translatable content type fields (MGNLUI-4570)

[MGNLUI-4572] Check i18n setting with composite and repeatable groups Created: 06/Aug/18  Updated: 29/Aug/18  Resolved: 14/Aug/18

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0

Type: Sub-task Priority: Neutral
Reporter: Mikaël Geljić Assignee: Oanh Thai Hoang
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: 1h
Time Spent: 5d
Original Estimate: Not Specified

Template:
Sprint: Saigon 151

 Description   

Composite models:

Setting i18n to true on a CompositeField is irrelevant (should have no effect); set it on the sub-field(s) instead.

Given the model below, let's consider two use cases for composite groups:

model:
  properties:
    - "name"
    - "position"
      type: Job
  subModels:
    "Job":
      properties:
        - "title"
        - "organization"

A. Enable `i18n` on the position property

* mika
  - name: Mika 
  * position_fr
    - title: Ingénieur Logiciel
    - organization: Magnolia International     # assuming we don't really translate organization name, but here we could
  * position_hr
    - title: Softverski Inženjer
    - organization: Magnolia International

B. Enable `i18n` on the title property

* mika
  - name: Mika 
  * position
    - title_fr: Ingénieur Logiciel
    - title_hr: Softverski Inženjer
    - organization: Magnolia International     # common for all languages here

https://jira.magnolia-cms.com/browse/MGNLCT-24?focusedCommentId=165212&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-165212

Multivalue properties:

since MGNLUI-3169, we support both use cases:

  • i18n set to true on a MultiField: stores a different set of entries per locale. No need to enable i18n on sub-fields (would be redundant).
  • i18n set to false on a MultiField: stores a single set of entries. Entries may be translated 1-to-1 by setting i18n to true on sub-fields.

See also MGNLUI-3610, MGNLUI-3633


Generated at Mon Feb 12 09:17:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.