It turns out translated entity fields are ignored by PB.

On the screenshot attached there is %node:field-pt-topic:name-field LINK TITLE which is in fact term name replaced by title field and is translated. But on resulting pages these titles are printed not translated.

I think this is a bug.

Comments

OnkelTem’s picture

Category: Support request » Bug report
Issue summary: View changes
OnkelTem’s picture

StatusFileSize
new2.09 KB

Found a workaround: if instead of specifying term's title field (%node:field-pt-topic:name-field) you set link title to %node:field-pt-topic (the field itself) it is translated.

kalabro’s picture

Category: Bug report » Support request
Status: Active » Closed (works as designed)

Thanks for sharing!
I think it is not PB issue, because PB just uses Token/Entity Token system for token replacements.

set link title to %node:field-pt-topic (the field itself) it is translated.

It is because you should just use "name" token in this case. "Title" module replaces it's value automatically.
Token %node:field-pt-topic is shortcut for %node:field-pt-topic:name.

OnkelTem’s picture

Token %node:field-pt-topic is shortcut for %node:field-pt-topic:name.

Looks like it's not, as %node:field-pt-topic:name is not translated, while the former is.

kalabro’s picture

Looks like it's not, as %node:field-pt-topic:name is not translated, while the former is.

Try to enable Token module.

OnkelTem’s picture

It is enabled.

(Btw, I don't use i18n taxonomy translation if this matters. Instead I use Entity Translation module and translate taxonomy terms as entities)

kalabro’s picture

Btw, I don't use i18n taxonomy translation if this matters. Instead I use Entity Translation module and translate taxonomy terms as entities

I got it.
In my case "name" token works as expected (Russian on /ru/* pages and english on /en).
Checkout devel/token page for your node: /ru/node/YOUR-NODE-NID/devel/token
Are tokens for field-pt-topic replaced correctly there?

korzh-nick’s picture

Use %node:field-pt-topic:name_field