Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-1430

Hot deployed language hooks do not override default language keys

Details

    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

          Activity

            People

              mingda.yi Kevin Yi (Inactive)
              brian.chan Brian Chan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.1 EE SP5 (5.1.8)
                  5.2 EE SP2 (5.2.6)