Legacy Knowledge Base
Published Jul. 2, 2025

Disable Liferay "set your preferred language" message

Written By

Viktória Gyömbér

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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

 

Did this article resolve your issue ?

Legacy Knowledge Base