You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "Neil Griffin (JIRA)" <ji...@apache.org> on 2018/05/07 22:15:00 UTC

[jira] [Created] (PLUTO-711) AbstractPortletConfigImpl.getSupportedLocales() does not parse languageIds

Neil Griffin created PLUTO-711:
----------------------------------

             Summary: AbstractPortletConfigImpl.getSupportedLocales() does not parse languageIds
                 Key: PLUTO-711
                 URL: https://issues.apache.org/jira/browse/PLUTO-711
             Project: Pluto
          Issue Type: Bug
          Components: portlet container
    Affects Versions: 3.0.0
            Reporter: Neil Griffin
            Assignee: Neil Griffin
             Fix For: 3.0.1


Given the following portlet configuration:
{code:java|title=MyPortlet.java}
@PortletConfiguration(
   portletName = "myPortlet",
   supportedLocales = {"en_US", "de"}
)
{code}

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.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)