Closed (duplicate)
Project:
Name Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2016 at 10:00 UTC
Updated:
29 Jul 2019 at 05:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nilesh.addweb commentedAttached patch solves this issue.
Comment #3
alan d. commentedIssues with this patch, but does #1788156: Name components title are not translated resolve this for you?
Comment #4
nilesh.addweb commentedHi Alan,
I did use #1788156: Name components title are not translated (https://www.drupal.org/node/1788156#comment-10648548) and it solves the issue on node edit form. Please refer to screenshots attached (node-entry.png and translation-node-edit.png).
With patch from #1788156, the text in node view doesn't get translated. See node-view-without-patch.png.
After using patch I supplied above, text on node view also get translated. Please see node-view-with-patch.png.
I also do not get translated text in views output. The patch above solves that too.
Thanks!
Comment #5
alan d. commentedk, the issue was that this is double translated if the $markup is set,
t($value)beforeif ($markup) {would resolve that.This seems very late in the progression though the rendering to do the translation (without looking at the code), potentially a way to handle this before we get this far.
Comment #6
alan d. commentedTry the other issue patch again.
Note: This would t() all parts of a persons name, such as t('Dev2') and t('AddWeb'), leading to strange results!