Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-711

AbstractPortletConfigImpl.getSupportedLocales() does not parse language an country codes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.1
    • portlet container
    • None

    Description

      Given the following portlet configuration:

      MyPortlet.java
      @PortletConfiguration(
         portletName = "myPortlet",
         supportedLocales = {"en_US", "de"}
      )
      

      Pluto does not parse en_US so that it equates to Locale.ENGLISH. A parsing mechanism needs to be introduce to look for the underscore and split the value into the languageCode ("en") and countryCode ("US") before creating a java.util.Locale object.

      Attachments

        Activity

          People

            ngriffin7a Neil Griffin (Inactive)
            ngriffin7a Neil Griffin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: