Commit 4bfc0826 authored by Christian Wach's avatar Christian Wach
Browse files

Propagate custom name to all parts of UI

parent 0af8ada8
......@@ -242,7 +242,7 @@ class CiviCRM_Network_Groups_CLE {
// Contact Layout Editor palette.
$block += [
'civinetworkgroups' => [
'title' => __('National Groups', 'civicrm-network-groups'),
'title' => civicrm_network_groups_title(),
'icon' => 'fa-edit',
'blocks' => [],
]
......@@ -252,7 +252,7 @@ class CiviCRM_Network_Groups_CLE {
$block['civinetworkgroups']['blocks']['civinetworkgroups'] = [
'title' => civicrm_network_groups_title(),
'tpl_file' => 'CRM/CiviNetworkGroups/Page/Inline/CiviNetworkGroups.tpl',
'sample' => [__('Subject', 'civicrm-network-groups'), __('Details', 'civicrm-network-groups'), __('Call Result', 'civicrm-network-groups')],
'sample' => [__('Group One', 'civicrm-network-groups'), __('Group Two', 'civicrm-network-groups')],
'edit' => FALSE,
'selector' => '#crm-civinetworkgroups-content',
];
......
......@@ -145,14 +145,14 @@ class CRM_CiviNetworkGroups_Form_Inline_CiviNetworkGroups extends CRM_Contact_Fo
// Show a message.
if (empty($errors)) {
CRM_Core_Session::setStatus(
__('The network groups for this contact have been updated.', 'civicrm-network-groups'),
__('Network groups updated', 'civicrm-network-groups'),
sprintf( __('The %s for this contact have been updated.', 'civicrm-network-groups'), civicrm_network_groups_title() ),
sprintf( __('%s updated', 'civicrm-network-groups'), civicrm_network_groups_title() ),
'success'
);
} else {
CRM_Core_Session::setStatus(
__('Oops! Something went wrong while updating the network groups for this contact.', 'civicrm-network-groups'),
__('Network groups failure', 'civicrm-network-groups'),
sprintf( __('Oops! Something went wrong while updating the %s for this contact.', 'civicrm-network-groups'), civicrm_network_groups_title()),
sprintf( __('%s failure', 'civicrm-network-groups'), civicrm_network_groups_title() ),
'error'
);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment