Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdminUi Extension - Translate strings #24553

Merged
merged 1 commit into from
Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
use CRM_CivicrmAdminUi_ExtensionUtil as E;

return [
[
'name' => 'SavedSearch_Administer_Contact_Types',
Expand All @@ -9,7 +11,7 @@
'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,
Expand Down Expand Up @@ -41,7 +43,7 @@
'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' => [
Expand Down Expand Up @@ -70,7 +72,7 @@
'type' => 'field',
'key' => 'label',
'dataType' => 'String',
'label' => 'Label',
'label' => E::ts('Label'),
'sortable' => TRUE,
'icons' => [
[
Expand All @@ -84,7 +86,7 @@
'type' => 'field',
'key' => 'parent_id:label',
'dataType' => 'Integer',
'label' => 'Parent',
'label' => E::ts('Parent'),
'sortable' => TRUE,
'icons' => [
[
Expand All @@ -101,7 +103,7 @@
'type' => 'field',
'key' => 'description',
'dataType' => 'Text',
'label' => 'Description',
'label' => E::ts('Description'),
'sortable' => TRUE,
'editable' => TRUE,
],
Expand All @@ -114,7 +116,7 @@
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-pencil',
'text' => 'Edit',
'text' => E::ts('Edit'),
'style' => 'default',
'path' => '',
'condition' => [],
Expand All @@ -125,7 +127,7 @@
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-trash',
'text' => 'Delete',
'text' => E::ts('Delete'),
'style' => 'danger',
'path' => '',
'condition' => [
Expand All @@ -140,7 +142,7 @@
],
'addButton' => [
'path' => 'civicrm/admin/options/subtype/edit?action=add&reset=1',
'text' => 'Add Contact Type',
'text' => E::ts('Add Contact Type'),
'icon' => 'fa-plus',
],
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
use CRM_CivicrmAdminUi_ExtensionUtil as E;

return [
[
'name' => 'SavedSearch_Administer_Custom_Fields',
Expand All @@ -9,7 +11,7 @@
'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',
Expand Down Expand Up @@ -46,7 +48,7 @@
'version' => 4,
'values' => [
'name' => 'Table',
'label' => 'Table',
'label' => E::ts('Table'),
'saved_search_id.name' => 'Administer_Custom_Fields',
'type' => 'table',
'settings' => [
Expand All @@ -66,43 +68,43 @@
'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,
],
Expand All @@ -115,7 +117,7 @@
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-pencil',
'text' => 'Edit Field',
'text' => E::ts('Edit Field'),
'style' => 'default',
'path' => '',
'condition' => [],
Expand All @@ -125,7 +127,7 @@
'alignment' => 'text-right',
],
[
'text' => 'Actions',
'text' => E::ts('Actions'),
'style' => 'default',
'size' => 'btn-xs',
'icon' => 'fa-bars',
Expand All @@ -136,7 +138,7 @@
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-eye',
'text' => 'Preview Field',
'text' => E::ts('Preview Field'),
'style' => 'default',
'path' => '',
'condition' => [],
Expand All @@ -147,7 +149,7 @@
'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' => [
Expand All @@ -161,7 +163,7 @@
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-random',
'text' => 'Move Field',
'text' => E::ts('Move Field'),
'style' => 'default',
'path' => '',
'condition' => [],
Expand All @@ -172,7 +174,7 @@
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-trash',
'text' => 'Delete Field',
'text' => E::ts('Delete Field'),
'style' => 'danger',
'path' => '',
'condition' => [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
use CRM_CivicrmAdminUi_ExtensionUtil as E;

return [
[
'name' => 'SavedSearch_Administer_Custom_Groups',
Expand All @@ -9,7 +11,7 @@
'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',
Expand Down Expand Up @@ -57,7 +59,7 @@
'version' => 4,
'values' => [
'name' => 'Table',
'label' => 'Table',
'label' => E::ts('Table'),
'saved_search_id.name' => 'Administer_Custom_Groups',
'type' => 'table',
'settings' => [
Expand All @@ -77,37 +79,37 @@
'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,
],
[
Expand All @@ -119,7 +121,7 @@
'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]',
],
Expand All @@ -129,7 +131,7 @@
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-pencil',
'text' => 'Settings',
'text' => E::ts('Settings'),
'style' => 'default',
],
],
Expand All @@ -148,7 +150,7 @@
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-eye',
'text' => 'Preview Group',
'text' => E::ts('Preview Group'),
'style' => 'default',
],
[
Expand All @@ -157,7 +159,7 @@
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-trash',
'text' => 'Delete Group',
'text' => E::ts('Delete Group'),
'style' => 'danger',
],
],
Expand Down