From cc5b5fb4b7a9f7ec1e1fcb5099409708758f768b Mon Sep 17 00:00:00 2001 From: Jerome Bakker Date: Wed, 4 May 2016 10:43:31 +0200 Subject: [PATCH] changed: system message content on group notification toggle --- actions/toggle_notifications.php | 5 ++++- languages/en.php | 4 ++++ languages/nl.php | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/actions/toggle_notifications.php b/actions/toggle_notifications.php index c5343405..63bbb989 100644 --- a/actions/toggle_notifications.php +++ b/actions/toggle_notifications.php @@ -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()); @@ -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); diff --git a/languages/en.php b/languages/en.php index d3e3161c..9871a325 100644 --- a/languages/en.php +++ b/languages/en.php @@ -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); diff --git a/languages/nl.php b/languages/nl.php index 477d650f..c4ca9649 100644 --- a/languages/nl.php +++ b/languages/nl.php @@ -1,10 +1,12 @@ '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.',