Issue
- Custom portlet renders the language resources as the key.
- What should we change in our code to render the language correctly?
Environment
- Liferay DXP 2024.Q2
- Quarterly Release
Resolution
-
There’s a workaround based on Declare the Override in the Bnd File, which is adding the following to the module's bnd.bnd file:
Provide-Capability: liferay.language.resources;\ resource.bundle.base.name="content.Language"
-
Then try to rebuild the application.
Resource bundle is private to your module
- Web applications should have
Web-ContextPath
set in their bnd.bnd. -
Please set it, and rebuild the application.
-
This is a fix introduced by
LPD-24746: Language translations via resource bundle from custom modules no longer work
Additional Information