Legacy Knowledge Base
Published Jul. 2, 2025

English (United States) cannot be removed from the list of available locales

Written By

Brian Suh

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

  • This document describes a scenario where English (United States) could not be removed from the list of available locales during the initial setup (also known as the Portal Setup Wizard)
  • In this example, we want to try and set English (Australia) as our default locale, so we prepared the bundle as follows:
    • In portal-ext.properties, include
      • company.default.locale=en_AU 
        locales.enabled=en_AU
        locales=en_AU
        index.search.spell.checker.supported.locales=en_AU
  • However, when starting up, we see an error (LayoutNameException) and see both English (United States) and English (Australia) in the list of locales, even if English (United States) has been removed.

Environment

  • Liferay DXP 7.4

Resolution

  • We will need to add a system-ext.properties to override the existing Liferay system.properties. In this test case, I will be demonstrating how we can perform this action in Tomcat:
    1. Go to ${liferay.home}/tomcat-*/webapps/ROOT/classes
    2. Create a file called system-ext.properties (while we retain the aforementioned portal-ext.properties file)
    3. Include the following properties (in this case, for English (Australia)):
      • user.country=AU
        user.language=en
    4. Restart the server
    5. Observe that the Portal Setup Wizard's dropdown only shows English (Australia)

 

Did this article resolve your issue ?

Legacy Knowledge Base