Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.1 EE SP4 (5.1.7), 5.2 EE SP1 (5.2.5)
-
All
Description
Hot deployed language hooks do not override default language keys unless the language file include both the language code and the country code. For example, if a hook with Language_en.properties will not override the default language keys, however, a Language_en_US.properties file will work property. In order to for the language hook to work, the server must be restarted.
This bug fix, allows hot deployed language hooks without a country code to properly override the default language keys.
API CHANGES:
Class: com.liferay.portal.kernel.language.LanguageUtil
Method: format(long companyId, Locale locale, String pattern, Object argument)
Status: Deprecated
New method: format(Locale locale, String pattern, Object argument)
Method: format(long companyId, Locale locale, String pattern, Object argument, boolean translateArguments)
Status: Deprecated
New method: format(Locale locale, String pattern, Object argument, boolean translateArguments)
Method: format(long companyId, Locale locale, String pattern, Object[] arguments)
Status: Deprecated
New method: format(Locale locale, String pattern, Object[] arguments)
Method: format(long companyId, Locale locale, String pattern, Object[] arguments, boolean translateArguments)
Status: Deprecated
New method: format(Locale locale, String pattern, Object[] arguments, boolean translateArguments)
Method: get(long companyId, Locale locale, String key)
Status: Deprecated
New method: get(Locale locale, String key)
Method: get(long companyId, Locale locale, String key, String defaultValue)
Status: Deprecated
New method: get(Locale locale, String key, String defaultValue)
Class: com.liferay.portal.kernel.language.UnicodeLanguageUtil
Method: format(long companyId, Locale locale, String pattern, Object argument)
Status: Deprecated
New method: format(Locale locale, String pattern, Object argument)
Method: format(long companyId, Locale locale, String pattern, Object[] arguments)
Status: Deprecated
New method: format(Locale locale, String pattern, Object[] arguments)
Method: get(long companyId, Locale locale, String key)
Status: Deprecated
New method: get(Locale locale, String key)
Method: get(long companyId, Locale locale, String key, String defaultValue)
Status: Deprecated
New method: get(Locale locale, String key, String defaultValue)
Class: com.liferay.portal.util.PortalUtil
Method: getPortletDescription(String portletId, long companyId, Locale locale)
Status: Deprecated
New method: getPortletDescription(String portletId, Locale locale)
Method: getPortletDescription(String portletId, long companyId, String languageId)
Status: Deprecated
New method: getPortletDescription(String portletId, String languageId)
Method: getPortletTitle(Portlet portlet, long companyId, Locale locale)
Status: Deprecated
New method: getPortletTitle(Portlet portlet, Locale locale)
Method: getPortletTitle(Portlet portlet, long companyId, String languageId)
Status: Deprecated
New method: getPortletTitle(Portlet portlet, Locale locale)
Method: getPortletTitle(String portletId, long companyId, Locale locale)
Status: Deprecated
New method: getPortletTitle(Portlet portlet, Locale locale)
Method: getPortletTitle(String portletId, long companyId, String languageId)
Status: Deprecated
New method: getPortletTitle(Portlet portlet, Locale locale)
Class: com.liferay.portal.util.comparator.PortletCategoryComparator
Method: PortletCategoryComparator(long companyId, Locale locale)
Status: Deprecated
New method: PortletCategoryComparator(Locale locale)
Class: com.liferay.portal.util.comparator.PortletTitleComparator
Method: PortletTitleComparator(long companyId, Locale locale)
Status: Deprecated
New method: PortletTitleComparator(Locale locale)
Attachments
Issue Links
- is related to
-
LPS-5190 Language keys in plugins do not properly override portal language keys unless you input a language code and country code
- Closed