Bug in localization of Stripes options-map TagLib
-------------------------------------------------
Key: STS-825
URL: http://www.stripesframework.org/jira/browse/STS-825
Project: Stripes
Issue Type: Bug
Components: Tag Library
Affects Versions: Release 1.5
Environment: All
Reporter: Sebastien Lorber
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
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development