<?php
+use CRM_CivicrmAdminUi_ExtensionUtil as E;
+
return [
[
'name' => 'SavedSearch_Administer_Contact_Types',
'version' => 4,
'values' => [
'name' => 'Administer_Contact_Types',
- 'label' => 'Administer Contact Types',
+ 'label' => E::ts('Administer Contact Types'),
'form_values' => NULL,
'mapping_id' => NULL,
'search_custom_id' => NULL,
'version' => 4,
'values' => [
'name' => 'Contact_Types_Table',
- 'label' => 'Contact Types Table',
+ 'label' => E::ts('Contact Types Table'),
'saved_search_id.name' => 'Administer_Contact_Types',
'type' => 'table',
'settings' => [
'type' => 'field',
'key' => 'label',
'dataType' => 'String',
- 'label' => 'Label',
+ 'label' => E::ts('Label'),
'sortable' => TRUE,
'icons' => [
[
'type' => 'field',
'key' => 'parent_id:label',
'dataType' => 'Integer',
- 'label' => 'Parent',
+ 'label' => E::ts('Parent'),
'sortable' => TRUE,
'icons' => [
[
'type' => 'field',
'key' => 'description',
'dataType' => 'Text',
- 'label' => 'Description',
+ 'label' => E::ts('Description'),
'sortable' => TRUE,
'editable' => TRUE,
],
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-pencil',
- 'text' => 'Edit',
+ 'text' => E::ts('Edit'),
'style' => 'default',
'path' => '',
'condition' => [],
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-trash',
- 'text' => 'Delete',
+ 'text' => E::ts('Delete'),
'style' => 'danger',
'path' => '',
'condition' => [
],
'addButton' => [
'path' => 'civicrm/admin/options/subtype/edit?action=add&reset=1',
- 'text' => 'Add Contact Type',
+ 'text' => E::ts('Add Contact Type'),
'icon' => 'fa-plus',
],
],
<?php
+use CRM_CivicrmAdminUi_ExtensionUtil as E;
+
return [
[
'name' => 'SavedSearch_Administer_Custom_Fields',
'version' => 4,
'values' => [
'name' => 'Administer_Custom_Fields',
- 'label' => 'Administer Custom Fields',
+ 'label' => E::ts('Administer Custom Fields'),
'form_values' => NULL,
'search_custom_id' => NULL,
'api_entity' => 'CustomField',
'version' => 4,
'values' => [
'name' => 'Table',
- 'label' => 'Table',
+ 'label' => E::ts('Table'),
'saved_search_id.name' => 'Administer_Custom_Fields',
'type' => 'table',
'settings' => [
'type' => 'field',
'key' => 'id',
'dataType' => 'String',
- 'label' => 'ID',
+ 'label' => E::ts('ID'),
'sortable' => TRUE,
],
[
'type' => 'field',
'key' => 'label',
'dataType' => 'String',
- 'label' => 'Field Label',
+ 'label' => E::ts('Field Label'),
'sortable' => TRUE,
],
[
'type' => 'field',
'key' => 'data_type:label',
'dataType' => 'String',
- 'label' => 'Data Type',
+ 'label' => E::ts('Data Type'),
'sortable' => TRUE,
],
[
'type' => 'field',
'key' => 'html_type:label',
'dataType' => 'String',
- 'label' => 'Input Type',
+ 'label' => E::ts('Input Type'),
'sortable' => TRUE,
],
[
'type' => 'field',
'key' => 'is_required',
'dataType' => 'Boolean',
- 'label' => 'Required',
+ 'label' => E::ts('Required'),
'sortable' => TRUE,
'editable' => TRUE,
],
'type' => 'field',
'key' => 'is_active',
'dataType' => 'Boolean',
- 'label' => 'Enabled',
+ 'label' => E::ts('Enabled'),
'sortable' => TRUE,
'editable' => TRUE,
],
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-pencil',
- 'text' => 'Edit Field',
+ 'text' => E::ts('Edit Field'),
'style' => 'default',
'path' => '',
'condition' => [],
'alignment' => 'text-right',
],
[
- 'text' => 'Actions',
+ 'text' => E::ts('Actions'),
'style' => 'default',
'size' => 'btn-xs',
'icon' => 'fa-bars',
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-eye',
- 'text' => 'Preview Field',
+ 'text' => E::ts('Preview Field'),
'style' => 'default',
'path' => '',
'condition' => [],
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-list-ol',
- 'text' => 'Multiple Choice Options',
+ 'text' => E::ts('Multiple Choice Options'),
'style' => 'default',
'path' => 'civicrm/admin/custom/group/field/option?reset=1&action=browse&gid=[custom_group_id]&fid=[id]',
'condition' => [
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-random',
- 'text' => 'Move Field',
+ 'text' => E::ts('Move Field'),
'style' => 'default',
'path' => '',
'condition' => [],
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-trash',
- 'text' => 'Delete Field',
+ 'text' => E::ts('Delete Field'),
'style' => 'danger',
'path' => '',
'condition' => [],
<?php
+use CRM_CivicrmAdminUi_ExtensionUtil as E;
+
return [
[
'name' => 'SavedSearch_Administer_Custom_Groups',
'version' => 4,
'values' => [
'name' => 'Administer_Custom_Groups',
- 'label' => 'Administer Custom Groups',
+ 'label' => E::ts('Administer Custom Groups'),
'form_values' => NULL,
'search_custom_id' => NULL,
'api_entity' => 'CustomGroup',
'version' => 4,
'values' => [
'name' => 'Table',
- 'label' => 'Table',
+ 'label' => E::ts('Table'),
'saved_search_id.name' => 'Administer_Custom_Groups',
'type' => 'table',
'settings' => [
'type' => 'field',
'key' => 'id',
'dataType' => 'String',
- 'label' => 'ID',
+ 'label' => E::ts('ID'),
'sortable' => TRUE,
],
[
'type' => 'field',
'key' => 'title',
'dataType' => 'String',
- 'label' => 'Group Title',
+ 'label' => E::ts('Group Title'),
'sortable' => TRUE,
],
[
'type' => 'field',
'key' => 'is_active',
'dataType' => 'Boolean',
- 'label' => 'Enabled',
+ 'label' => E::ts('Enabled'),
'sortable' => TRUE,
'editable' => TRUE,
],
'type' => 'field',
'key' => 'extends_entity_column_id:label',
'dataType' => 'Integer',
- 'label' => 'Used for',
+ 'label' => E::ts('Used for'),
'sortable' => TRUE,
'empty_value' => '[extends:label]',
],
'type' => 'field',
'key' => 'style:label',
'dataType' => 'String',
- 'label' => 'Style',
+ 'label' => E::ts('Style'),
'sortable' => TRUE,
],
[
'join' => '',
'target' => '',
'icon' => 'fa-list-alt',
- 'text' => 'Fields ([COUNT_CustomGroup_CustomField_custom_group_id_01_id])',
+ 'text' => E::ts('Fields (%1)', [1 => '[COUNT_CustomGroup_CustomField_custom_group_id_01_id]']),
'style' => 'default',
'path' => 'civicrm/admin/custom/group/fields#/?gid=[id]',
],
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-pencil',
- 'text' => 'Settings',
+ 'text' => E::ts('Settings'),
'style' => 'default',
],
],
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-eye',
- 'text' => 'Preview Group',
+ 'text' => E::ts('Preview Group'),
'style' => 'default',
],
[
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-trash',
- 'text' => 'Delete Group',
+ 'text' => E::ts('Delete Group'),
'style' => 'danger',
],
],