Affects Version/s: 7.0.X, 7.1.X, 7.2.X, Master
Component/s: Portal Services > Localization
When overriding global language keys, the ResourceBundle for the portal classloader is the ResourceBundle provided by the new OSGi component.
However, inside of ResourceBundleUtil, whenever retrieving the ResourceBundle for the portal classloader, it always return the original ResourceBundle rather than the override. This results in global language overrides not taking effect on some pages in Liferay.
Steps to Reproduce
- Follow the tutorial to prepare a new ResourceBundle component, and change the language key: layout.types.portlet=Widget Page to
layout.types.portlet=Portlet Page (see attached example.global.language.override-1.0.0.jar)
- Deploy the module
- Navigate to Liferay > Site Builder > Pages in the left-hand control menu
Expected behavior is that you see "Portlet Page" below each page name.
Actual behavior is that you continue to see "Widget Page" below each page name.