[MGNLUI-5100] User language preference for linkSwitchableField is not working Created: 25/Mar/19  Updated: 30/Sep/21  Resolved: 30/Sep/21

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

Type: Bug Priority: Major
Reporter: Mareike Schulz Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: y2k
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
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   

Summary:

For a dialog definition we use the MTK /mtk/includes/linkSwitchableField.yaml and use i18n property files for translation - also for the linkType options.
Although we changed the language to English the linktype option label still occurs in German. So it seems, that the i18n preference of the admincentral user is not taken into consideration correctly, but overwritten by what language was chosen first.

 

Steps to reproduce:

Language change from EN to DE

1. Restart Magnolia (language is set to EN)

2. Open dialog with linkSwitchableField

--> All field values are displayed correctly (en):

fields.linkType.label=Link type
fields.linkType.options.page=Internal
fields.page.label=Internal link
fields.linkType.options.external=External
fields.external.label=External link

3. Change user language preference to German, Logout, Login

4. Open dialog with linkSwitchableField again

 --> Correct i18n values (de): 

fields.linkType.label=Linktyp
fields.page.label=Interner Link
fields.external.label=Externer Link

--> Wrong i18n values (en):

fields.linkType.options.page=Internal
fields.linkType.options.external=External

 

 

If the user starts with German user language preference these labels won't change to English after switching user language preference from German (de) to English (en).

 

This bug could be linked to https://jira.magnolia-cms.com/browse/MGNLUI-5083.



 Comments   
Comment by Matthias Neumeister [ 25/Mar/19 ]

(Reporter's colleague) For the sake of completeness, German i18n values were provided in our project in addition to the original English MTK i18n.

Comment by Carlos Cantalapiedra [ 26/Mar/19 ]

Some hints about this issue:

There are a couple of workarounds specified here that may help on finding out what is going on. As a summary:

The first workaround is restarting Tomcat server after changing user language, then, when we log in back in Magnolia, the linkSwitchableField fields are properly translated. 

The second one is a bit weird: after switching user language and logging out, if we logging in back again, search for the yaml dialog which has our  linkSwitchableField, open it for edit on web resources app and just save the file (without making any change: just open for edit and clic on save button) then the linkSwitchableField fields are properly translated.

Hope this could shed some light on this matter.

Comment by Marta Kobus [ 30/Sep/21 ]

Hello,

This ticket is now marked as closed due to one of the following reasons:

  • A long period of inactivity
  • Uses an old or Beta version of an application, module, or framework that we no longer support
  • The issue is no longer reproducible or has been fixed in later versions

If you are still facing a problem or consider this issue still relevant, please feel free to re-open the ticket and we will reach out to you.

 

Thank you,

The Magnolia Team

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