Issue
- In case the User's Display Language is set differently than the language of the Site that is being displayed, a warning message appears with the option to set your preferred language.
- You may wish to disable or remove this message by default, but you may not be able to find a way to do so.
Environment
- Liferay DXP 7.0, 7.1, 7.2, 7.3, 7.4
- Quarterly Releases
Resolution
- The tooltip is part of the default Liferay functionalities which cannot be disabled out of the box.
-
At the moment the specific tooltip with its message can be removed or disabled with customization only:
- You will need to verify the file user_locale_options.jsp. By removing certain parts of the code, the message will be disabled. In order to completely remove the message box, you will need to check the frontend-code that is responsible for making it visible.
-
Workaround for DXP 7.3, 7.4 and Quarterly Releases only:
- You can blacklist this functionality in Control panel →Configuration →System Settings →Module Container →Bundle Blacklist , adding the following entry: com.liferay.portal.user.locale.options.web .
- In addition, a Feature Request LPS has been created in our issue tracking system to be able to disable this functionality: LPS-113684. If this functionality is important to you, please contact us using a support ticket.
Additional Information