'localizable' => 1,
'html' => [
'type' => 'Text',
- 'label' => 'Name',
+ 'label' => ts("Name"),
],
],
'description' => [
'localizable' => 1,
'html' => [
'type' => 'TextArea',
- 'label' => 'Description',
+ 'label' => ts("Description"),
],
],
'member_of_contact_id' => [
'localizable' => 0,
'html' => [
'type' => 'Text',
- 'label' => 'Minimum Fee',
+ 'label' => ts("Minimum Fee"),
],
],
'duration_unit' => [
'localizable' => 0,
'html' => [
'type' => 'Text',
- 'label' => 'Max Related',
+ 'label' => ts("Max Related"),
],
],
'visibility' => [
'localizable' => 0,
'html' => [
'type' => 'CheckBox',
- 'label' => 'Enabled?',
+ 'label' => ts("Enabled?"),
],
],
];
'serialize' => self::SERIALIZE_{$field.serialize|strtoupper},
{/if}
{if $field.html}
- 'html' => {$field.html|@print_array},
-{/if} {* field.html *}
+ 'html' => array(
+ {foreach from=$field.html item=val key=key}
+ '{$key}' => {if $key eq 'label'}ts("{$val}"){else}'{$val}'{/if},
+ {/foreach}
+ ),
+{/if}
{if $field.pseudoconstant}
'pseudoconstant' => {$field.pseudoconstant|@print_array}
{/if} {* field.pseudoconstant *} ),