I don't manage to localize portlet preferences.
I've set resource-bundle and supported-locale in portlet.xml but in administration page, I see : LocalizedString[value='xxx',defaultLocale=en].
Besides, bundles are defined in french and english, administrator is configured with french locale and I don't understand why default locale should be english...
Note that both bundles are correctly loaded since I see LocalizeString objects when debugging ContainerPreferencesInfo.
<portlet> <portlet-name>X</portlet-name> <portlet-class>X</portlet-class> <resource-bundle>i18n/PortletMessages</resource-bundle> <supports> <mime-type>text/html</mime-type> <portlet-mode>help</portlet-mode> </supports> <portlet-preferences> <preference> <name>xxx</name> <value>some value</value> </preference> </portlet-preferences> <supported-locale>fr</supported-locale> <portlet-info> <title/> <!-- Dynamically generated --> </portlet-info> </portlet>
javax.portlet.preference.name.xxx = Some name javax.portlet.preference.description.xxx = Some description
There was a bug that i just fixed, it will be available in 2.6.3
Thanks for the report !
Don't worry about the default to english you always have to default to something if there is no language defined anywhere.
(In this case if your browser default is french, it will default to French)