Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
plugins
CiviCRM Network Groups
Commits
4bfc0826
Commit
4bfc0826
authored
Apr 26, 2019
by
Christian Wach
⚽
Browse files
Propagate custom name to all parts of UI
parent
0af8ada8
Changes
2
Hide whitespace changes
Inline
Side-by-side
assets/civicrm/block/civicrm-network-groups-cle.php
View file @
4bfc0826
...
...
@@ -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'
,
];
...
...
assets/civicrm/php/CRM/CiviNetworkGroups/Form/Inline/CiviNetworkGroups.php
View file @
4bfc0826
...
...
@@ -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 group
s for this contact have been updated.'
,
'civicrm-network-groups'
),
__
(
'Network group
s 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 group
s for this contact.'
,
'civicrm-network-groups'
),
__
(
'Network group
s 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'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment