Legacy Knowledge Base
Published Jun. 30, 2025

There are repeated languages that can't be modified in the Localization settings

Written By

Ricardo Couso

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

  • The default language for the site is shown repeated several times in the column of Current languages in Site Settings > Localization > Languages.
    • It can also happen for the instance in Instance Settings > Localization > Languages.
  • When trying to modify these repeated languages (move them or remove them) it's not possible.
  • Moreover, a com.liferay.portal.kernel.exception.LocaleException may appear in the logs when trying to make some changes in other parts of the portal.

Environment

  • Quarterly Release 2024.Q1, 2024.Q2, 2024.Q3

Resolution

  • This situation occurs when an inconsistent list of values exists in the typesettings of the group object representing the site, or in the portalpreferencevalue table (key_=locales) representing the instance settings.
  • To fix it using the UI, follow these steps when the inconsistency is in the site settings:
    1. If only the (repeated) default languages appears in the Current column, move one of the other languages over from the Available column. Save.
    2. Change the default language of the site to the auxiliary language from step 1. Save.
    3. Move the repeated languages from the Current to the Available column. (They'll all move together.) Save.
      • Now there shouldn't be any repeated languages.
    4. Move back to Current the language that was repeated. Save.
    5. Select this language again as the current language of the site. Save.
    6. Move the auxiliary language from step 1 back from Current to Available. Save.
  • If the inconsistency is in the instance settings, the above steps may vary slightly but should be very similar, i.e., moving some of the repeated languages from one column to the other one and saving those changes will eventually fix the issue.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base