I have a view exported within a Feature. I want to make sure the custom labels are translated. The View display style is a table and I have a few custom labels for the headers instead of using the CCK default label. However, the label does not appear to be translatable.
Is it correct that I modify the line 'label' => 'Participant' to 'label' => t('Participant')? And what will this mean for future exports, will I have to modify the exported output every time when I have a change to make?
The below is a snippet from the $handler->override_option('fields' property of my view, which shows the title field, and the custom label.
'title' => array(
'label' => 'Participant',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 1,
'path' => '[field_participant_link_url]',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '_blank',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
'strip_tags' => 1,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
'override' => array(
'button' => 'Use default',
),
),