You can upgrade your portlet language key hooks to Liferay DXP 7.1 by following these steps:
-
Create a new module based on the Blade sample
resource-bundle
(Gradle or Maven project).Here are the module folder structure’s main files:
src/main/java/[resource bundle path]
→ResourceBundleLoader
extension goes heresrc/main/resources/content
Language.properties
Language_xx.properties
- …
-
Copy your language properties files into module folder
src/main/resources/content/
. -
In your
bnd.bnd
file, specify OSGi manifest headers that target the portlet module’s resource bundle, but prioritize yours.
Your portlet language key customizations are deployed in your new module on Liferay DXP 7.1.
Related Topics
Overriding a Module’s Language Keys
Upgrading Core Language Key Hooks