core icon indicating copy to clipboard operation
core copied to clipboard

Opening in Preview a text file asset does not respect language

Open shaydotcms opened this issue 10 years ago • 2 comments

Maybe happening because the file reference is handled by identifier and not by inode.

Steps to reproduce:

  1. Go to Site Browser> Add New button> Image or File
  2. Select File Asset and add a text file in default language (English)
  3. Hit Save / Publish
  4. Now right click over the text file you just added and hit "Edit"
  5. Select another language (ES) from the dropdown
  6. Click Yes on the confirmation pop up
  7. 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

  1. Save the changes
  2. Save / Publish
  3. Now right click> Open (Preview)
  4. You will see that only the text in the default language (EN) is displayed

open preview

Tested locally in: master-3.6 // Win7 Pro SP1 // SQLServer 2012 // Firefox master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Chrome

shaydotcms avatar Jun 15 '16 21:06 shaydotcms

PR: https://github.com/dotCMS/core/pull/9350

erickgonzalez avatar Jul 12 '16 19:07 erickgonzalez

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

shaydotcms avatar Jul 14 '16 17:07 shaydotcms