[MGNLUI-3479] Language should not be added to checkbox label Created: 29/Jun/15  Updated: 10/Feb/22  Resolved: 09/Feb/22

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

Type: Bug Priority: Neutral
Reporter: Evzen Fochr Assignee: Unassigned
Resolution: Inactive Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2022-02-10-09-16-56-176.png     PNG File screenshot-1.png    
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   

It happens while switching languages in dialogue. DefaultI18NAuthoringSupport.i18nize go inside CheckBoxField component and in block

if (StringUtils.isNotBlank(currentCaption)) {
                                if (formerLocale != null) {
                                    currentCaption = currentCaption.replace(String.format("(%s)", formerLocale.getLanguage()), "");
                                }
                                field.setCaption(String.format("%s (%s)", currentCaption, locale.getLanguage()));
                            }

it add language to CheckBox label (label right of the box).
Possibly solution

  • do not add language if there wasn't before
  • check if formerLocale and locale.getLanguage() because inside component formerLocale is already changed to new value


 Comments   
Comment by Roman Kovařík [ 09/Mar/21 ]

efochr Could you check if this is still the case?

Comment by Evzen Fochr [ 10/Feb/22 ]

Seems fixed

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