Type: Regression Bug
Resolution: Won't Fix
Affects Version/s: Master
Fix Version/s: None
Component/s: Fragment Administration
"fragment.collection.label" is appended to getCollectionKey() in any fragmentRenderer implementation in order to translate a language key for the contributed fragment if created.
However if the language key does not exist, it does not make sense to have the "fragment.collection.label" appended still. The rest of liferay-portal will display the language key if it does not exist, and we should keep it consistent with contributed fragments. This will affect companies that want contributed fragments, but do not want to yet localize their sites.
Steps to Reproduce
- Create a contributed fragment by implementing the fragmentRenderer interface and return a string in getCollectionKey with an invalid Language Key.
- Deploy the contributed fragment
- Add the contributed fragment to a content page / layout page template / display page
Because the language key is not found, the language key itself is displayed
The language key with the suffix fragment.collection.label is displayed
Tested on Tomcat 9.0.10 + MySQL 5.7
Portal master GIT ID: 9c621af747a29b48a5afcfdc3276527b6e599eb9