[MGNLUI-5083] Resource bundle ignored on switchable field's option labels Created: 15/Mar/19  Updated: 05/Mar/21  Resolved: 05/Mar/21

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

Type: Bug Priority: Major
Reporter: Chris Jennings Assignee: Unassigned
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2019-03-15 at 16.22.47.png    
Issue Links:
supersession
is superseded by MGNLUI-5881 I18n not working for OptionListDefini... 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
Date of First Response:

 Description   

I have created a dialog inside a content app that uses a switchable field. This is a PoC for a client that needs a multi-lingual UI so I am using a resource bundle to load the field labels.

The rest of the bundle is is working fine but the labels on the switchable field's options are not. Whichever language is first used to view the field after restarting the server becomes "stuck" as the label for these options.

 - name: department
  class: info.magnolia.ui.form.field.definition.SwitchableFieldDefinition
  transformerClass: info.magnolia.ui.form.field.transformer.composite.DelegatingCompositeFieldTransformer
  options:
    - name: myDepartment
      selected: true
      value: myDepartment
    - name: entireUniversity
      value: entireUniversity
    - name: anotherDepartment
      value: anotherDepartment
events.audience.department.options.myDepartment = min avdelning
events.audience.department.options.entireUniversity = hela universitetet
events.audience.department.options.anotherDepartment = en annan avdelning
events.audience.department.options.myDepartment = My department
events.audience.department.myDepartment.myDepartmentName.label = Your department
events.audience.department.options.anotherDepartment = Another department


 Comments   
Comment by Mareike Schulz [ 25/Mar/19 ]

This issue could be linked with https://jira.magnolia-cms.com/browse/MGNLUI-5100.

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