Skip to content

Commit

Permalink
changed: system message content on group notification toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed May 4, 2016
1 parent 8255ae3 commit cc5b5fb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion actions/toggle_notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
foreach ($NOTIFICATION_HANDLERS as $method => $dummy) {
elgg_remove_subscription($user->getGUID(), $method, $group->getGUID());
}

system_message(elgg_echo('group_tools:action:toggle_notifications:disabled', [$group->name]));
} else {
// user has no notification settings for this group and wishes to enable this
$user_settings = get_user_notification_settings($user->getGUID());
Expand Down Expand Up @@ -45,7 +47,8 @@
foreach ($found as $method) {
elgg_add_subscription($user->getGUID(), $method, $group->getGUID());
}

system_message(elgg_echo('group_tools:action:toggle_notifications:enabled', [$group->name]));
}

system_message(elgg_echo('save:success'));
forward(REFERER);
4 changes: 4 additions & 0 deletions languages/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,10 @@
// group bulk delete
'group_tools:action:bulk_delete:success' => "The selected groups were deleted",
'group_tools:action:bulk_delete:error' => "An error occured while deleting the groups, please try again",

// group toggle notifications
'group_tools:action:toggle_notifications:disabled' => "The notifications for the group '%s' have been disabled",
'group_tools:action:toggle_notifications:enabled' => "The notfications for the group '%s' have been enabled",
);

add_translation("en", $english);
4 changes: 3 additions & 1 deletion languages/nl.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php
/**
* This file was created by Translation Editor v5.1
* On 2016-04-19 15:49
* On 2016-05-04 10:42
*/

return array (
'group_tools:action:toggle_notifications:disabled' => 'De notificaties voor de groep \'%s\' zijn uitgeschakeld',
'group_tools:action:toggle_notifications:enabled' => 'De notificaties voor de groep \'%s\' zijn ingeschakeld',
'group_tools:settings:notifications:title' => 'Groep notificatie instellingen',
'group_tools:settings:notifications:notification_toggle' => 'Toon notificatie instelling bij het lid worden van een groep',
'group_tools:settings:notifications:notification_toggle:description' => 'Dit zal een systeem bericht tonen waarmee de gebruiker de notificatie instellingen kan aanpassen en in de e-mail notificaties over het groepslidmaatschap zal een link worden toegevoegd naar de notificatie instellingen voor de groep.',
Expand Down

0 comments on commit cc5b5fb

Please sign in to comment.