Ok, maybe the title didn’t explain it very well!
Basically, I’m developing a module which adds a tab to the publish page. With fields I add to the publish page, like a textbox, I can localize the title like so:
array('field_id' => 'my_textbox',
'field_label' => lang('textbox_name'),
'field_type' => 'text',
'field_data' => 'text data',
'field_required' => 'n',
'field_instructions' => lang('textbox_instruction'),
'field_text_direction' => 'ltr',
'field_maxl' => '10')With a checkbox, I am forced to make this bizarre thing called a checkbox group. But I cannot for the life of me localize the name of the individual checkboxes!
array('field_id' => 'my_checkbox_group',
'field_label' => lang('checkbox_group_title'),
'field_required' => 'n',
'field_type' => 'checkboxes',
'field_data' => array(),
'field_list_items' => array('individual_checkbox_id'), // <= how on earth do I set the text label of this checkbox?????
'field_instructions' => '',
'field_pre_populate' => 'n',
'field_pre_field_id' => '',
'field_pre_channel_id' => '',
'field_text_direction' => 'ltr')Hopefully that makes sense? I want to localize the name of the individual checkbox. Any ideas?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.