Commit 0af8ada8 authored by Christian Wach's avatar Christian Wach
Browse files

Use WordPress i18n methods instead if ts()

parent 91ef78d0
......@@ -242,7 +242,7 @@ class CiviCRM_Network_Groups_CLE {
// Contact Layout Editor palette.
$block += [
'civinetworkgroups' => [
'title' => ts('National Groups'),
'title' => __('National Groups', 'civicrm-network-groups'),
'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' => [E::ts('Subject'), E::ts('Details'), E::ts('Call Result')],
'sample' => [__('Subject', 'civicrm-network-groups'), __('Details', 'civicrm-network-groups'), __('Call Result', '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(
ts('The network groups for this contact have been updated.'),
ts('Network groups updated'),
__('The network groups for this contact have been updated.', 'civicrm-network-groups'),
__('Network groups updated', 'civicrm-network-groups'),
'success'
);
} else {
CRM_Core_Session::setStatus(
ts('Oops! Something went wrong while updating the network groups for this contact.'),
ts('Network groups failure'),
__('Oops! Something went wrong while updating the network groups for this contact.', 'civicrm-network-groups'),
__('Network groups failure', 'civicrm-network-groups'),
'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