I have an entity reference field in a custom content type, and am displaying this field via Panels. Within that Panel for the entity reference field, I am displaying the rendered entity, and I am using Display Suite to format that rendered entity. The settings within Display Suite for this rendered entity are as follows:

I'm displaying the Title of the referenced entity, using the Default formatter. I have linked this Field to Destination: [node:url], and am rewriting the text for this field to 'Show More Related Questions' instead of the entity title:

entity reference field

This string does appear to show up in the Translation Interface, but entering a translation doesn't do anything (cleared cache etc). I know this is a fairly convoluted set up in that its an Entity Reference that gets passed through Panels to Display Suite, but I am guessing the problem lies with Display Suite, as I have exported this content type as a feature, and I'm guessing that the 'formatter_settings' => array(linked_field' => array('advanced') => array('text') is not getting passed through the t() correctly: (this is from my [my-feature].ds.inc file)

  $export['node|guide|default'] = $ds_fieldsetting;

  $ds_fieldsetting = new stdClass();
  $ds_fieldsetting->api_version = 1;
  $ds_fieldsetting->id = 'node|guide|show_more';
  $ds_fieldsetting->entity_type = 'node';
  $ds_fieldsetting->bundle = 'guide';
  $ds_fieldsetting->view_mode = 'show_more';
  $ds_fieldsetting->settings = array(
    'title' => array(
      'weight' => '0',
      'label' => 'hidden',
      'format' => 'default',
      'formatter_settings' => array(
        'link' => '1',
        'wrapper' => '',
        'class' => '',
        'exclude node title settings' => '0',
        'ft' => array(),
        'field_delimiter' => '',
        'field_formatter_class' => '',
        'conditions' => array(),
        'linked_field' => array(
          'linked' => 1,
          'destination' => '[node:url]',
          'advanced' => array(
            'title' => '',
            'target' => '',
            'class' => '',
            'rel' => '',
            'text' => 'Show More Related Questions',
          ),
        ),
      ),
    ),
  );
  $export['node|guide|show_more'] = $ds_fieldsetting;

I have the following modules enabled (as well as all required dependencies):
Entity Translation 7.x-1.0-beta5
Panels Translation 7.x-3.8
String translation 7.x-1.14
Any thoughts? Thank you in advance for any suggestions.

CommentFileSizeAuthor
entity reference field.png51.78 KBkbrinner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kbrinner created an issue.