Bug in localization of Stripes options-map TagLib

Description

The localization for options-map doesn't work well.

It is called like that on the options-collection :
localizedLabel = LocalizationUtility.getLocalizedFieldName(clazz.getSimpleName() + "." + label, packageName, null, locale);

With clazz being the collection content.
For enums it's overriden but it's the same user, so you look for a translation of EnumX_ENUM_VAL.
(And then try with the package)

The matter with Map is that we iter, according to the map implementation, on for exemple a HashMap$Entry.
And i don't think it's decent for the framework to use a bundle key "Entry.MAP_LABEL"

According to the documentation, the map value will be used as a label that can be translated according to the bundle.
"The tag will attempt to localize the labels attributes of the option tags that are generated. To do this it will look up labels in the field resource bundle. If no localized label can be found then the value of the label property will be used."

I think that the superclass collection must also try to localize without the "clazz.getSimpleName()"
Or at least it must be set in the documentation that the bundle keys for map should start with Entry.MAPVALUE

Environment

All

Status

Assignee

Unassigned

Reporter

SĂ©bastienL

Labels

Tester

None

Components

Affects versions

Release 1.5

Priority

Major
Configure