[MGNLUI-3030] Display country code as well as selector in Language chooser in dialogs Created: 24/Jun/14  Updated: 05/Dec/14  Resolved: 15/Jul/14

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.0
Fix Version/s: 5.2.7, 5.3.2

Type: Improvement Priority: Neutral
Reporter: Jan Haderka Assignee: Evzen Fochr
Resolution: Fixed Votes: 0
Labels: support, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MULTISITE-27 Drop-down list of authoring languages... 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)
Date of First Response:

 Description   

Right now if one specifies 2 language variants for his site such as Swiss German (de_ch) and High German (de_de) both are shown in language selector in dialog as "German" only.
This is because info.magnolia.ui.dialog.formdialog.ItemFormView uses only language part of locale to display users what language they can choose from at

public void setAvailableLocales(List<Locale> locales) {
...
languageSelector.setItemCaption(locale, locale.getDisplayLanguage(MgnlContext.getLocale()));
...
}

The solution would be to include country code in the caption as well.



 Comments   
Comment by Jan Haderka [ 15/Jul/14 ]

Code looks fine, but you can't mark issue as "resolved" with ".x" in fixVersion field. There needs to be selected a concrete version under which fix is going to.

Comment by Evzen Fochr [ 15/Jul/14 ]

Done.

Comment by Evzen Fochr [ 15/Jul/14 ]

rly hope its everything

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