I am seeing some strange i18n-related behaviour of DS token fields. I have a content type (building) containing a field collection (list of contributors with their roles, both references to content and taxonomy respectively). I created two simple DS token fields to display two or three separate fields as one nice string:
[node:field_address:value], [node:field_city], [node:field_artefact_country]
for the building and
[field_collection_item:field_speciality]: [field_collection_item:field_artist]
for its field collection.
For the screenshots I included into the node display both individual City and Country fields and the token field based on them just to illustrate the issue.
In English (default language) everything displays fine:
But when I switch to Russian, all individual fields AND the token field within the field collection are rendered in Russian as you can see but the city and country names in the "Full Address" token field stay in English.
Am I missing something obvious or is it a bug?
Comment | File | Size | Author |
---|---|---|---|
#7 | token_replace_fix-2836046-7.patch | 2.09 KB | Jānis Bebrītis |
#4 | token_replace_fix-2836046-4.patch | 2.12 KB | mErilainen |
dstokenru.png | 78.17 KB | marassa | |
dstokenen.png | 73.86 KB | marassa |
Comments
Comment #2
marassa CreditAttribution: marassa commentedComment #3
RAWDESK CreditAttribution: RAWDESK for Colruyt Group Services commentedLooks like a bug to me.
Had a similar symptom on custom wrapper url tokens.
Maybe have a look at this to find a solution :
https://www.drupal.org/node/2475743#comment-11833928
Comment #4
mErilainen CreditAttribution: mErilainen at Wunder commentedHere is a patch against the latest stable version.
Comment #5
marassa CreditAttribution: marassa commentedApplied the patch - doesn't work for me, sorry... Nothing's changed.
Comment #6
aspilicious CreditAttribution: aspilicious commentedIt would be better if someone could write a patch for this, not sure how to do it as we don't have any multilingual tests yet.
Comment #7
Jānis Bebrītis CreditAttribution: Jānis Bebrītis at Wunder commented#4 worked for us until the core and ds upgrade.
Here's a #4 reworked for DS 3.1
Comment #8
fcasanellas CreditAttribution: fcasanellas commentedThanks! #7 worked for me!
Could it be included on the new release?
Comment #10
aspilicious CreditAttribution: aspilicious commented