[MGNLUI-5881] I18n not working for OptionListDefinition Created: 19/May/20  Updated: 22/Apr/21  Resolved: 29/Jul/20

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

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Roman Kovařík
Resolution: Done Votes: 1
Labels: 62-UI-1, 622
Remaining Estimate: Not Specified
Time Spent: 2h 1m
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causality
dependency
is depended upon by MGNLEESOLR-144 Replace hardcoded comboBoxField optio... Open
duplicate
duplicates MGNLUI-6040 Dynamic generated contentType based a... Open
duplicates PAGES-317 I18n is not working for radio buttons... Closed
relation
supersession
supersedes MGNLUI-5083 Resource bundle ignored on switchable... 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
Release notes required:
Yes
Documentation update required:
Yes
Date of First Response:
Epic Link: UI framework: forms, dialogs, content editing
Sprint: UI FW 7
Story Points: 3

 Description   

Having the following combo box field, it doesn't get the i18n values from the i18n properties file:

form:
  properties:
    comboSelect:
      label: Prefix
      $type: comboBoxField
      datasource:
        $type: optionListDatasource
        options:
          - name: MRName
            value: mr
            label: test.myCustomLabel.mr
          - name: MRSName
            value: mrs
            label: test.myCustomLabel.ms

Property file defined on {/test/src/main/resources/test/i18n/module-test-messages_en.properties}} contains the keys and values.

It doesn't work even trying:

  • comboSelect.datasource.options.mr= Mr
  • comboSelect.options.mr= Mr

In Magnolia 5.7.6 all the options mentioned above are working properly.



 Comments   
Comment by Roman Kovařík [ 28/May/20 ]

Developer notes:

  • DatasourceDefinition is not marked as @I18nable
  • Although is not makes no sense for any datasource, its required at least by OptionListDefinition
  • i18n mechanism doesn't allow to mark only OptionListDefinition as @I18nable since it sees only interface DatasourceDefinition AbstractSelectFieldDefinition#getDatasource
Comment by Sebastian Bauch [ 18/Jun/20 ]

Hi Roman,

 

do you have an estimated fix-version for that bug?

 

Kind regards,

Sebastian

Comment by Roman Kovařík [ 18/Jun/20 ]

Hi Sebastian,

my rough estimate would be 6.2.2 or 6.2.3.

Roman

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