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
0af8ada8
Commit
0af8ada8
authored
Apr 26, 2019
by
Christian Wach
⚽
Browse files
Use WordPress i18n methods instead if ts()
parent
91ef78d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
assets/civicrm/block/civicrm-network-groups-cle.php
View file @
0af8ada8
...
...
@@ -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'
,
];
...
...
assets/civicrm/php/CRM/CiviNetworkGroups/Form/Inline/CiviNetworkGroups.php
View file @
0af8ada8
...
...
@@ -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'
);
}
...
...
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