core icon indicating copy to clipboard operation
core copied to clipboard

Translation Workflow should not translate file names

Open shaydotcms opened this issue 10 years ago • 2 comments

Related to #9037 When you create a File Asset and upload a file such as a txt file, this workflow is translating the txt file name to another language(s) which is a wrong behavior, because it should translate only the file title but not the file name This could be happening because the txt file name is a text field as well as the txt title. Perhaps need to create a way to exclude file asset’s name out of the translation.

Steps to reproduce:

  1. Generate the jar file "plugin-dotcms-actionlet-google-translate-0.1.jar”
  2. Login to Dotcms and upload the jar file in Dynamic Plugins portlet:
8cc03584-b89c-4a6c-a19a-f12c0c1dc55a
  1. Now navigate to Content Types> Workflow Schemes
  2. Click on Default Scheme
  3. Inside Initial State, create a new Workflow Action “Translation_test" and hit Save
  4. Now Add the Sub-action “Translate Content" such as below and hit Save:
986dc94a-e319-425b-8b79-2ecdfdfb4556
  1. Click Translate Content to verify it’s set to translate text fields:
5e168ed7-7dc9-43c1-836b-e357ec671440
  1. Create a new File Asset and upload a txt file
  2. Navigate to Content> Content Search.
  3. Look for the file asset you just created and execute Translation_test workflow:
1f7ac944-822d-41b7-a668-42e0eec7c33c
  1. You will see the file asset name (as well as the file asset title) is translated to other languages:
1cf9eb90-32b6-436b-824b-c01bdfdba4c1
  1. New Resource Links of translated file assets return a 404 error:

http://localhost:8080/archivo+de+prueba+en+diferentes+languages.txt?languageid=2 http://localhost:8080/Fichier+de+test+dans+languages.txt+diff%C3%A9rent?languageid=3

Tested locally in: master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Firefox

shaydotcms avatar Jun 28 '16 17:06 shaydotcms

Fixed here: https://github.com/dotCMS/core/issues/9262

dsilvam avatar Jun 29 '16 20:06 dsilvam

Passed QA. Translation Workflow is not translating file names, only fields specified in Translate Field Types (text, texarea, etc). Tested locally in: master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Firefox

shaydotcms avatar Jul 05 '16 21:07 shaydotcms