Legacy Knowledge Base
Published Jul. 2, 2025

Using Multiple Languages for Staging

Written By

Brett Ripley

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.

This article outlines a practical suggestion for avoiding issues when using multiple languages in a site along with the Liferay platform’s staging feature. Following this suggestion will help prevent future staging publication failures. 

Resolution

When utilizing multiple languages within a site, make sure to:

  1. Only use languages that have been defined within the site
    1. Errors may arise when the portal encounters content with a locale that is not defined on the site.
    2. e.g. If English and Spanish are the defined languages, and you’d like to remove English, make sure to remove all content in English.
      1. Even “small changes” Iike from en_US to en_GB will cause this issue so be careful with the web content that you use on the portal.
  2. Only use those languages for sites and content that are defined for the whole portal as well
    1. e.g. There should not be a site that utilizes Chinese when the only languages defined for the portal are English and Spanish.
  3. Set and use exactly the same languages between the live and staged site. If there are discrepancies between the languages in the two sites, the publish may fail.
    1. Even if you don't use every language in your site content, the publish process won't start if your live site has more or less languages available.
    2. e.g. It is a common oversight when the staging portal uses the default language locales and only the live portal was configured to use only the needed ones.
    3. Ensure that the staged site and live portal use the exact same languages.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base