I am using this module in multilingual site. The component labels are translated alright. But in title component values are not translated. This happens in rule tokens and view output as well. For example, on node view, Mr is not translated to Herr for german even though translation is available. I tried patch from https://www.drupal.org/node/1788156 as well but its not working. The label is translated but not the value.

Comments

darshi created an issue. See original summary.

nilesh.addweb’s picture

StatusFileSize
new488 bytes

Attached patch solves this issue.

alan d.’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#1788156: Name components title are not translated

Issues with this patch, but does #1788156: Name components title are not translated resolve this for you?

nilesh.addweb’s picture

Status: Closed (duplicate) » Needs review
StatusFileSize
new6.42 KB
new3.94 KB
new3.73 KB
new22.2 KB

Hi 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!

alan d.’s picture

Status: Needs review » Needs work

k, the issue was that this is double translated if the $markup is set, t($value) before if ($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.

alan d.’s picture

Status: Needs work » Closed (duplicate)

Try 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!