-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, 7.1.X, Master
-
Fix Version/s: 7.0.0 DXP FP60, 7.0.0 DXP SP9, 7.0.X, 7.1.10 DXP FP2, 7.1.1 CE GA2, 7.1.10.1 SP1, 7.1.X, Master
-
Component/s: Portal Services > Localization
-
Branch Version/s:7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Story Points:1
-
Fix Priority:3
-
Git Pull Request:
Certain resource bundles cannot be overriden due to the way of retrieving the resource bundle ignoring the overriden one.
Steps to Reproduce:
- Use https://dev.liferay.com/es/develop/tutorials/-/knowledge_base/7-0/overriding-language-keys#overriding-a-modules-language-keys to override a couple of keys like:
- look-and-feel-configuration in com.liferay.portlet.configuration.css.web
- add-to-facebook in com.liferay.portlet.configuration.sharing.web
Expected Results:
Keys should be overriden.
Actual Results:
Keys aren't overriden.
Example cases
- Override the key x-template in portal-impl
- Deploy the module com.liferay.blade.resource.bundle.override.portalimpl-1.0.0.jar which overrides the key in English
- In a give site, go to Build > Application Display Template
- Click on the plus button to show all the possible templates available
Expected: All the templates show the new message "$entity Template Overridden" for the different values of $entity.
Observed: The templates still show the original message "$entity Template"
- Override the key look-and-feel-configuration in com.liferay.portlet.configuration.css.web
- Deploy the module com.liferay.blade.resource.bundle.override.portletconfigurationcssweb-1.0.0.jar which overrides the key in English
- For any portlet, such as the Hello World portlet, click on the 3-dot menu
Expected: The first option shows the new value "Look and Feel Configuration Overridden"
Observed: The first option still show the original message "Look and Feel Configuration"
- Override the key x-moved-a-web-content-to-the-recycle-bin in com.liferay.journal.web
- Deploy the module com.liferay.blade.resource.bundle.override.journallang-1.0.0.jar which overrides the key in English
- Create a web content with the user test and subscribe to it
- Create a new user (user01) and give the role admin
- With user01 move the web content to the recycle bin
- The user test will have a new notification
Expected: The notification shows the new message "user01 user01 moved a web content to the recycle bin Overridden."
Observed: The notification still shows the original message "user01 user01 moved a web content to the recycle bin"
EDIT: Uploaded a new jar for case 3.
- depends on
-
LPS-82668 All modules should have access to the language keys in portal-impl by default
-
- Closed
-
- relates
-
LPS-84074 Cover all ResourceBundle override cases
- Closed
-
LPS-84509 Change SDK to be able to override ResourceBundle
- Closed
-
LPS-100358 ResourceBundleUtil.getBundle returns the wrong ResourceBundle for the portal classloader
- Closed
- Testing discovered
-
LPS-85299 Invalid redirect in notification after deleting or restoring a web content
- Closed