-
Improvement
-
Resolution: Obsolete
-
Neutral
-
None
-
None
-
None
Steps to reproduce
Look at the publishing status column filter in a JCR app.
Expected results
Filter values are translatable.
Actual results
Values can actually be too technical since those are plain java enumeration names, no spaces allowed (NotActivated).
Workaround
Name java enumerations as UI users friendly as possible
Development notes
info.magnolia.ui.datasource.enumeration.EnumSelectFieldSupport#getItemCaptionGenerator could do something like
item -> translationService.translate(contextLocaleProvider.get(), new String[]("key.prefix." + item.name().toLowerCase), item.name());
Make it more consistent with i18n key by replace (_) to (.), eg: A_B => a.b
Acceptance criteria
- is depended upon by
-
MGNLUI-5902 Status column filter: replace terms 'activation' with 'publishing'
- Closed