There are repeated languages that can't be modified in the Localization settings
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
learn-legacy-article-disclaimer-text
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:
- If only the (repeated) default languages appears in the Current column, move one of the other languages over from the Available column. Save.
- Change the default language of the site to the auxiliary language from step 1. Save.
- 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.
- Move back to Current the language that was repeated. Save.
- Select this language again as the current language of the site. Save.
- 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.
did-this-article-resolve-your-issue