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:18:00 UTC

[jira] [Updated] (PLUTO-711) AbstractPortletConfigImpl.getSupportedLocales() does not parse the language an country codes

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

Neil Griffin updated PLUTO-711:
-------------------------------
    Summary: AbstractPortletConfigImpl.getSupportedLocales() does not parse the language an country codes  (was: AbstractPortletConfigImpl.getSupportedLocales() does not parse languageIds)

> AbstractPortletConfigImpl.getSupportedLocales() does not parse the 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)