[ 
https://issues.apache.org/jira/browse/PLUTO-711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Neil Griffin closed PLUTO-711.
------------------------------
    Resolution: Fixed

Fixed in commit 
[bb0df7fc26c5397ededb5137a68307d29c737f76|https://github.com/apache/portals-pluto/commit/bb0df7fc26c5397ededb5137a68307d29c737f76]

> AbstractPortletConfigImpl.getSupportedLocales() does not parse language an 
> country codes
> ----------------------------------------------------------------------------------------
>
>                 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
>            Priority: Major
>             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)

Reply via email to