1 Reply Latest reply on Nov 21, 2007 6:20 AM by Thomas Heute

    Preferences localization

    - - Newbie

      Hi,

      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.xml :

      <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>
      


      WEB-INF/classes/i18n/PortletMessages_en.properties (same for _fr) :
      javax.portlet.preference.name.xxx = Some name
      javax.portlet.preference.description.xxx = Some description
      


      Thanks