Commit 260fb973 authored by Penny Leach's avatar Penny Leach
Browse files

Merge commit 'origin/groupforums' into groupforums

parents 2d0a9158 5b3f7de9
......@@ -28,15 +28,15 @@ define('INTERNAL', 1);
define('MENUITEM', 'groups/groupsiown');
require(dirname(dirname(__FILE__)) . '/init.php');
require_once('pieforms/pieform.php');
define('TITLE', get_string('creategroup'));
define('TITLE', get_string('creategroup', 'group'));
$joinoptions = array(
'invite' => get_string('membershiptype.invite'),
'request' => get_string('membershiptype.request'),
'open' => get_string('membershiptype.open'),
'invite' => get_string('membershiptype.invite', 'group'),
'request' => get_string('membershiptype.request', 'group'),
'open' => get_string('membershiptype.open', 'group'),
);
if ($USER->get('admin') || $USER->get('staff')) {
$joinoptions['controlled'] = get_string('membershiptype.controlled');
$joinoptions['controlled'] = get_string('membershiptype.controlled', 'group');
}
$creategroup = pieform(array(
......@@ -47,25 +47,25 @@ $creategroup = pieform(array(
'elements' => array(
'name' => array(
'type' => 'text',
'title' => get_string('groupname'),
'title' => get_string('groupname', 'group'),
'rules' => array( 'required' => true, 'maxlength' => 128 ),
),
'description' => array(
'type' => 'wysiwyg',
'title' => get_string('groupdescription'),
'title' => get_string('groupdescription', 'group'),
'rows' => 10,
'cols' => 80,
),
'membershiptype' => array(
'type' => 'select',
'title' => get_string('membershiptype'),
'title' => get_string('membershiptype', 'group'),
'options' => $joinoptions,
'defaultvalue' => 'open',
'help' => true,
),
'submit' => array(
'type' => 'submitcancel',
'value' => array(get_string('savegroup'), get_string('cancel')),
'value' => array(get_string('savegroup', 'group'), get_string('cancel')),
),
),
));
......@@ -77,7 +77,7 @@ function creategroup_validate(Pieform $form, $values) {
$cid = get_field('group', 'id', 'owner', $USER->get('id'), 'name', $values['name']);
if ($cid) {
$form->set_error('name', get_string('groupalreadyexists'));
$form->set_error('name', get_string('groupalreadyexists', 'group'));
}
}
......@@ -121,7 +121,7 @@ function creategroup_submit(Pieform $form, $values) {
);
}
$SESSION->add_ok_msg(get_string('groupsaved'));
$SESSION->add_ok_msg(get_string('groupsaved', 'group'));
db_commit();
......
......@@ -28,7 +28,7 @@ define('INTERNAL', 1);
define('MENUITEM', 'groups/groupsiown');
require(dirname(dirname(__FILE__)) . '/init.php');
require_once('pieforms/pieform.php');
define('TITLE', get_string('editgroup'));
define('TITLE', get_string('editgroup', 'group'));
$id = param_integer('id');
......@@ -40,12 +40,12 @@ if (!$group_data) {
}
$joinoptions = array(
'invite' => get_string('membershiptype.invite'),
'request' => get_string('membershiptype.request'),
'open' => get_string('membershiptype.open'),
'invite' => get_string('membershiptype.invite', 'group'),
'request' => get_string('membershiptype.request', 'group'),
'open' => get_string('membershiptype.open', 'group'),
);
if ($USER->get('admin') || $USER->get('staff')) {
$joinoptions['controlled'] = get_string('membershiptype.controlled');
$joinoptions['controlled'] = get_string('membershiptype.controlled', 'group');
}
$editgroup = pieform(array(
......@@ -56,20 +56,20 @@ $editgroup = pieform(array(
'elements' => array(
'name' => array(
'type' => 'text',
'title' => get_string('groupname'),
'title' => get_string('groupname', 'group'),
'rules' => array( 'required' => true, 'maxlength' => 128 ),
'defaultvalue' => $group_data->name,
),
'description' => array(
'type' => 'wysiwyg',
'title' => get_string('groupdescription'),
'title' => get_string('groupdescription', 'group'),
'rows' => 10,
'cols' => 70,
'defaultvalue' => $group_data->description,
),
'membershiptype' => array(
'type' => 'select',
'title' => get_string('membershiptype'),
'title' => get_string('membershiptype', 'group'),
'options' => $joinoptions,
'defaultvalue' => $group_data->jointype,
'help' => true,
......@@ -80,7 +80,7 @@ $editgroup = pieform(array(
),
'submit' => array(
'type' => 'submitcancel',
'value' => array(get_string('savegroup'), get_string('cancel')),
'value' => array(get_string('savegroup', 'group'), get_string('cancel')),
),
),
));
......@@ -92,7 +92,7 @@ function editgroup_validate(Pieform $form, $values) {
$cid = get_field('group', 'id', 'owner', $USER->get('id'), 'name', $values['name']);
if ($cid && $cid != $values['id']) {
$form->set_error('name', get_string('groupalreadyexists'));
$form->set_error('name', get_string('groupalreadyexists', 'group'));
}
}
......@@ -120,7 +120,7 @@ function editgroup_submit(Pieform $form, $values) {
'id'
);
$SESSION->add_ok_msg(get_string('groupsaved'));
$SESSION->add_ok_msg(get_string('groupsaved', 'group'));
db_commit();
......
......@@ -35,15 +35,15 @@ json_headers();
$leave = param_integer('leave');
if (!$group = get_record('group', 'id', $leave)) {
json_reply(true, get_string('invalidgroup'));
json_reply(true, get_string('invalidgroup', 'group'));
}
if (!group_user_can_leave($group)) {
json_reply(true, get_string('couldnotleavegroup'));
json_reply(true, get_string('couldnotleavegroup', 'group'));
}
group_remove_user($group->id, $USER->get('id'));
json_reply(false, get_string('leftgroup'));
json_reply(false, get_string('leftgroup', 'group'));
?>
......@@ -38,7 +38,7 @@ if ($action == 'delete') {
// check owner
$owner = get_field('group', 'owner', 'id', $id);
if ($owner != $USER->get('id')) {
json_reply('local', get_string('cantdeletegroupdontown'));
json_reply('local', get_string('cantdeletegroupdontown', 'group'));
}
db_begin();
delete_records('view_access_group', 'group', $id);
......@@ -48,7 +48,7 @@ if ($action == 'delete') {
delete_records('group', 'id', $id);
db_commit();
json_reply(null, get_string('deletegroupsuccessful'));
json_reply(null, get_string('deletegroupsuccessful', 'group'));
}
json_reply('local', 'Unknown action');
......
......@@ -38,8 +38,8 @@ $editurl = get_config('wwwroot') . 'group/edit.php?id=';
$editstr = json_encode(get_string('edit'));
$edithelp = get_help_icon('core', 'groups', null, null, null, 'groupeditlink');
$deletestr = json_encode(get_string('delete'));
$confirmdelete_hasviews = json_encode(get_string('groupconfirmdeletehasviews'));
$confirmdelete = json_encode(get_string('groupconfirmdelete'));
$confirmdelete_hasviews = json_encode(get_string('groupconfirmdeletehasviews', 'group'));
$confirmdelete = json_encode(get_string('groupconfirmdelete', 'group'));
$javascript = <<<EOF
var grouplist = new TableRenderer(
......
......@@ -119,7 +119,7 @@ switch ($type) {
foreach ($data as $d) {
$d->displayname = display_name($d);
if (!empty($d->tutor) && $membership == GROUP_MEMBERSHIP_MEMBER) {
$d->displayname .= ' (' . get_string('tutor') . ')';
$d->displayname .= ' (' . get_string('tutor', 'group') . ')';
}
}
break;
......@@ -161,25 +161,25 @@ switch ($type) {
}
}
catch (SQLException $e) {
json_reply(true, get_string('memberchangefailed'));
json_reply(true, get_string('memberchangefailed', 'group'));
}
require_once('activity.php');
activity_occurred('maharamessage',
array('users' => array($user),
'subject' => get_string('groupmembershipchangesubject', 'mahara', $group->name),
'message' => get_string('groupmembershipchangemessage' . $v),
'subject' => get_string('groupmembershipchangesubject', 'group', $group->name),
'message' => get_string('groupmembershipchangemessage' . $v, 'group'),
'url' => get_config('wwwroot') . 'group/view.php?id=' . $id));
}
}
json_reply(false, get_string('memberchangesuccess'));
json_reply(false, get_string('memberchangesuccess', 'group'));
break;
case 'release':
$view = param_integer('view');
require_once(get_config('libroot') . 'view.php');
$view = new View($view);
$view->release($id);
json_reply(false, get_string('viewreleasedsuccess'));
json_reply(false, get_string('viewreleasedsuccess', 'group'));
break;
}
......
......@@ -50,33 +50,33 @@ if (!empty($joincontrol)) {
// make sure they're a member and can leave
if ($ismember && $group->jointype != 'controlled') {
group_remove_member($id, $USER->get('id'));
$SESSION->add_ok_msg(get_string('leftgroup'));
$SESSION->add_ok_msg(get_string('leftgroup', 'group'));
}
else {
$SESSION->add_error_msg(get_string('couldnotleavegroup'));
$SESSION->add_error_msg(get_string('couldnotleavegroup', 'group'));
}
break;
case 'join':
if (!$ismember && $group->jointype == 'open') {
group_add_member($id, $USER->get('id'));
$SESSION->add_ok_msg(get_string('joinedgroup'));
$SESSION->add_ok_msg(get_string('joinedgroup', 'group'));
}
else {
$SESSION->add_error_msg(get_string('couldnotjoingroup'));
$SESSION->add_error_msg(get_string('couldnotjoingroup', 'group'));
}
break;
case 'acceptinvite':
case 'declineinvite':
if (!$request = get_record('group_member_invite', 'member', $USER->get('id'), 'group', $id)) {
$SESSION->add_error_msg(get_string('groupnotinvited'));
$SESSION->add_error_msg(get_string('groupnotinvited', 'group'));
break;
}
if ($joincontrol == 'acceptinvite') {
group_add_member($id, $USER->get('id'));
$message = get_string('groupinviteaccepted');
$message = get_string('groupinviteaccepted', 'group');
}
else {
$message = get_string('groupinvitedeclined');
$message = get_string('groupinvitedeclined', 'group');
}
delete_records('group_member_invite', 'member', $USER->get('id'), 'group', $id);
$SESSION->add_ok_msg($message);
......@@ -92,23 +92,23 @@ if (!empty($joincontrol)) {
$owner = get_record('usr', 'id', $group->owner);
insert_record('group_member_request', $gmr);
if (empty($gmr->reason)) {
$message = get_string('grouprequestmessage', 'mahara',
$message = get_string('grouprequestmessage', 'group',
display_name($USER, $owner), $group->name);
}
else {
$message = get_string('grouprequestmessagereason', 'mahara',
$message = get_string('grouprequestmessagereason', 'group',
display_name($USER, $owner), $group->name, $gmr->reason);
}
require_once('activity.php');
activity_occurred('maharamessage',
array('users' => array($group->owner),
'subject' => get_string('grouprequestsubject'),
'subject' => get_string('grouprequestsubject', 'group'),
'message' => $message,
'url' => get_config('wwwroot') . 'group/view.php?id=' . $id));
$SESSION->add_ok_msg(get_string('grouprequestsent'));
$SESSION->add_ok_msg(get_string('grouprequestsent', 'group'));
}
else {
$SESSION->add_error_msg(get_string('couldnotrequestgroup'));
$SESSION->add_error_msg(get_string('couldnotrequestgroup', 'group'));
}
break;
}
......@@ -125,14 +125,14 @@ $viewview = get_config('wwwroot') . 'view/view.php?id=';
$commview = get_config('wwwroot') . 'group/view.php';
// strings that are used in the js
$releaseviewstr = get_string('releaseview');
$tutorstr = get_string('tutor');
$memberstr = get_string('member');
$removestr = get_string('remove');
$declinestr = get_string('declinerequest');
$updatefailedstr = get_string('updatefailed');
$requeststr = get_string('sendrequest');
$reasonstr = get_string('reason');
$releaseviewstr = get_string('releaseview', 'group');
$tutorstr = get_string('tutor', 'group');
$memberstr = get_string('member', 'group');
$removestr = get_string('remove', 'group');
$declinestr = get_string('declinerequest', 'group');
$updatefailedstr = get_string('updatefailed', 'group');
$requeststr = get_string('sendrequest', 'group');
$reasonstr = get_string('reason', 'group');
// all the permissions stuff
//$tutor = (int)($membership && ($membership != GROUP_MEMBERSHIP_MEMBER));
......@@ -310,7 +310,16 @@ if (!empty($pending) && $canupdate && $request) {
addLoadEvent(function () { switchPending(1) });
EOF;
}
$smarty = smarty(array('tablerenderer'));
// Add a sideblock for group interactions
$sideblock = array(
'name' => 'groupinteractions',
'weight' => -5,
'data' => get_records_array('interaction_instance', 'group', $id, 'ctime', 'id, plugin, title'),
);
$smarty = smarty(array('tablerenderer'), array(), array(), array('sideblocks' => array($sideblock)));
$smarty->assign('INLINEJAVASCRIPT', $javascript);
$smarty->assign('member', $membership);
$smarty->assign('tutor', $tutor);
......
<?php
/**
* This program is part of Mahara
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @package mahara
* @subpackage lang
* @author Nigel McNie <nigel@catalyst.net.nz>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
*
*/
defined('INTERNAL') || die();
// group
$string['groupname'] = 'Group Name';
$string['creategroup'] = 'Create Group';
$string['groupmemberrequests'] = 'Pending membership requests';
$string['addgroup'] = 'Add new group';
$string['sendinvitation'] = 'Send invite';
$string['invitetogroupsubject'] = 'You were invited to join a group';
$string['invitetogroupmessage'] = '%s has invited you to join a group, \'%s\'. Click on the link below for more information.';
$string['inviteuserfailed'] = 'Failed to invite the user';
$string['userinvited'] = 'Invite sent';
$string['addedtogroupsubject'] = 'You were added to a group';
$string['addedtogroupmessage'] = '%s has added you to a group, \'%s\'. Click on the link below to see the group';
$string['adduserfailed'] = 'Failed to add the user';
$string['useradded'] = 'User added';
$string['editgroup'] = 'Edit Group';
$string['savegroup'] = 'Save Group';
$string['groupsaved'] = 'Group Saved Successfully';
$string['groupname'] = 'Group Name';
$string['invalidgroup'] = 'The group doesn\'t exist';
$string['canteditdontown'] = 'You can\'t edit this group because you don\'t own it';
$string['groupdescription'] = 'Group Description';
$string['membershiptype'] = 'Group Membership Type';
$string['membershiptype.controlled'] = 'Controlled Membership';
$string['membershiptype.invite'] = 'Invite Only';
$string['membershiptype.request'] = 'Request Membership';
$string['membershiptype.open'] = 'Open Membership';
$string['pendingmembers'] = 'Pending Members';
$string['reason'] = 'Reason';
$string['approve'] = 'Approve';
$string['reject'] = 'Reject';
$string['groupalreadyexists'] = 'A Group by this name already exists';
$string['owner'] = 'Owner';
$string['members'] = 'Members';
$string['memberrequests'] = 'Membership requests';
$string['submittedviews'] = 'Submitted views';
$string['releaseview'] = 'Release view';
$string['tutor'] = 'Tutor';
$string['tutors'] = 'Tutors';
$string['member'] = 'Member';
$string['remove'] = 'Remove';
$string['updatemembership'] = 'Update membership';
$string['memberchangefailed'] = 'Failed to update some membership information';
$string['memberchangesuccess'] = 'Membership status changed successfully';
$string['viewreleasedsubject'] = 'Your view has been released';
$string['viewreleasedmessage'] = 'The view that you submitted to group %s has been released back to you by %s';
$string['viewreleasedsuccess'] = 'View was released successfully';
$string['groupmembershipchangesubject'] = 'Group membership: %s';
$string['groupmembershipchangemessagetutor'] = 'You have been promoted to a tutor in this group';
$string['groupmembershipchangemessagemember'] = 'You have been demoted from a tutor in this group';
$string['groupmembershipchangemessageremove'] = 'You have been removed from this group';
$string['groupmembershipchangemessagedeclinerequest'] = 'Your request to join this group has been declined';
$string['groupmembershipchangedmessageaddedtutor'] = 'You have been added as a tutor in this group';
$string['groupmembershipchangedmessageaddedmember'] = 'You have been added as a member in this group';
$string['leavegroup'] = 'Leave this group';
$string['joingroup'] = 'Join this group';
$string['requestjoingroup'] = 'Request to join this group';
$string['grouphaveinvite'] = 'You have been invited to join this group';
$string['groupnotinvited'] = 'You have not been invited to join this group';
$string['groupinviteaccepted'] = 'Invite accepted successfully! You are now a group member';
$string['groupinvitedeclined'] = 'Invite declined successfully!';
$string['acceptinvitegroup'] = 'Accept';
$string['declineinvitegroup'] = 'Decline';
$string['leftgroup'] = 'You have now left this group';
$string['leftgroupfailed'] = 'Leaving group failed';
$string['couldnotleavegroup'] = 'You cannot leave this group';
$string['joinedgroup'] = 'You are now a group member';
$string['couldnotjoingroup'] = 'You cannot join this group';
$string['grouprequestsent'] = 'Group membership request sent';
$string['couldnotrequestgroup'] = 'Could not send group membership request';
$string['groupjointypeopen'] = 'Membership to this group is open';
$string['groupjointypecontrolled'] = 'Membership to this group is controlled. You cannot join this group';
$string['groupjointypeinvite'] = 'Membership to this group is invite only';
$string['groupjointyperequest'] = 'Membership to this group is by request only';
$string['grouprequestsubject'] = 'New group membership request';
$string['grouprequestmessage'] = '%s has sent a membership request to join the group %s';
$string['grouprequestmessagereason'] = '%s has sent a membership request to join the group %s with the reason %s.';
$string['groupconfirmdelete'] = 'Are you sure you wish to delete this group?';
$string['groupconfirmdeletehasviews'] = 'Are you sure you wish to delete this group? Some of your views use this group for access control, removing this group would mean that the members of that group would not have access to the views.';
$string['deletegroup'] = 'Group Deleted Successfully';
// friendslist
$string['reasonoptional'] = 'Reason (optional)';
$string['request'] = 'Request';
$string['friendformaddsuccess'] = 'Added %s to your friends list';
$string['friendformremovesuccess'] = 'Removed %s from your friends list';
$string['friendformrequestsuccess'] = 'Sent a friendship request to %s';
$string['friendformacceptsuccess'] = 'Accepted friend request';
$string['friendformrejectsuccess'] = 'Rejected friend request';
$string['addtofriendslist'] = 'Add to friends';
$string['requestfriendship'] = 'Request friendship';
$string['addedtofriendslistsubject'] = 'New friend';
$string['addedtofriendslistmessage'] = '%s added you as a friend! This means that %s is also on your friend list now too. '
. ' Click on the link below to see their profile page';
$string['requestedfriendlistsubject'] = 'New friend request';
$string['requestedfriendlistmessage'] = '%s has requested that you add them as a friend. '
.' You can either do this from the link below, or from your friends list page';
$string['requestedfriendlistmessagereason'] = '%s has requested that you add them as a friend.'
. ' You can either do this from the link below, or from your friends list page.'
. ' Their reason was:
';
$string['removefromfriendslist'] = 'Remove from friends';
$string['confirmremovefriend'] = 'Are you sure you want to remove this user from your friends list?';
$string['removedfromfriendslistsubject'] = 'Removed from friends list';
$string['removedfromfriendslistmessage'] = '%s has removed you from their friends list.';
$string['removedfromfriendslistmessagereason'] = '%s has removed you from their friends list. Their reason was: ';
$string['friendshipalreadyrequested'] = 'You have requested to be added to %s\'s friends list';
$string['friendshipalreadyrequestedowner'] = '%s has requested to be added to your friends list';
$string['rejectfriendshipreason'] = 'Reason for rejecting request';
$string['friendrequestacceptedsubject'] = 'Friend request accepted';
$string['friendrequestacceptedmessage'] = '%s has accepted your friend request and they have been added to your friends list';
$string['friendrequestrejectedsubject'] = 'Friend request rejected';
$string['friendrequestrejectedmessage'] = '%s has rejected your friend request.';
$string['friendrequestrejectedmessagereason'] = '%s has rejected your friend request. Their reason was: ';
$string['allfriends'] = 'All Friends';
$string['currentfriends'] = 'Current Friends';
$string['pendingfriends'] = 'Pending friends';
$string['backtofriendslist'] = 'Back to Friends List';
$string['findnewfriends'] = 'Find New Friends';
$string['seeallviews'] = 'See all %s views...';
$string['noviewstosee'] = 'None that you can see :(';
$string['whymakemeyourfriend'] = 'This is why you should make me your friend:';
$string['approverequest'] = 'Approve Request!';
$string['denyrequest'] = 'Deny Request';
$string['pending'] = 'pending';
$string['trysearchingforfriends'] = 'Try %ssearching for your friends%s to grow your network!';
$string['nobodyawaitsfriendapproval'] = 'Nobody is awaiting your approval to become your friend';
$string['sendfriendrequest'] = 'Send Friend Request!';
$string['addtomyfriends'] = 'Add to My Friends!';
$string['friendshiprequested'] = 'Friendship requested!';
$string['existingfriend'] = 'existing friend';
$string['nosearchresultsfound'] = 'No search results found :(';
$string['friendlistfailure'] = 'Failed to modify your friends list';
$string['userdoesntwantfriends'] = 'This user doesn\'t want any new friends';
$string['cannotrequestfriendshipwithself'] = 'You cannot request a friendship with yourself';
// Messaging between users
$string['messagebody'] = 'Send message'; // wtf
$string['sendmessage'] = 'Send message';
$string['messagesent'] = 'Message sent!';
$string['messagenotsent'] = 'Failed to send message';
$string['newusermessage'] = 'New message from %s';
// Group interactions
$string['groupinteractions'] = 'Group Interactions';
$string['nointeractions'] = 'There are no interactions in this group';
?>
......@@ -399,162 +399,9 @@ $string['view'] = 'view';
$string['View'] = 'View';
$string['watchlistupdated'] = 'Your watchlist has been updated';
// group
$string['groupname'] = 'Group Name';
$string['creategroup'] = 'Create Group';
$string['groupmemberrequests'] = 'Pending membership requests';
$string['addgroup'] = 'Add new group';
$string['sendinvitation'] = 'Send invite';
$string['invitetogroupsubject'] = 'You were invited to join a group';
$string['invitetogroupmessage'] = '%s has invited you to join a group, \'%s\'. Click on the link below for more information.';
$string['inviteuserfailed'] = 'Failed to invite the user';
$string['userinvited'] = 'Invite sent';
$string['addedtogroupsubject'] = 'You were added to a group';
$string['addedtogroupmessage'] = '%s has added you to a group, \'%s\'. Click on the link below to see the group';
$string['adduserfailed'] = 'Failed to add the user';
$string['useradded'] = 'User added';
$string['editgroup'] = 'Edit Group';
$string['savegroup'] = 'Save Group';
$string['groupsaved'] = 'Group Saved Successfully';
$string['groupname'] = 'Group Name';
$string['invalidgroup'] = 'The group doesn\'t exist';
$string['canteditdontown'] = 'You can\'t edit this group because you don\'t own it';
$string['groupdescription'] = 'Group Description';
$string['membershiptype'] = 'Group Membership Type';
$string['membershiptype.controlled'] = 'Controlled Membership';
$string['membershiptype.invite'] = 'Invite Only';
$string['membershiptype.request'] = 'Request Membership';
$string['membershiptype.open'] = 'Open Membership';
$string['pendingmembers'] = 'Pending Members';
$string['reason'] = 'Reason';
$string['approve'] = 'Approve';
$string['reject'] = 'Reject';
$string['groupalreadyexists'] = 'A Group by this name already exists';
$string['owner'] = 'Owner';
$string['members'] = 'Members';
$string['memberrequests'] = 'Membership requests';
$string['submittedviews'] = 'Submitted views';
$string['releaseview'] = 'Release view';
$string['tutor'] = 'Tutor';
$string['tutors'] = 'Tutors';
$string['member'] = 'Member';
$string['remove'] = 'Remove';
$string['updatemembership'] = 'Update membership';
$string['memberchangefailed'] = 'Failed to update some membership information';
$string['memberchangesuccess'] = 'Membership status changed successfully';
$string['viewreleasedsubject'] = 'Your view has been released';
$string['viewreleasedmessage'] = 'The view that you submitted to group %s has been released back to you by %s';
$string['viewreleasedsuccess'] = 'View was released successfully';
$string['groupmembershipchangesubject'] = 'Group membership: %s';
$string['groupmembershipchangemessagetutor'] = 'You have been promoted to a tutor in this group';
$string['groupmembershipchangemessagemember'] = 'You have been demoted from a tutor in this group';
$string['groupmembershipchangemessageremove'] = 'You have been removed from this group';
$string['groupmembershipchangemessagedeclinerequest'] = 'Your request to join this group has been declined';
$string['groupmembershipchangedmessageaddedtutor'] = 'You have been added as a tutor in this group';
$string['groupmembershipchangedmessageaddedmember'] = 'You have been added as a member in this group';
$string['leavegroup'] = 'Leave this group';
$string['joingroup'] = 'Join this group';
$string['requestjoingroup'] = 'Request to join this group';
$string['grouphaveinvite'] = 'You have been invited to join this group';
$string['groupnotinvited'] = 'You have not been invited to join this group';
$string['groupinviteaccepted'] = 'Invite accepted successfully! You are now a group member';