core
core copied to clipboard
Opening in Preview a text file asset does not respect language
Maybe happening because the file reference is handled by identifier and not by inode.
Steps to reproduce:
- Go to Site Browser> Add New button> Image or File
- Select File Asset and add a text file in default language (English)
- Hit Save / Publish
- Now right click over the text file you just added and hit "Edit"
- Select another language (ES) from the dropdown
- Click Yes on the confirmation pop up
- Edit the text file in both languages so you can see the difference in both files, e.g.:
English: This is a test in English Spanish: Esta es una prueba en Espanol
- Save the changes
- Save / Publish
- Now right click> Open (Preview)
- You will see that only the text in the default language (EN) is displayed

Tested locally in: master-3.6 // Win7 Pro SP1 // SQLServer 2012 // Firefox master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Chrome
PR: https://github.com/dotCMS/core/pull/9350
Passed QA. Preview now is showing text file content depending on the language Tested locally in: master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Chrome