Translatable fields display empty after deleting field translation instead default translation
Written By
Daniel Carrillo Broeder
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.
Issue
- When adding content to a translatable field in a structure and subsequently deleting the content in a secondary language, the field displays as empty in that specific language instead of falling back to the primary language.
- If a translatable field has never had content in a secondary language, it correctly displays the content from the primary language when viewed in the secondary language.
Environment
- Liferay DXP 7.4, Quarterly Releases.
Resolution
- Once a translation for a secondary language is added, the default value from the primary language is no longer automatically used.
- You must either manually set the value for the secondary language, or delete the translation for the secondary language to revert to the primary language value.
- To delete a translation:
- Go to the context menu of the web content.
- Select "Delete Translations".
- Choose the translation to delete.
-
Important: The published web content may not refresh automatically after deleting a translation if this error LPD-51526 is present. To clear the cache:
- Go to Control Panel > Server Administration > Resources.
- Click "Clear Cached Content in Cluster".
Did this article resolve your issue ?