Update get_lang calls using full string.

pull/3016/head
Julio Montoya 6 years ago
parent 714e169289
commit 292add908d
  1. 36
      main/exercise/TestCategory.php
  2. 390
      main/exercise/exercise.class.php
  3. 46
      main/group/group.php
  4. 104
      main/group/group_category.php
  5. 44
      main/group/group_creation.php
  6. 16
      main/group/group_overview.php
  7. 68
      main/group/group_space.php
  8. 10
      main/group/import.php
  9. 16
      main/group/member_settings.php
  10. 106
      main/group/settings.php
  11. 12
      main/group/tutor_settings.php
  12. 122
      main/tracking/courseLog.php
  13. 8
      main/tracking/course_log_events.php
  14. 4
      main/tracking/course_log_groups.php
  15. 32
      main/tracking/course_log_resources.php
  16. 86
      main/tracking/course_log_tools.php
  17. 24
      main/tracking/course_session_report.php
  18. 64
      main/tracking/exams.php
  19. 34
      main/tracking/lp_results_by_user.php
  20. 8
      main/tracking/messages.php
  21. 22
      main/tracking/question_course_report.php
  22. 70
      main/tracking/total_time.php

@ -496,7 +496,7 @@ class TestCategory
$courseId = api_get_course_int_id();
}
$categories = self::getCategoryListInfo('', $courseId);
$result = ['0' => get_lang('NoCategorySelected')];
$result = ['0' => get_lang('GeneralSelected')];
for ($i = 0; $i < count($categories); $i++) {
$result[$categories[$i]->id] = $categories[$i]->name;
}
@ -725,8 +725,8 @@ class TestCategory
$table = new HTML_Table(['class' => 'table table-bordered', 'id' => 'category_results']);
$table->setHeaderContents(0, 0, get_lang('Categories'));
$table->setHeaderContents(0, 1, get_lang('AbsoluteScore'));
$table->setHeaderContents(0, 2, get_lang('RelativeScore'));
$table->setHeaderContents(0, 1, get_lang('Absolute score'));
$table->setHeaderContents(0, 2, get_lang('Relative score'));
$row = 1;
$none_category = [];
@ -767,7 +767,7 @@ class TestCategory
}
if (!empty($none_category)) {
$table->setCellContents($row, 0, get_lang('None'));
$table->setCellContents($row, 0, get_lang('none'));
$table->setCellContents(
$row,
1,
@ -865,7 +865,7 @@ class TestCategory
}
}
if (empty($row['title']) && empty($row['category_id'])) {
$row['title'] = get_lang('NoCategory');
$row['title'] = get_lang('General');
}
$categories[$row['category_id']] = $row;
}
@ -886,12 +886,12 @@ class TestCategory
{
switch ($action) {
case 'new':
$header = get_lang('AddACategory');
$submit = get_lang('AddTestCategory');
$header = get_lang('Add category');
$submit = get_lang('Add test category');
break;
case 'edit':
$header = get_lang('EditCategory');
$submit = get_lang('ModifyCategory');
$header = get_lang('Edit this category');
$submit = get_lang('Edit category');
break;
}
@ -901,12 +901,12 @@ class TestCategory
$form->addElement(
'text',
'category_name',
get_lang('CategoryName'),
get_lang('Category name'),
['class' => 'span6']
);
$form->add_html_editor(
'category_description',
get_lang('CategoryDescription'),
get_lang('Category description'),
false,
false,
[
@ -949,7 +949,7 @@ class TestCategory
$form->setDefaults($defaults);
// setting the rules
$form->addRule('category_name', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('category_name', get_lang('Required field'), 'required');
}
/**
@ -973,7 +973,7 @@ class TestCategory
$warning = null;
if ($nbQuestionsTotal != $real_question_count) {
$warning = Display::return_message(
get_lang('CheckThatYouHaveEnoughQuestionsInYourCategories'),
get_lang('Make sure you have enough questions in your categories.'),
'warning'
);
}
@ -982,14 +982,14 @@ class TestCategory
$return .= '<table class="data_table">';
$return .= '<tr>';
$return .= '<th height="24">'.get_lang('Categories').'</th>';
$return .= '<th width="70" height="24">'.get_lang('Number').'</th></tr>';
$return .= '<th width="70" height="24">'.get_lang('N°').'</th></tr>';
$emptyCategory = [
'id' => '0',
'name' => get_lang('NoCategory'),
'name' => get_lang('General'),
'description' => '',
'iid' => '0',
'title' => get_lang('NoCategory'),
'title' => get_lang('General'),
];
$categories[] = $emptyCategory;
@ -1008,7 +1008,7 @@ class TestCategory
}
$return .= '</table>';
$return .= get_lang('ZeroMeansNoQuestionWillBeSelectedMinusOneMeansThatAllQuestionsWillBeSelected');
$return .= get_lang('-1 = All questions will be selected.');
}
return $return;
@ -1163,7 +1163,7 @@ class TestCategory
$links .= '<a href="'.api_get_self().'?action=editcategory&category_id='.$category['id'].'&'.api_get_cidreq().'">'.
Display::return_icon('edit.png', get_lang('Edit'), [], ICON_SIZE_SMALL).'</a>';
$links .= ' <a href="'.api_get_self().'?'.api_get_cidreq().'&action=deletecategory&category_id='.$category['id'].'" ';
$links .= 'onclick="return confirmDelete(\''.self::protectJSDialogQuote(get_lang('DeleteCategoryAreYouSure').'['.$rowname).'] ?\', \'id_cat'.$category['id'].'\');">';
$links .= 'onclick="return confirmDelete(\''.self::protectJSDialogQuote(get_lang('Are you sure you want to delete this category?').'['.$rowname).'] ?\', \'id_cat'.$category['id'].'\');">';
$links .= Display::return_icon('delete.png', get_lang('Delete'), [], ICON_SIZE_SMALL).'</a>';
}

File diff suppressed because it is too large Load Diff

@ -39,7 +39,7 @@ $(function() {
}
});
</script>';
$nameTools = get_lang('GroupManagement');
$nameTools = get_lang('Groups management');
/*
* Self-registration and un-registration
@ -58,7 +58,7 @@ if (isset($_GET['action']) && $is_allowed_in_course) {
case 'set_visible':
if (api_is_allowed_to_edit()) {
GroupManager::setVisible($my_get_id);
Display::addFlash(Display::return_message(get_lang('ItemUpdated')));
Display::addFlash(Display::return_message(get_lang('Item updated')));
header("Location: $currentUrl");
exit;
}
@ -66,7 +66,7 @@ if (isset($_GET['action']) && $is_allowed_in_course) {
case 'set_invisible':
if (api_is_allowed_to_edit()) {
GroupManager::setInvisible($my_get_id);
Display::addFlash(Display::return_message(get_lang('ItemUpdated')));
Display::addFlash(Display::return_message(get_lang('Item updated')));
header("Location: $currentUrl");
exit;
}
@ -74,7 +74,7 @@ if (isset($_GET['action']) && $is_allowed_in_course) {
case 'self_reg':
if (GroupManager::is_self_registration_allowed($userId, $groupInfo)) {
GroupManager::subscribe_users($userId, $groupInfo);
Display::addFlash(Display::return_message(get_lang('GroupNowMember')));
Display::addFlash(Display::return_message(get_lang('You are now a member of this group.')));
header("Location: $currentUrl");
exit;
} else {
@ -86,7 +86,7 @@ if (isset($_GET['action']) && $is_allowed_in_course) {
case 'self_unreg':
if (GroupManager::is_self_unregistration_allowed($userId, $groupInfo)) {
GroupManager::unsubscribe_users($userId, $groupInfo);
Display::addFlash(Display::return_message(get_lang('StudentDeletesHimself')));
Display::addFlash(Display::return_message(get_lang('You\'re now unsubscribed.')));
header("Location: $currentUrl");
exit;
}
@ -108,7 +108,7 @@ if (api_is_allowed_to_edit(false, true)) {
GroupManager::deleteGroup($groupInfo);
}
Display::addFlash(Display::return_message(get_lang('SelectedGroupsDeleted')));
Display::addFlash(Display::return_message(get_lang('All selected groups have been deleted')));
header("Location: $currentUrl");
exit;
}
@ -120,7 +120,7 @@ if (api_is_allowed_to_edit(false, true)) {
GroupManager::unsubscribe_all_users($groupInfo);
}
Display::addFlash(Display::return_message(get_lang('SelectedGroupsEmptied')));
Display::addFlash(Display::return_message(get_lang('All selected groups are now empty')));
header("Location: $currentUrl");
exit;
}
@ -131,7 +131,7 @@ if (api_is_allowed_to_edit(false, true)) {
$groupInfo = GroupManager::get_group_properties($myGroupId);
GroupManager::fillGroupWithUsers($groupInfo);
}
Display::addFlash(Display::return_message(get_lang('SelectedGroupsFilled')));
Display::addFlash(Display::return_message(get_lang('All selected groups have been filled')));
header("Location: $currentUrl");
exit;
}
@ -144,21 +144,21 @@ if (api_is_allowed_to_edit(false, true)) {
switch ($_GET['action']) {
case 'swap_cat_order':
GroupManager::swap_category_order($my_get_id1, $my_get_id2);
Display::addFlash(Display::return_message(get_lang('CategoryOrderChanged')));
Display::addFlash(Display::return_message(get_lang('The category order was changed')));
header("Location: $currentUrl");
exit;
break;
case 'delete_one':
$groupInfo = GroupManager::get_group_properties($my_get_id);
GroupManager::deleteGroup($groupInfo);
Display::addFlash(Display::return_message(get_lang('GroupDel')));
Display::addFlash(Display::return_message(get_lang('Group deleted')));
header("Location: $currentUrl");
exit;
break;
case 'fill_one':
$groupInfo = GroupManager::get_group_properties($my_get_id);
GroupManager::fillGroupWithUsers($groupInfo);
Display::addFlash(Display::return_message(get_lang('GroupFilledGroups')));
Display::addFlash(Display::return_message(get_lang('Groups have been filled (or completed) by users present in the \'Users\' list.')));
header("Location: $currentUrl");
exit;
break;
@ -166,7 +166,7 @@ if (api_is_allowed_to_edit(false, true)) {
if (empty($sessionId)) {
GroupManager::delete_category($my_get_id);
Display::addFlash(
Display::return_message(get_lang('CategoryDeleted'))
Display::return_message(get_lang('The category has been deleted.'))
);
header("Location: $currentUrl");
exit;
@ -186,30 +186,30 @@ $actionsLeft = '';
if (api_is_allowed_to_edit(false, true)) {
$actionsLeft .= '<a href="group_creation.php?'.api_get_cidreq().'">'.
Display::return_icon('add-groups.png', get_lang('NewGroupCreate'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('add-groups.png', get_lang('Create new group(s)'), '', ICON_SIZE_MEDIUM).'</a>';
if (api_get_setting('allow_group_categories') === 'true' && empty($sessionId)) {
$actionsLeft .= '<a href="group_category.php?'.api_get_cidreq().'&action=add_category">'.
Display::return_icon('new_folder.png', get_lang('AddCategory'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('new_folder.png', get_lang('Add category'), '', ICON_SIZE_MEDIUM).'</a>';
} else {
$actionsLeft .= '<a href="group_category.php?'.api_get_cidreq().'&id=2">'.
Display::return_icon('settings.png', get_lang('PropModify'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('settings.png', get_lang('Edit settings'), '', ICON_SIZE_MEDIUM).'</a>';
}
$actionsLeft .= '<a href="import.php?'.api_get_cidreq().'&action=import">'.
Display::return_icon('import_csv.png', get_lang('Import'), '', ICON_SIZE_MEDIUM).'</a>';
$actionsLeft .= '<a href="group_overview.php?'.api_get_cidreq().'&action=export_all&type=csv">'.
Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('export_csv.png', get_lang('CSV export'), '', ICON_SIZE_MEDIUM).'</a>';
$actionsLeft .= '<a href="group_overview.php?'.api_get_cidreq().'&action=export_all&type=xls">'.
Display::return_icon('export_excel.png', get_lang('ExportAsXLS'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('export_excel.png', get_lang('Excel export'), '', ICON_SIZE_MEDIUM).'</a>';
$actionsLeft .= '<a href="group_overview.php?'.api_get_cidreq().'&action=export_pdf">'.
Display::return_icon('pdf.png', get_lang('ExportToPDF'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('pdf.png', get_lang('Export to PDF'), '', ICON_SIZE_MEDIUM).'</a>';
$actionsLeft .= '<a href="group_overview.php?'.api_get_cidreq().'">'.
Display::return_icon('group_summary.png', get_lang('GroupOverview'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('group_summary.png', get_lang('Groups overview'), '', ICON_SIZE_MEDIUM).'</a>';
}
$actionsRight = GroupManager::getSearchForm();
@ -224,7 +224,7 @@ if (api_get_setting('allow_group_categories') === 'true') {
'id' => 0,
'iid' => 0,
'description' => '',
'title' => get_lang('DefaultGroupCategory'),
'title' => get_lang('Default groups'),
];
$group_cats = array_merge([$defaultCategory], $group_cats);
@ -241,19 +241,19 @@ if (api_get_setting('allow_group_categories') === 'true') {
continue;
}
$label = Display::label(count($group_list).' '.get_lang('ExistingGroups'), 'info');
$label = Display::label(count($group_list).' '.get_lang('Groups'), 'info');
$actions = null;
if (api_is_allowed_to_edit(false, true) && !empty($categoryId) && empty($sessionId)) {
// Edit
$actions .= '<a href="group_category.php?'.api_get_cidreq().'&id='.$categoryId.'" title="'.get_lang('Edit').'">'.
Display::return_icon('edit.png', get_lang('EditCategory'), '', ICON_SIZE_SMALL).'</a>';
Display::return_icon('edit.png', get_lang('Edit this category'), '', ICON_SIZE_SMALL).'</a>';
// Delete
$actions .= Display::url(
Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL),
'group.php?'.api_get_cidreq().'&action=delete_category&id='.$categoryId,
[
'onclick' => 'javascript:if(!confirm('."'".addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES))."'".')) return false;',
'onclick' => 'javascript:if(!confirm('."'".addslashes(api_htmlentities(get_lang('Please confirm your choice'), ENT_QUOTES))."'".')) return false;',
]
);
// Move

@ -65,9 +65,9 @@ function check_groups_per_user($value)
if (isset($_GET['id'])) {
$category = GroupManager::get_category($_GET['id']);
$nameTools = get_lang('EditGroupCategory').': '.$category['title'];
$nameTools = get_lang('Edit group category').': '.$category['title'];
} else {
$nameTools = get_lang('AddCategory');
$nameTools = get_lang('Add category');
// Default values for new category
$category = [
'groups_per_user' => 1,
@ -130,10 +130,10 @@ $possible_values[GroupManager::GROUP_PER_MEMBER_NO_LIMIT] = get_lang('All');
$group = [
$form->createElement('select', 'groups_per_user', null, $possible_values, ['id' => 'groups_per_user']),
$form->createElement('static', null, null, get_lang('QtyOfUserCanSubscribe_PartAfterNumber')),
$form->createElement('static', null, null, get_lang(' groups')),
];
$form->addGroup($group, 'limit_group', get_lang('QtyOfUserCanSubscribe_PartBeforeNumber'), null, false);
$form->addRule('limit_group', get_lang('MaxGroupsPerUserInvalid'), 'callback', 'check_groups_per_user');
$form->addGroup($group, 'limit_group', get_lang('A user can be member of maximum'), null, false);
$form->addRule('limit_group', get_lang('The maximum number of groups per user you submitted is invalid. There are now users who are subscribed in more groups than the number you propose.'), 'callback', 'check_groups_per_user');
$form->addElement('html', '</div>');
@ -152,23 +152,23 @@ $group = [
$form->createElement(
'radio',
'max_member_no_limit',
get_lang('GroupLimit'),
get_lang('NoLimit'),
get_lang('Limit'),
get_lang('No limitation'),
GroupManager::MEMBER_PER_GROUP_NO_LIMIT
),
$form->createElement(
'radio',
'max_member_no_limit',
null,
get_lang('MaximumOfParticipants'),
get_lang('Maximum number of members'),
1,
['id' => 'max_member_selected']
),
$form->createElement('text', 'max_member', null, ['class' => 'span1', 'id' => 'max_member']),
$form->createElement('static', null, null, ' '.get_lang('GroupPlacesThis')),
$form->createElement('static', null, null, ' '.get_lang('seats (optional)')),
];
$form->addGroup($group, 'max_member_group', get_lang('GroupLimit'), null, false);
$form->addRule('max_member_group', get_lang('InvalidMaxNumberOfMembers'), 'callback', 'check_max_number_of_members');
$form->addGroup($group, 'max_member_group', get_lang('Limit'), null, false);
$form->addRule('max_member_group', get_lang('Please enter a valid number for the maximum number of members.'), 'callback', 'check_max_number_of_members');
$form->addElement('html', '</div>');
$form->addElement('html', '<div class="col-md-6">');
@ -177,16 +177,16 @@ $group = [
$form->createElement(
'checkbox',
'self_reg_allowed',
get_lang('GroupSelfRegistration'),
get_lang('GroupAllowStudentRegistration'),
get_lang('Registration'),
get_lang('Learners are allowed to self-register in groups'),
1
),
$form->createElement('checkbox', 'self_unreg_allowed', null, get_lang('GroupAllowStudentUnregistration'), 1),
$form->createElement('checkbox', 'self_unreg_allowed', null, get_lang('Learners are allowed to unregister themselves from groups'), 1),
];
$form->addGroup(
$group,
'',
Display::return_icon('user.png', get_lang('GroupSelfRegistration')).' '.get_lang('GroupSelfRegistration'),
Display::return_icon('user.png', get_lang('Registration')).' '.get_lang('Registration'),
null,
false
);
@ -195,21 +195,21 @@ $form->addElement('html', '</div>');
$form->addElement('hidden', 'action');
$form->addElement('html', '<div class="col-md-12">');
$form->addElement('header', get_lang('DefaultSettingsForNewGroups'));
$form->addElement('header', get_lang('Default settings for new groups'));
$form->addElement('html', '</div>');
$form->addElement('html', '<div class="col-md-6">');
// Documents settings.
$group = [
$form->createElement('radio', 'doc_state', get_lang('GroupDocument'), get_lang('NotAvailable'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'doc_state', null, get_lang('Public'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'doc_state', null, get_lang('Private'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'doc_state', get_lang('Documents'), get_lang('Not available'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'doc_state', null, get_lang('Public access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course)'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'doc_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)'), GroupManager::TOOL_PRIVATE),
];
$form->addGroup(
$group,
'',
Display::return_icon('folder.png', get_lang('GroupDocument')).' '.get_lang('GroupDocument'),
Display::return_icon('folder.png', get_lang('Documents')).' '.get_lang('Documents'),
null,
false
);
@ -223,21 +223,21 @@ if ($allowDocumentGroupAccess) {
'radio',
'document_access',
null,
get_lang('DocumentGroupShareMode'),
get_lang('Share mode'),
GroupManager::DOCUMENT_MODE_SHARE
),
$form->createElement(
'radio',
'document_access',
get_lang('GroupDocument'),
get_lang('DocumentGroupCollaborationMode'),
get_lang('Documents'),
get_lang('Collaboration mode'),
GroupManager::DOCUMENT_MODE_COLLABORATION
),
$form->createElement(
'radio',
'document_access',
null,
get_lang('DocumentGroupReadOnlyMode'),
get_lang('Read only mode'),
GroupManager::DOCUMENT_MODE_READ_ONLY
),
];
@ -246,8 +246,8 @@ if ($allowDocumentGroupAccess) {
'',
Display::return_icon(
'folder.png',
get_lang('GroupDocumentAccess')
).'<span>'.get_lang('GroupDocumentAccess').'</span>',
get_lang('DocumentsAccess')
).'<span>'.get_lang('DocumentsAccess').'</span>',
null,
false
);
@ -264,14 +264,14 @@ $form->addElement('html', '<div class="col-md-6">');
// Work settings.
$group = [
$form->createElement('radio', 'work_state', get_lang('GroupWork'), get_lang('NotAvailable'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'work_state', null, get_lang('Public'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'work_state', null, get_lang('Private'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'work_state', get_lang('Assignments'), get_lang('Not available'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'work_state', null, get_lang('Public access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course)'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'work_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)'), GroupManager::TOOL_PRIVATE),
];
$form->addGroup(
$group,
'',
Display::return_icon('work.png', get_lang('GroupWork'), [], ICON_SIZE_SMALL).' '.get_lang('GroupWork'),
Display::return_icon('work.png', get_lang('Assignments'), [], ICON_SIZE_SMALL).' '.get_lang('Assignments'),
'',
false
);
@ -282,14 +282,14 @@ $form->addElement('html', '<div class="col-md-6">');
// Calendar settings.
$group = [
$form->createElement('radio', 'calendar_state', get_lang('GroupCalendar'), get_lang('NotAvailable'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'calendar_state', null, get_lang('Public'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'calendar_state', null, get_lang('Private'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'calendar_state', get_lang('Agenda'), get_lang('Not available'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'calendar_state', null, get_lang('Public access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course)'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'calendar_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)'), GroupManager::TOOL_PRIVATE),
];
$form->addGroup(
$group,
'',
Display::return_icon('agenda.png', get_lang('GroupCalendar')).' '.get_lang('GroupCalendar'),
Display::return_icon('agenda.png', get_lang('Agenda')).' '.get_lang('Agenda'),
null,
false
);
@ -303,14 +303,14 @@ $form->addElement('html', '<div class="col-md-6">');
// Announcements settings.
$group = [
$form->createElement('radio', 'announcements_state', get_lang('GroupAnnouncements'), get_lang('NotAvailable'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'announcements_state', null, get_lang('Public'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'announcements_state', null, get_lang('Private'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'announcements_state', get_lang('Announcements'), get_lang('Not available'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'announcements_state', null, get_lang('Public access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course)'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'announcements_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)'), GroupManager::TOOL_PRIVATE),
];
$form->addGroup(
$group,
'',
Display::return_icon('announce.png', get_lang('GroupAnnouncements')).' '.get_lang('GroupAnnouncements'),
Display::return_icon('announce.png', get_lang('Announcements')).' '.get_lang('Announcements'),
null,
false
);
@ -321,14 +321,14 @@ $form->addElement('html', '<div class="col-md-6">');
// Forum settings.
$group = [
$form->createElement('radio', 'forum_state', get_lang('GroupForum'), get_lang('NotAvailable'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'forum_state', null, get_lang('Public'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'forum_state', null, get_lang('Private'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'forum_state', get_lang('Group Forum'), get_lang('Not available'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'forum_state', null, get_lang('Public access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course)'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'forum_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)'), GroupManager::TOOL_PRIVATE),
];
$form->addGroup(
$group,
'',
Display::return_icon('forum.png', get_lang('GroupForum')).' '.get_lang('GroupForum'),
Display::return_icon('forum.png', get_lang('Group Forum')).' '.get_lang('Group Forum'),
null,
false
);
@ -343,14 +343,14 @@ $form->addElement('html', '<div class="col-md-6">');
// Wiki settings.
$group = [
$form->createElement('radio', 'wiki_state', get_lang('GroupWiki'), get_lang('NotAvailable'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'wiki_state', null, get_lang('Public'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'wiki_state', null, get_lang('Private'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'wiki_state', get_lang('Wiki'), get_lang('Not available'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'wiki_state', null, get_lang('Public access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course)'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'wiki_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)'), GroupManager::TOOL_PRIVATE),
];
$form->addGroup(
$group,
'',
Display::return_icon('wiki.png', get_lang('GroupWiki')).' '.get_lang('GroupWiki'),
Display::return_icon('wiki.png', get_lang('Wiki')).' '.get_lang('Wiki'),
null,
false
);
@ -360,9 +360,9 @@ $form->addElement('html', '<div class="col-md-6">');
// Chat settings.
$group = [
$form->createElement('radio', 'chat_state', get_lang('Chat'), get_lang('NotAvailable'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'chat_state', null, get_lang('Public'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'chat_state', null, get_lang('Private'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'chat_state', get_lang('Chat'), get_lang('Not available'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'chat_state', null, get_lang('Public access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course)'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'chat_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)'), GroupManager::TOOL_PRIVATE),
];
$form->addGroup(
$group,
@ -414,7 +414,7 @@ if ($form->validate()) {
$values['groups_per_user'],
isset($values['document_access']) ? $values['document_access'] : 0
);
Display::addFlash(Display::return_message(get_lang('GroupPropertiesModified')));
Display::addFlash(Display::return_message(get_lang('Group settings have been modified')));
header("Location: ".$currentUrl."&category=".$values['id']);
exit;
case 'add_category':
@ -434,7 +434,7 @@ if ($form->validate()) {
$values['groups_per_user'],
isset($values['document_access']) ? $values['document_access'] : 0
);
Display::addFlash(Display::return_message(get_lang('CategoryCreated')));
Display::addFlash(Display::return_message(get_lang('Category created')));
header("Location: ".$currentUrl);
exit;
break;
@ -447,7 +447,7 @@ Display::display_header($nameTools, 'Group');
// actions bar
echo '<div class="actions">';
echo '<a href="group.php">'.
Display::return_icon('back.png', get_lang('BackToGroupList'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('back.png', get_lang('Back to Groups list'), '', ICON_SIZE_MEDIUM).'</a>';
echo '</div>';
$defaults = $category;

@ -54,7 +54,7 @@ if (isset($_POST['action'])) {
$group['places']
);
}
Display::addFlash(Display::return_message(get_lang('GroupsAdded')));
Display::addFlash(Display::return_message(get_lang('group(s) has (have) been added')));
header('Location: '.$currentUrl);
exit;
break;
@ -63,20 +63,20 @@ if (isset($_POST['action'])) {
$_POST['base_group'],
$_POST['number_of_groups']
);
Display::addFlash(Display::return_message(get_lang('GroupsAdded')));
Display::addFlash(Display::return_message(get_lang('group(s) has (have) been added')));
header('Location: '.$currentUrl);
exit;
break;
case 'create_class_groups':
GroupManager::create_class_groups($_POST['group_category']);
Display::addFlash(Display::return_message(get_lang('GroupsAdded')));
Display::addFlash(Display::return_message(get_lang('group(s) has (have) been added')));
header('Location: '.$currentUrl);
exit;
break;
}
}
$nameTools = get_lang('GroupCreation');
$nameTools = get_lang('New groups creation');
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'group/group.php?'.api_get_cidreq(),
'name' => get_lang('Groups'),
@ -86,7 +86,7 @@ Display::display_header($nameTools, 'Group');
if (isset($_POST['number_of_groups'])) {
if (!is_numeric($_POST['number_of_groups']) || intval($_POST['number_of_groups']) < 1) {
echo Display::return_message(
get_lang('PleaseEnterValidNumber').'<br /><br />
get_lang('Please enter the desired number of groups').'<br /><br />
<a href="group_creation.php?'.api_get_cidreq().'">&laquo; '.get_lang('Back').'</a>',
'error',
false
@ -165,12 +165,12 @@ EOT;
$defaults = [];
// Table heading
$group_el = [];
$group_el[] = $form->createElement('static', null, null, '<b>'.get_lang('GroupName').'</b>');
$group_el[] = $form->createElement('static', null, null, '<b>'.get_lang('Group name').'</b>');
if (api_get_setting('allow_group_categories') === 'true') {
$group_el[] = $form->createElement('static', null, null, '<b>'.get_lang('GroupCategory').'</b>');
$group_el[] = $form->createElement('static', null, null, '<b>'.get_lang('Group category').'</b>');
}
$group_el[] = $form->createElement('static', null, null, '<b>'.get_lang('GroupPlacesThis').'</b>');
$group_el[] = $form->createElement('static', null, null, '<b>'.get_lang('seats (optional)').'</b>');
$form->addGroup($group_el, 'groups', null, "</td><td>", false);
// Checkboxes
if ($_POST['number_of_groups'] > 1) {
@ -181,7 +181,7 @@ EOT;
'checkbox',
'same_category',
null,
get_lang('SameForAll'),
get_lang('same for all'),
['onclick' => "javascript: switch_state('category');"]
);
}
@ -189,7 +189,7 @@ EOT;
'checkbox',
'same_places',
null,
get_lang('SameForAll'),
get_lang('same for all'),
['onclick' => "javascript: switch_state('places');"]
);
$form->addGroup($group_el, 'groups', null, '</td><td>', false);
@ -229,13 +229,13 @@ EOT;
}
}
$defaults['group_'.$group_number.'_name'] = get_lang('GroupSingle').' '.$prev.$group_id++;
$defaults['group_'.$group_number.'_name'] = get_lang('Group').' '.$prev.$group_id++;
$form->addGroup($group_el, 'group_'.$group_number, null, '</td><td>', false);
}
$defaults['action'] = 'create_groups';
$defaults['number_of_groups'] = (int) $_POST['number_of_groups'];
$form->setDefaults($defaults);
$form->addButtonCreate(get_lang('CreateGroup'), 'submit');
$form->addButtonCreate(get_lang('Create group(s)'), 'submit');
$form->display();
}
} else {
@ -244,8 +244,8 @@ EOT;
*/
$create_groups_form = new FormValidator('create_groups', 'post', api_get_self().'?'.api_get_cidreq());
$create_groups_form->addElement('header', $nameTools);
$create_groups_form->addText('number_of_groups', get_lang('NumberOfGroupsToCreate'), null, ['value' => '1']);
$create_groups_form->addButton('submit', get_lang('ProceedToCreateGroup'), 'plus', 'primary');
$create_groups_form->addText('number_of_groups', get_lang('Number of groups to create'), null, ['value' => '1']);
$create_groups_form->addButton('submit', get_lang('ProceedToCreate group(s)'), 'plus', 'primary');
$defaults = [];
$defaults['number_of_groups'] = 1;
$create_groups_form->setDefaults($defaults);
@ -271,20 +271,20 @@ EOT;
'post',
api_get_self().'?'.api_get_cidreq()
);
$create_subgroups_form->addElement('header', get_lang('CreateSubgroups'));
$create_subgroups_form->addElement('html', get_lang('CreateSubgroupsInfo'));
$create_subgroups_form->addElement('header', get_lang('Create subgroups'));
$create_subgroups_form->addElement('html', get_lang('Create subgroupsInfo'));
$create_subgroups_form->addElement('hidden', 'action');
$group_el = [];
$group_el[] = $create_subgroups_form->createElement(
'static',
null,
null,
get_lang('CreateNumberOfGroups')
get_lang('Create number of groups')
);
$group_el[] = $create_subgroups_form->createElement('text', 'number_of_groups', null, ['size' => 3]);
$group_el[] = $create_subgroups_form->createElement('static', null, null, get_lang('WithUsersFrom'));
$group_el[] = $create_subgroups_form->createElement('static', null, null, get_lang('groups with members from'));
$group_el[] = $create_subgroups_form->createElement('select', 'base_group', null, $base_group_options);
$group_el[] = $create_subgroups_form->addButtonSave(get_lang('Ok'), 'submit', true);
$group_el[] = $create_subgroups_form->addButtonSave(get_lang('Validate'), 'submit', true);
$create_subgroups_form->addGroup($group_el, 'create_groups', null, null, false);
$defaults = [];
$defaults['action'] = 'create_subgroups';
@ -301,7 +301,7 @@ EOT;
$obj = new UserGroup();
$classes = $obj->getUserGroupInCourse($options);
if (count($classes) > 0) {
$description = '<p>'.get_lang('GroupsFromClassesInfo').'</p>';
$description = '<p>'.get_lang('Using this option, you can create groups based on the classes subscribed to your course.').'</p>';
$description .= '<ul>';
foreach ($classes as $index => $class) {
$number_of_users = count($obj->get_users_by_usergroup($class['id']));
@ -317,7 +317,7 @@ EOT;
'post',
api_get_self().'?'.api_get_cidreq()
);
$classForm->addHeader(get_lang('GroupsFromClasses'));
$classForm->addHeader(get_lang('Groups from classes'));
$classForm->addHtml($description);
$classForm->addElement('hidden', 'action');
@ -331,7 +331,7 @@ EOT;
} else {
$classForm->addElement('hidden', 'group_category');
}
$classForm->addButtonSave(get_lang('Ok'));
$classForm->addButtonSave(get_lang('Validate'));
$defaults['group_category'] = GroupManager::DEFAULT_GROUP_CATEGORY;
$defaults['action'] = 'create_class_groups';
$classForm->setDefaults($defaults);

@ -21,7 +21,7 @@ $current_course_tool = TOOL_GROUP;
// Notice for unauthorized people.
api_protect_course_script(true);
$nameTools = get_lang('GroupOverview');
$nameTools = get_lang('Groups overview');
$courseId = api_get_course_int_id();
$courseInfo = api_get_course_info();
@ -37,7 +37,7 @@ if (isset($_GET['action'])) {
case 'export_pdf':
$content = GroupManager::getOverview($courseId, $keyword);
$pdf = new PDF();
$extra = '<div style="text-align:center"><h2>'.get_lang('GroupList').'</h2></div>';
$extra = '<div style="text-align:center"><h2>'.get_lang('Groups list').'</h2></div>';
$extra .= '<strong>'.get_lang('Course').': </strong>'.$courseInfo['title'].' ('.$courseInfo['code'].')';
$content = $extra.$content;
@ -82,14 +82,14 @@ if ($origin != 'learnpath') {
}
$actions = '<a href="group_creation.php?'.api_get_cidreq().'">'.
Display::return_icon('add.png', get_lang('NewGroupCreate'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('add.png', get_lang('Create new group(s)'), '', ICON_SIZE_MEDIUM).'</a>';
if (api_get_setting('allow_group_categories') === 'true') {
$actions .= '<a href="group_category.php?'.api_get_cidreq().'&action=add_category">'.
Display::return_icon('new_folder.png', get_lang('AddCategory'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('new_folder.png', get_lang('Add category'), '', ICON_SIZE_MEDIUM).'</a>';
} else {
$actions .= '<a href="group_category.php?'.api_get_cidreq().'&id=2">'.
Display::return_icon('settings.png', get_lang('PropModify'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('settings.png', get_lang('Edit settings'), '', ICON_SIZE_MEDIUM).'</a>';
}
$actions .= '<a href="import.php?'.api_get_cidreq().'&action=import">'.
Display::return_icon('import_csv.png', get_lang('Import'), '', ICON_SIZE_MEDIUM).'</a>';
@ -98,16 +98,16 @@ $actions .= '<a href="group_overview.php?'.api_get_cidreq().'&action=export_all&
Display::return_icon('export_csv.png', get_lang('Export'), '', ICON_SIZE_MEDIUM).'</a>';
$actions .= '<a href="group_overview.php?'.api_get_cidreq().'&action=export&type=xls">'.
Display::return_icon('export_excel.png', get_lang('ExportAsXLS'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('export_excel.png', get_lang('Excel export'), '', ICON_SIZE_MEDIUM).'</a>';
$actions .= '<a href="group_overview.php?'.api_get_cidreq().'&action=export_pdf">'.
Display::return_icon('pdf.png', get_lang('ExportToPDF'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('pdf.png', get_lang('Export to PDF'), '', ICON_SIZE_MEDIUM).'</a>';
$actions .= '<a href="group.php?'.api_get_cidreq().'">'.
Display::return_icon('group.png', get_lang('Groups'), '', ICON_SIZE_MEDIUM).'</a>';
$actions .= '<a href="../user/user.php?'.api_get_cidreq().'">'.
Display::return_icon('user.png', get_lang('GoTo').' '.get_lang('Users'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('user.png', get_lang('Go to').' '.get_lang('Users'), '', ICON_SIZE_MEDIUM).'</a>';
// Action links
echo Display::toolbarAction('actions', [$actions, GroupManager::getSearchForm()]);

@ -26,7 +26,7 @@ if (empty($current_group)) {
}
$this_section = SECTION_COURSES;
$nameTools = get_lang('GroupSpace');
$nameTools = get_lang('Group area');
$interbreadcrumb[] = [
'url' => 'group.php?'.api_get_cidreq(),
'name' => get_lang('Groups'),
@ -47,7 +47,7 @@ if (!empty($_GET['selfReg']) &&
GroupManager::is_self_registration_allowed($user_id, $current_group)
) {
GroupManager::subscribe_users($user_id, $current_group);
Display::addFlash(Display::return_message(get_lang('GroupNowMember')));
Display::addFlash(Display::return_message(get_lang('You are now a member of this group.')));
}
/*
@ -58,7 +58,7 @@ if (!empty($_GET['selfUnReg']) &&
) {
GroupManager::unsubscribe_users($user_id, $current_group);
Display::addFlash(
Display::return_message(get_lang('StudentDeletesHimself'), 'normal')
Display::return_message(get_lang('You\'re now unsubscribed.'), 'normal')
);
}
@ -74,7 +74,7 @@ echo '<div class="actions">';
echo '<a href="'.api_get_path(WEB_CODE_PATH).'group/group.php?'.api_get_cidreq().'">'.
Display::return_icon(
'back.png',
get_lang('BackToGroupList'),
get_lang('Back to Groups list'),
'',
ICON_SIZE_MEDIUM
).
@ -85,8 +85,8 @@ echo '<a href="'.api_get_path(WEB_CODE_PATH).'group/group.php?'.api_get_cidreq()
*/
$subscribe_group = '';
if (GroupManager::is_self_registration_allowed($user_id, $current_group)) {
$subscribe_group = '<a class="btn btn-default" href="'.api_get_self().'?selfReg=1&group_id='.$current_group['id'].'" onclick="javascript: if(!confirm('."'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"), ENT_QUOTES))."'".')) return false;">'.
get_lang('RegIntoGroup').'</a>';
$subscribe_group = '<a class="btn btn-default" href="'.api_get_self().'?selfReg=1&group_id='.$current_group['id'].'" onclick="javascript: if(!confirm('."'".addslashes(api_htmlentities(get_lang("Please confirm your choice"), ENT_QUOTES))."'".')) return false;">'.
get_lang('Add me to this group').'</a>';
}
/*
@ -94,8 +94,8 @@ if (GroupManager::is_self_registration_allowed($user_id, $current_group)) {
*/
$unsubscribe_group = '';
if (GroupManager :: is_self_unregistration_allowed($user_id, $current_group)) {
$unsubscribe_group = '<a class="btn btn-default" href="'.api_get_self().'?selfUnReg=1" onclick="javascript: if(!confirm('."'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"), ENT_QUOTES))."'".')) return false;">'.
get_lang('StudentUnsubscribe').'</a>';
$unsubscribe_group = '<a class="btn btn-default" href="'.api_get_self().'?selfUnReg=1" onclick="javascript: if(!confirm('."'".addslashes(api_htmlentities(get_lang("Please confirm your choice"), ENT_QUOTES))."'".')) return false;">'.
get_lang('Unsubscribe me from this group.').'</a>';
}
echo '&nbsp;</div>';
@ -106,7 +106,7 @@ if (api_is_allowed_to_edit(false, true) ||
GroupManager::is_tutor_of_group($user_id, $current_group)
) {
$edit_url = '<a href="'.api_get_path(WEB_CODE_PATH).'group/settings.php?'.api_get_cidreq().'">'.
Display::return_icon('edit.png', get_lang('EditGroup'), '', ICON_SIZE_SMALL).'</a>';
Display::return_icon('edit.png', get_lang('Edit this group'), '', ICON_SIZE_SMALL).'</a>';
}
echo Display::page_header(
@ -150,7 +150,7 @@ if (api_is_allowed_to_edit(false, true) ||
// Link to the documents area of this group
$actions_array[] = [
'url' => api_get_path(WEB_CODE_PATH).'document/document.php?'.api_get_cidreq(),
'content' => Display::return_icon('folder.png', get_lang('GroupDocument'), [], 32),
'content' => Display::return_icon('folder.png', get_lang('Documents'), [], 32),
];
}
@ -162,7 +162,7 @@ if (api_is_allowed_to_edit(false, true) ||
// Link to a group-specific part of agenda
$actions_array[] = [
'url' => api_get_path(WEB_CODE_PATH).'calendar/agenda_js.php?'.api_get_cidreq().$groupFilter,
'content' => Display::return_icon('agenda.png', get_lang('GroupCalendar'), [], 32),
'content' => Display::return_icon('agenda.png', get_lang('Agenda'), [], 32),
];
}
@ -170,14 +170,14 @@ if (api_is_allowed_to_edit(false, true) ||
// Link to the works area of this group
$actions_array[] = [
'url' => api_get_path(WEB_CODE_PATH).'work/work.php?'.api_get_cidreq(),
'content' => Display::return_icon('work.png', get_lang('GroupWork'), [], 32),
'content' => Display::return_icon('work.png', get_lang('Assignments'), [], 32),
];
}
if ($current_group['announcements_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
// Link to a group-specific part of announcements
$actions_array[] = [
'url' => api_get_path(WEB_CODE_PATH).'announcements/announcements.php?'.api_get_cidreq(),
'content' => Display::return_icon('announce.png', get_lang('GroupAnnouncements'), [], 32),
'content' => Display::return_icon('announce.png', get_lang('Announcements'), [], 32),
];
}
@ -185,7 +185,7 @@ if (api_is_allowed_to_edit(false, true) ||
// Link to the wiki area of this group
$actions_array[] = [
'url' => api_get_path(WEB_CODE_PATH).'wiki/index.php?'.api_get_cidreq().'&action=show&title=index&session_id='.api_get_session_id().'&group_id='.$current_group['id'],
'content' => Display::return_icon('wiki.png', get_lang('GroupWiki'), [], 32),
'content' => Display::return_icon('wiki.png', get_lang('Wiki'), [], 32),
];
}
@ -213,7 +213,7 @@ if (api_is_allowed_to_edit(false, true) ||
if ($bbb->hasGroupSupport()) {
$actions_array[] = [
'url' => api_get_path(WEB_PLUGIN_PATH)."bbb/start.php?".api_get_cidreq(),
'content' => Display::return_icon('bbb.png', get_lang('VideoConference'), [], 32),
'content' => Display::return_icon('bbb.png', get_lang('Videoconference'), [], 32),
];
}
}
@ -231,7 +231,7 @@ if (api_is_allowed_to_edit(false, true) ||
'url' => api_get_path(WEB_CODE_PATH).'forum/viewforum.php?cidReq='.api_get_course_id().'&forum='.$value['forum_id'].'&gidReq='.Security::remove_XSS($current_group['id']).'&origin=group',
'content' => Display::return_icon(
'forum.png',
get_lang('GroupForum'),
get_lang('Group Forum'),
[],
ICON_SIZE_MEDIUM
),
@ -245,7 +245,7 @@ if (api_is_allowed_to_edit(false, true) ||
// Link to the documents area of this group
$actions_array[] = [
'url' => api_get_path(WEB_CODE_PATH).'document/document.php?'.api_get_cidreq(),
'content' => Display::return_icon('folder.png', get_lang('GroupDocument'), [], ICON_SIZE_MEDIUM),
'content' => Display::return_icon('folder.png', get_lang('Documents'), [], ICON_SIZE_MEDIUM),
];
}
@ -257,7 +257,7 @@ if (api_is_allowed_to_edit(false, true) ||
// Link to a group-specific part of agenda
$actions_array[] = [
'url' => api_get_path(WEB_CODE_PATH).'calendar/agenda_js.php?'.api_get_cidreq().$groupFilter,
'content' => Display::return_icon('agenda.png', get_lang('GroupCalendar'), [], 32),
'content' => Display::return_icon('agenda.png', get_lang('Agenda'), [], 32),
];
}
@ -265,7 +265,7 @@ if (api_is_allowed_to_edit(false, true) ||
// Link to the works area of this group
$actions_array[] = [
'url' => api_get_path(WEB_CODE_PATH).'work/work.php?'.api_get_cidreq(),
'content' => Display::return_icon('work.png', get_lang('GroupWork'), [], ICON_SIZE_MEDIUM),
'content' => Display::return_icon('work.png', get_lang('Assignments'), [], ICON_SIZE_MEDIUM),
];
}
@ -273,7 +273,7 @@ if (api_is_allowed_to_edit(false, true) ||
// Link to a group-specific part of announcements
$actions_array[] = [
'url' => api_get_path(WEB_CODE_PATH).'announcements/announcements.php?'.api_get_cidreq(),
'content' => Display::return_icon('announce.png', get_lang('GroupAnnouncements'), [], ICON_SIZE_MEDIUM),
'content' => Display::return_icon('announce.png', get_lang('Announcements'), [], ICON_SIZE_MEDIUM),
];
}
@ -281,7 +281,7 @@ if (api_is_allowed_to_edit(false, true) ||
// Link to the wiki area of this group
$actions_array[] = [
'url' => api_get_path(WEB_CODE_PATH).'wiki/index.php?'.api_get_cidreq().'&action=show&title=index&session_id='.api_get_session_id().'&group_id='.$current_group['id'],
'content' => Display::return_icon('wiki.png', get_lang('GroupWiki'), [], 32),
'content' => Display::return_icon('wiki.png', get_lang('Wiki'), [], 32),
];
}
@ -311,12 +311,12 @@ if (api_is_allowed_to_edit(false, true) ||
$tutors = GroupManager::get_subscribed_tutors($current_group);
$tutor_info = '';
if (count($tutors) == 0) {
$tutor_info = get_lang('GroupNoneMasc');
$tutor_info = get_lang('(none)');
} else {
$tutor_info .= '<ul class="thumbnails">';
foreach ($tutors as $index => $tutor) {
$userInfo = api_get_user_info($tutor['user_id']);
$username = api_htmlentities(sprintf(get_lang('LoginX'), $userInfo['username']), ENT_QUOTES);
$username = api_htmlentities(sprintf(get_lang('Login: %s'), $userInfo['username']), ENT_QUOTES);
$completeName = $userInfo['complete_name'];
$photo = '<img src="'.$userInfo['avatar'].'" alt="'.$completeName.'" width="32" height="32" title="'.$completeName.'" />';
$tutor_info .= '<li>';
@ -326,7 +326,7 @@ if (count($tutors) == 0) {
$tutor_info .= '</ul>';
}
echo Display::page_subheader(get_lang('GroupTutors'));
echo Display::page_subheader(get_lang('Coaches'));
if (!empty($tutor_info)) {
echo $tutor_info;
}
@ -335,7 +335,7 @@ echo '<br />';
/*
* List all the members of the current group
*/
echo Display::page_subheader(get_lang('GroupMembers'));
echo Display::page_subheader(get_lang('Group members'));
$table = new SortableTable(
'group_users',
@ -351,20 +351,20 @@ $table->set_additional_parameters($parameters);
$table->set_header(0, '');
if (api_is_western_name_order()) {
$table->set_header(1, get_lang('FirstName'));
$table->set_header(2, get_lang('LastName'));
$table->set_header(1, get_lang('First name'));
$table->set_header(2, get_lang('Last name'));
} else {
$table->set_header(1, get_lang('LastName'));
$table->set_header(2, get_lang('FirstName'));
$table->set_header(1, get_lang('Last name'));
$table->set_header(2, get_lang('First name'));
}
if (api_get_setting('show_email_addresses') == 'true' || api_is_allowed_to_edit() == 'true') {
$table->set_header(3, get_lang('Email'));
$table->set_header(3, get_lang('e-mail'));
$table->set_column_filter(3, 'email_filter');
$table->set_header(4, get_lang('Active'));
$table->set_header(4, get_lang('active'));
$table->set_column_filter(4, 'activeFilter');
} else {
$table->set_header(3, get_lang('Active'));
$table->set_header(3, get_lang('active'));
$table->set_column_filter(3, 'activeFilter');
}
//the order of these calls is important
@ -530,10 +530,10 @@ function email_filter($email)
function activeFilter($isActive)
{
if ($isActive) {
return Display::return_icon('accept.png', get_lang('Active'), [], ICON_SIZE_TINY);
return Display::return_icon('accept.png', get_lang('active'), [], ICON_SIZE_TINY);
}
return Display::return_icon('error.png', get_lang('Inactive'), [], ICON_SIZE_TINY);
return Display::return_icon('error.png', get_lang('inactive'), [], ICON_SIZE_TINY);
}
/**

@ -24,20 +24,20 @@ $form = new FormValidator(
'post',
api_get_self().'?'.api_get_cidreq()
);
$form->addElement('header', get_lang('ImportGroups'));
$form->addElement('file', 'file', get_lang('ImportCSVFileLocation'));
$form->addRule('file', get_lang('ThisFieldIsRequired'), 'required');
$form->addElement('header', get_lang('Import groups'));
$form->addElement('file', 'file', get_lang('CSV file import location'));
$form->addRule('file', get_lang('Required field'), 'required');
$form->addElement(
'checkbox',
'delete_not_in_file',
null,
get_lang('DeleteItemsNotInFile')
get_lang('Delete items not in file')
);
$form->addElement(
'label',
null,
Display::url(
get_lang('ExampleCSVFile'),
get_lang('Example CSV file'),
api_get_path(WEB_CODE_PATH).'group/example.csv',
['download' => true]
)

@ -22,7 +22,7 @@ api_protect_course_script(true);
$group_id = api_get_group_id();
$current_group = GroupManager::get_group_properties($group_id);
$nameTools = get_lang('EditGroup');
$nameTools = get_lang('Edit this group');
$interbreadcrumb[] = ['url' => 'group.php', 'name' => get_lang('Groups')];
$interbreadcrumb[] = ['url' => 'group_space.php?'.api_get_cidreq(), 'name' => $current_group['name']];
@ -92,7 +92,7 @@ function check_group_members($value)
isset($value['group_members']) &&
$value['max_student'] < count($value['group_members'])
) {
return ['group_members' => get_lang('GroupTooMuchMembers')];
return ['group_members' => get_lang('Number proposed exceeds max. that you allowed (you can modify in the group settings). Group composition has not been modified')];
}
return true;
@ -171,13 +171,13 @@ if (!empty($group_member_list)) {
$group_members_element = $form->addElement(
'advmultiselect',
'group_members',
get_lang('GroupMembers'),
get_lang('Group members'),
$possible_users
);
$form->addFormRule('check_group_members');
// submit button
$form->addButtonSave(get_lang('SaveSettings'));
$form->addButtonSave(get_lang('Save settings'));
if ($form->validate()) {
$values = $form->exportValues();
@ -199,10 +199,10 @@ if ($form->validate()) {
count($_POST['group_members']) > $max_member &&
$max_member != GroupManager::MEMBER_PER_GROUP_NO_LIMIT
) {
Display::addFlash(Display::return_message(get_lang('GroupTooMuchMembers'), 'warning'));
Display::addFlash(Display::return_message(get_lang('Number proposed exceeds max. that you allowed (you can modify in the group settings). Group composition has not been modified'), 'warning'));
header('Location: group.php?'.api_get_cidreq(true, false));
} else {
Display::addFlash(Display::return_message(get_lang('GroupSettingsModified'), 'success'));
Display::addFlash(Display::return_message(get_lang('Group settings modified'), 'success'));
header('Location: group.php?'.api_get_cidreq(true, false).'&category='.$cat['id']);
}
exit;
@ -213,7 +213,7 @@ switch ($action) {
case 'empty':
if (api_is_allowed_to_edit(false, true)) {
GroupManager:: unsubscribe_all_users($current_group);
echo Display::return_message(get_lang('GroupEmptied'), 'confirm');
echo Display::return_message(get_lang('The group is now empty'), 'confirm');
}
break;
}
@ -225,7 +225,7 @@ $defaults['action'] = $action;
if (!empty($_GET['keyword']) && !empty($_GET['submit'])) {
$keyword_name = Security::remove_XSS($_GET['keyword']);
echo '<br/>'.get_lang('SearchResultsFor').' <span style="font-style: italic ;"> '.$keyword_name.' </span><br>';
echo '<br/>'.get_lang('Search results for:').' <span style="font-style: italic ;"> '.$keyword_name.' </span><br>';
}
Display::display_header($nameTools, 'Group');

@ -25,7 +25,7 @@ if (empty($current_group)) {
api_not_allowed(true);
}
$nameTools = get_lang('EditGroup');
$nameTools = get_lang('Edit this group');
$interbreadcrumb[] = ['url' => 'group.php?'.api_get_cidreq(), 'name' => get_lang('Groups')];
$interbreadcrumb[] = ['url' => 'group_space.php?'.api_get_cidreq(), 'name' => $current_group['name']];
$groupMember = GroupManager::is_tutor_of_group(api_get_user_id(), $current_group);
@ -43,7 +43,7 @@ $form->addElement('html', '</div>');
$form->addElement('html', '<div class="col-md-6">');
// Group name
$form->addElement('text', 'name', get_lang('GroupName'));
$form->addElement('text', 'name', get_lang('Group name'));
if (api_get_setting('allow_group_categories') == 'true') {
$groupCategories = GroupManager::get_categories();
@ -74,23 +74,23 @@ $group = [
$form->createElement(
'radio',
'max_member_no_limit',
get_lang('GroupLimit'),
get_lang('NoLimit'),
get_lang('Limit'),
get_lang('No limitation'),
GroupManager::MEMBER_PER_GROUP_NO_LIMIT
),
$form->createElement(
'radio',
'max_member_no_limit',
null,
get_lang('MaximumOfParticipants'),
get_lang('Maximum number of members'),
1,
['id' => 'max_member_selected']
),
$form->createElement('text', 'max_member', null, ['class' => 'span1', 'id' => 'max_member']),
$form->createElement('static', null, null, ' '.get_lang('GroupPlacesThis')),
$form->createElement('static', null, null, ' '.get_lang('seats (optional)')),
];
$form->addGroup($group, 'max_member_group', get_lang('GroupLimit'), null, false);
$form->addRule('max_member_group', get_lang('InvalidMaxNumberOfMembers'), 'callback', 'check_max_number_of_members');
$form->addGroup($group, 'max_member_group', get_lang('Limit'), null, false);
$form->addRule('max_member_group', get_lang('Please enter a valid number for the maximum number of members.'), 'callback', 'check_max_number_of_members');
$form->addElement('html', '</div>');
@ -101,23 +101,23 @@ $group = [
$form->createElement(
'checkbox',
'self_registration_allowed',
get_lang('GroupSelfRegistration'),
get_lang('GroupAllowStudentRegistration'),
get_lang('Registration'),
get_lang('Learners are allowed to self-register in groups'),
1
),
$form->createElement(
'checkbox',
'self_unregistration_allowed',
null,
get_lang('GroupAllowStudentUnregistration'),
get_lang('Learners are allowed to unregister themselves from groups'),
1
),
];
$form->addGroup(
$group,
'',
Display::return_icon('user.png', get_lang('GroupSelfRegistration')).
'<span>'.get_lang('GroupSelfRegistration').'</span>',
Display::return_icon('user.png', get_lang('Registration')).
'<span>'.get_lang('Registration').'</span>',
null,
false
);
@ -125,20 +125,20 @@ $form->addGroup(
$form->addElement('html', '</div>');
$form->addElement('html', '<div class="col-md-12">');
$form->addElement('header', get_lang('DefaultSettingsForNewGroups'));
$form->addElement('header', get_lang('Default settings for new groups'));
$form->addElement('html', '</div>');
$form->addElement('html', '<div class="col-md-6">');
// Documents settings
$group = [
$form->createElement('radio', 'doc_state', get_lang('GroupDocument'), get_lang('NotAvailable'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'doc_state', null, get_lang('Public'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'doc_state', null, get_lang('Private'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'doc_state', get_lang('Documents'), get_lang('Not available'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'doc_state', null, get_lang('Public access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course)'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'doc_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)'), GroupManager::TOOL_PRIVATE),
];
$form->addGroup(
$group,
'',
Display::return_icon('folder.png', get_lang('GroupDocument')).'<span>'.get_lang('GroupDocument').'</span>',
Display::return_icon('folder.png', get_lang('Documents')).'<span>'.get_lang('Documents').'</span>',
null,
false
);
@ -152,21 +152,21 @@ if ($allowDocumentGroupAccess) {
'radio',
'document_access',
null,
get_lang('DocumentGroupShareMode'),
get_lang('Share mode'),
GroupManager::DOCUMENT_MODE_SHARE
),
$form->createElement(
'radio',
'document_access',
get_lang('GroupDocument'),
get_lang('DocumentGroupCollaborationMode'),
get_lang('Documents'),
get_lang('Collaboration mode'),
GroupManager::DOCUMENT_MODE_COLLABORATION
),
$form->createElement(
'radio',
'document_access',
null,
get_lang('DocumentGroupReadOnlyMode'),
get_lang('Read only mode'),
GroupManager::DOCUMENT_MODE_READ_ONLY
),
];
@ -175,8 +175,8 @@ if ($allowDocumentGroupAccess) {
'',
Display::return_icon(
'folder.png',
get_lang('GroupDocumentAccess')
).'<span>'.get_lang('GroupDocumentAccess').'</span>',
get_lang('DocumentsAccess')
).'<span>'.get_lang('DocumentsAccess').'</span>',
null,
false
);
@ -194,12 +194,12 @@ $group = [
$form->createElement(
'radio',
'work_state',
get_lang('GroupWork'),
get_lang('NotAvailable'),
get_lang('Assignments'),
get_lang('Not available'),
GroupManager::TOOL_NOT_AVAILABLE
),
$form->createElement('radio', 'work_state', null, get_lang('Public'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'work_state', null, get_lang('Private'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'work_state', null, get_lang('Public access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course)'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'work_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)'), GroupManager::TOOL_PRIVATE),
];
$form->addElement('html', '</div>');
@ -211,16 +211,16 @@ $form->addElement('html', '<div class="col-md-6">');
$form->addGroup(
$group,
'',
Display::return_icon('works.png', get_lang('GroupWork')).'<span>'.get_lang('GroupWork').'</span>',
Display::return_icon('works.png', get_lang('Assignments')).'<span>'.get_lang('Assignments').'</span>',
null,
false
);
// Calendar settings
$group = [
$form->createElement('radio', 'calendar_state', get_lang('GroupCalendar'), get_lang('NotAvailable'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'calendar_state', null, get_lang('Public'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'calendar_state', null, get_lang('Private'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'calendar_state', get_lang('Agenda'), get_lang('Not available'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'calendar_state', null, get_lang('Public access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course)'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'calendar_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)'), GroupManager::TOOL_PRIVATE),
];
$form->addElement('html', '</div>');
@ -229,7 +229,7 @@ $form->addElement('html', '<div class="col-md-6">');
$form->addGroup(
$group,
'',
Display::return_icon('agenda.png', get_lang('GroupCalendar')).'<span>'.get_lang('GroupCalendar').'</span>',
Display::return_icon('agenda.png', get_lang('Agenda')).'<span>'.get_lang('Agenda').'</span>',
null,
false
);
@ -244,16 +244,16 @@ $form->addElement('html', '<div class="col-md-6">');
// Announcements settings
$group = [
$form->createElement('radio', 'announcements_state', get_lang('GroupAnnouncements'), get_lang('NotAvailable'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'announcements_state', null, get_lang('Public'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'announcements_state', null, get_lang('Private'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'announcements_state', null, get_lang('PrivateBetweenUsers'), GroupManager::TOOL_PRIVATE_BETWEEN_USERS),
$form->createElement('radio', 'announcements_state', get_lang('Announcements'), get_lang('Not available'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'announcements_state', null, get_lang('Public access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course)'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'announcements_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'announcements_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)BetweenUsers'), GroupManager::TOOL_PRIVATE_BETWEEN_USERS),
];
$form->addGroup(
$group,
'',
Display::return_icon('announce.png', get_lang('GroupAnnouncements')).'<span>'.get_lang('GroupAnnouncements').'</span>',
Display::return_icon('announce.png', get_lang('Announcements')).'<span>'.get_lang('Announcements').'</span>',
null,
false
);
@ -264,14 +264,14 @@ $form->addElement('html', '<div class="col-md-6">');
// Forum settings
$group = [
$form->createElement('radio', 'forum_state', get_lang('GroupForum'), get_lang('NotAvailable'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'forum_state', null, get_lang('Public'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'forum_state', null, get_lang('Private'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'forum_state', get_lang('Group Forum'), get_lang('Not available'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'forum_state', null, get_lang('Public access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course)'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'forum_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)'), GroupManager::TOOL_PRIVATE),
];
$form->addGroup(
$group,
'',
Display::return_icon('forum.png', get_lang('GroupForum')).'<span>'.get_lang('GroupForum').'</span>',
Display::return_icon('forum.png', get_lang('Group Forum')).'<span>'.get_lang('Group Forum').'</span>',
null,
false
);
@ -286,14 +286,14 @@ $form->addElement('html', '<div class="col-md-6">');
// Wiki settings
$group = [
$form->createElement('radio', 'wiki_state', get_lang('GroupWiki'), get_lang('NotAvailable'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'wiki_state', null, get_lang('Public'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'wiki_state', null, get_lang('Private'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'wiki_state', get_lang('Wiki'), get_lang('Not available'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'wiki_state', null, get_lang('Public access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course)'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'wiki_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)'), GroupManager::TOOL_PRIVATE),
];
$form->addGroup(
$group,
'',
Display::return_icon('wiki.png', get_lang('GroupWiki')).'<span>'.get_lang('GroupWiki').'</span>',
Display::return_icon('wiki.png', get_lang('Wiki')).'<span>'.get_lang('Wiki').'</span>',
'',
false
);
@ -303,9 +303,9 @@ $form->addElement('html', '<div class="col-md-6">');
// Chat settings
$group = [
$form->createElement('radio', 'chat_state', get_lang('Chat'), get_lang('NotAvailable'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'chat_state', null, get_lang('Public'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'chat_state', null, get_lang('Private'), GroupManager::TOOL_PRIVATE),
$form->createElement('radio', 'chat_state', get_lang('Chat'), get_lang('Not available'), GroupManager::TOOL_NOT_AVAILABLE),
$form->createElement('radio', 'chat_state', null, get_lang('Public access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course) access (access authorized to any member of the course)'), GroupManager::TOOL_PUBLIC),
$form->createElement('radio', 'chat_state', null, get_lang('Private access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only) access (access authorized to group members only)'), GroupManager::TOOL_PRIVATE),
];
$form->addGroup(
$group,
@ -318,7 +318,7 @@ $form->addGroup(
$form->addElement('html', '</div>');
$form->addElement('html', '<div class="col-md-12">');
// Submit button
$form->addButtonSave(get_lang('SaveSettings'));
$form->addButtonSave(get_lang('Save settings'));
$form->addElement('html', '</div>');
if ($form->validate()) {
@ -353,10 +353,10 @@ if ($form->validate()) {
count($_POST['group_members']) > $max_member &&
$max_member != GroupManager::MEMBER_PER_GROUP_NO_LIMIT
) {
Display::addFlash(Display::return_message(get_lang('GroupTooMuchMembers'), 'warning'));
Display::addFlash(Display::return_message(get_lang('Number proposed exceeds max. that you allowed (you can modify in the group settings). Group composition has not been modified'), 'warning'));
header('Location: group.php?'.api_get_cidreq(true, false).'&category='.$categoryId);
} else {
Display::addFlash(Display::return_message(get_lang('GroupSettingsModified'), 'success'));
Display::addFlash(Display::return_message(get_lang('Group settings modified'), 'success'));
header('Location: group.php?'.api_get_cidreq(true, false).'&category='.$categoryId);
}
exit;
@ -379,7 +379,7 @@ if ($defaults['maximum_number_of_students'] == GroupManager::MEMBER_PER_GROUP_NO
if (!empty($_GET['keyword']) && !empty($_GET['submit'])) {
$keyword_name = Security::remove_XSS($_GET['keyword']);
echo '<br/>'.get_lang('SearchResultsFor').' <span style="font-style: italic ;"> '.$keyword_name.' </span><br>';
echo '<br/>'.get_lang('Search results for:').' <span style="font-style: italic ;"> '.$keyword_name.' </span><br>';
}
Display::display_header($nameTools, 'Group');

@ -22,7 +22,7 @@ api_protect_course_script(true);
$group_id = api_get_group_id();
$current_group = GroupManager::get_group_properties($group_id);
$nameTools = get_lang('EditGroup');
$nameTools = get_lang('Edit this group');
$interbreadcrumb[] = ['url' => 'group.php?'.api_get_cidreq(), 'name' => get_lang('Groups')];
$interbreadcrumb[] = ['url' => 'group_space.php?'.api_get_cidreq(), 'name' => $current_group['name']];
@ -153,13 +153,13 @@ if (!empty($complete_user_list)) {
$group_tutors_element = $form->addElement(
'advmultiselect',
'group_tutors',
get_lang('GroupTutors'),
get_lang('Coaches'),
$possible_users,
'style="width: 280px;"'
);
// submit button
$form->addButtonSave(get_lang('SaveSettings'));
$form->addButtonSave(get_lang('Save settings'));
if ($form->validate()) {
$values = $form->exportValues();
@ -177,10 +177,10 @@ if ($form->validate()) {
count($_POST['group_members']) > $max_member &&
$max_member != GroupManager::MEMBER_PER_GROUP_NO_LIMIT
) {
Display::addFlash(Display::return_message(get_lang('GroupTooMuchMembers'), 'warning'));
Display::addFlash(Display::return_message(get_lang('Number proposed exceeds max. that you allowed (you can modify in the group settings). Group composition has not been modified'), 'warning'));
header('Location: group.php?'.api_get_cidreq(true, false));
} else {
Display::addFlash(Display::return_message(get_lang('GroupSettingsModified'), 'success'));
Display::addFlash(Display::return_message(get_lang('Group settings modified'), 'success'));
header('Location: group.php?'.api_get_cidreq(true, false).'&category='.$cat['id']);
}
exit;
@ -193,7 +193,7 @@ $defaults['action'] = $action;
if (!empty($_GET['keyword']) && !empty($_GET['submit'])) {
$keyword_name = Security::remove_XSS($_GET['keyword']);
echo '<br/>'.get_lang('SearchResultsFor').' <span style="font-style: italic ;"> '.$keyword_name.' </span><br>';
echo '<br/>'.get_lang('Search results for:').' <span style="font-style: italic ;"> '.$keyword_name.' </span><br>';
}
Display :: display_header($nameTools, 'Group');

@ -103,7 +103,7 @@ $js = "<script>
$(this).prepend(
'<div style=\"cursor:pointer\" onclick=\"foldup(' + index + ')\">".Display::return_icon(
'visible.png',
get_lang('HideColumn'),
get_lang('Hide column'),
['align' => 'absmiddle', 'hspace' => '3px'],
ICON_SIZE_SMALL
)."</div>'
@ -140,20 +140,20 @@ $TABLEQUIZ = Database::get_course_table(TABLE_QUIZ_TEST);
if ($origin === 'resume_session') {
$interbreadcrumb[] = [
'url' => '../admin/index.php',
'name' => get_lang('PlatformAdmin'),
'name' => get_lang('Administration'),
];
$interbreadcrumb[] = [
'url' => '../session/session_list.php',
'name' => get_lang('SessionList'),
'name' => get_lang('Session list'),
];
$interbreadcrumb[] = [
'url' => '../session/resume_session.php?id_session='.$sessionId,
'name' => get_lang('SessionOverview'),
'name' => get_lang('Session overview'),
];
}
$view = isset($_REQUEST['view']) ? $_REQUEST['view'] : '';
$nameTools = get_lang('Tracking');
$nameTools = get_lang('Reporting');
$tpl = new Template($nameTools);
// Getting all the students of the course
@ -211,7 +211,7 @@ if (isset($_GET['users_tracking_per_page'])) {
}
$actionsRight .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&export=csv&'.$additionalParams.$users_tracking_per_page.'">
'.Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), '', ICON_SIZE_MEDIUM).'</a>';
'.Display::return_icon('export_csv.png', get_lang('CSV export'), '', ICON_SIZE_MEDIUM).'</a>';
$actionsRight .= '</div>';
// Create a search-box.
$form_search = new FormValidator(
@ -226,7 +226,7 @@ $form_search->addHidden('from', Security::remove_XSS($from));
$form_search->addHidden('session_id', $sessionId);
$form_search->addHidden('id_session', $sessionId);
$form_search->addElement('text', 'user_keyword');
$form_search->addButtonSearch(get_lang('SearchUsers'));
$form_search->addButtonSearch(get_lang('Search users'));
echo Display::toolbarAction(
'toolbar-courselog',
[$actionsLeft, $form_search->returnForm(), $actionsRight]
@ -275,7 +275,7 @@ if (!empty($sessionId)) {
}
$html = '';
if (!empty($teacherList)) {
$html .= Display::page_subheader2(get_lang('Teachers'));
$html .= Display::page_subheader2(get_lang('Trainers'));
$html .= $teacherList;
}
@ -288,7 +288,7 @@ $showReporting = api_get_configuration_value('hide_reporting_session_list') ===
if ($showReporting) {
$sessionList = SessionManager::get_session_by_course($courseInfo['real_id']);
if (!empty($sessionList)) {
$html .= Display::page_subheader2(get_lang('SessionList'));
$html .= Display::page_subheader2(get_lang('Session list'));
$icon = Display::return_icon(
'session.png',
null,
@ -410,10 +410,10 @@ if ($nbStudents > 0) {
}
}
$html .= Display::page_subheader2(get_lang('StudentList'));
$html .= Display::page_subheader2(get_lang('Learners list'));
if ($nbStudents > 0) {
$getLangXDays = get_lang('XDays');
$getLangXDays = get_lang('%s days');
$form = new FormValidator(
'reminder_form',
'get',
@ -435,7 +435,7 @@ if ($nbStudents > 0) {
];
$el = $form->addSelect(
'since',
Display::returnFontAwesomeIcon('warning').get_lang('RemindInactivesLearnersSince'),
Display::returnFontAwesomeIcon('warning').get_lang('Remind learners inactive since'),
$options,
['disable_js' => true]
);
@ -445,7 +445,7 @@ if ($nbStudents > 0) {
$form->addElement('hidden', 'remindallinactives', 'true');
$form->addElement('hidden', 'cidReq', $courseInfo['code']);
$form->addElement('hidden', 'id_session', api_get_session_id());
$form->addButtonSend(get_lang('SendNotification'));
$form->addButtonSend(get_lang('Notify'));
$extra_field_select = TrackingCourseLog::display_additional_profile_fields();
@ -477,69 +477,69 @@ if ($nbStudents > 0) {
$headers = [];
// tab of header texts
$table->set_header(0, get_lang('OfficialCode'), true);
$headers['official_code'] = get_lang('OfficialCode');
$table->set_header(0, get_lang('Code'), true);
$headers['official_code'] = get_lang('Code');
if ($sortByFirstName) {
$table->set_header(1, get_lang('FirstName'), true);
$table->set_header(2, get_lang('LastName'), true);
$headers['firstname'] = get_lang('FirstName');
$headers['lastname'] = get_lang('LastName');
$table->set_header(1, get_lang('First name'), true);
$table->set_header(2, get_lang('Last name'), true);
$headers['firstname'] = get_lang('First name');
$headers['lastname'] = get_lang('Last name');
} else {
$table->set_header(1, get_lang('LastName'), true);
$table->set_header(2, get_lang('FirstName'), true);
$headers['lastname'] = get_lang('LastName');
$headers['firstname'] = get_lang('FirstName');
$table->set_header(1, get_lang('Last name'), true);
$table->set_header(2, get_lang('First name'), true);
$headers['lastname'] = get_lang('Last name');
$headers['firstname'] = get_lang('First name');
}
$table->set_header(3, get_lang('Login'), false);
$headers['login'] = get_lang('Login');
$table->set_header(
4,
get_lang('TrainingTime').'&nbsp;'.
Display::return_icon('info3.gif', get_lang('CourseTimeInfo'), ['align' => 'absmiddle', 'hspace' => '3px']),
get_lang('Time').'&nbsp;'.
Display::return_icon('info3.gif', get_lang('Time spent in the course'), ['align' => 'absmiddle', 'hspace' => '3px']),
false,
['style' => 'width:110px;']
);
$headers['training_time'] = get_lang('TrainingTime');
$table->set_header(5, get_lang('CourseProgress').'&nbsp;'.
$headers['training_time'] = get_lang('Time');
$table->set_header(5, get_lang('Progress').'&nbsp;'.
Display::return_icon(
'info3.gif',
get_lang('ScormAndLPProgressTotalAverage'),
get_lang('Average progress in courses'),
['align' => 'absmiddle', 'hspace' => '3px']
),
false,
['style' => 'width:110px;']
);
$headers['course_progress'] = get_lang('CourseProgress');
$headers['course_progress'] = get_lang('Progress');
$table->set_header(6, get_lang('ExerciseProgress').'&nbsp;'.
$table->set_header(6, get_lang('Exercise progress').'&nbsp;'.
Display::return_icon(
'info3.gif',
get_lang('ExerciseProgressInfo'),
get_lang('Exercise progressInfo'),
['align' => 'absmiddle', 'hspace' => '3px']
),
false,
['style' => 'width:110px;']
);
$headers['exercise_progress'] = get_lang('ExerciseProgress');
$table->set_header(7, get_lang('ExerciseAverage').'&nbsp;'.
Display::return_icon('info3.gif', get_lang('ExerciseAverageInfo'), ['align' => 'absmiddle', 'hspace' => '3px']),
$headers['exercise_progress'] = get_lang('Exercise progress');
$table->set_header(7, get_lang('Exercise average').'&nbsp;'.
Display::return_icon('info3.gif', get_lang('Exercise averageInfo'), ['align' => 'absmiddle', 'hspace' => '3px']),
false,
['style' => 'width:110px;']
);
$headers['exercise_average'] = get_lang('ExerciseAverage');
$headers['exercise_average'] = get_lang('Exercise average');
$table->set_header(8, get_lang('Score').'&nbsp;'.
Display::return_icon(
'info3.gif',
get_lang('ScormAndLPTestTotalAverage'),
get_lang('Average of tests in Learning Paths'),
['align' => 'absmiddle', 'hspace' => '3px']
),
false,
['style' => 'width:110px;']
);
$headers['score'] = get_lang('Score');
$table->set_header(9, get_lang('Student_publication'), false);
$headers['student_publication'] = get_lang('Student_publication');
$table->set_header(9, get_lang('Assignments'), false);
$headers['student_publication'] = get_lang('Assignments');
$table->set_header(10, get_lang('Messages'), false);
$headers['messages'] = get_lang('Messages');
$table->set_header(11, get_lang('Classes'));
@ -548,10 +548,10 @@ if ($nbStudents > 0) {
if (empty($sessionId)) {
$table->set_header(12, get_lang('Survey'), false);
$headers['survey'] = get_lang('Survey');
$table->set_header(13, get_lang('FirstLoginInCourse'), false);
$headers['first_login'] = get_lang('FirstLoginInCourse');
$table->set_header(14, get_lang('LatestLoginInCourse'), false);
$headers['latest_login'] = get_lang('LatestLoginInCourse');
$table->set_header(13, get_lang('First access to course'), false);
$headers['first_login'] = get_lang('First access to course');
$table->set_header(14, get_lang('Latest access in course'), false);
$headers['latest_login'] = get_lang('Latest access in course');
if (isset($_GET['additional_profile_field'])) {
$counter = 15;
foreach ($_GET['additional_profile_field'] as $fieldId) {
@ -567,10 +567,10 @@ if ($nbStudents > 0) {
$headers['details'] = get_lang('Details');
}
} else {
$table->set_header(12, get_lang('FirstLoginInCourse'), false);
$headers['first_login'] = get_lang('FirstLoginInCourse');
$table->set_header(13, get_lang('LatestLoginInCourse'), false);
$headers['latest_login'] = get_lang('LatestLoginInCourse');
$table->set_header(12, get_lang('First access to course'), false);
$headers['first_login'] = get_lang('First access to course');
$table->set_header(13, get_lang('Latest access in course'), false);
$headers['latest_login'] = get_lang('Latest access in course');
if (isset($_GET['additional_profile_field'])) {
$counter = 15;
@ -587,7 +587,7 @@ if ($nbStudents > 0) {
// display buttons to un hide hidden columns
$html .= '<div id="unhideButtons" class="btn-toolbar">';
$index = 0;
$getLangDisplayColumn = get_lang('DisplayColumn');
$getLangDisplayColumn = get_lang('Show column');
foreach ($headers as $header) {
$html .= Display::toolbarButton(
$header,
@ -608,7 +608,7 @@ if ($nbStudents > 0) {
$html .= $table->return_table();
$html .= '</div>';
} else {
$html .= Display::return_message(get_lang('NoUsersInCourse'), 'warning', true);
$html .= Display::return_message(get_lang('No users in course'), 'warning', true);
}
echo Display::panel($html, $titleSession);
@ -616,29 +616,29 @@ echo Display::panel($html, $titleSession);
// Send the csv file if asked.
if ($export_csv) {
$csv_headers = [];
$csv_headers[] = get_lang('OfficialCode');
$csv_headers[] = get_lang('Code');
if ($sortByFirstName) {
$csv_headers[] = get_lang('FirstName');
$csv_headers[] = get_lang('LastName');
$csv_headers[] = get_lang('First name');
$csv_headers[] = get_lang('Last name');
} else {
$csv_headers[] = get_lang('LastName');
$csv_headers[] = get_lang('FirstName');
$csv_headers[] = get_lang('Last name');
$csv_headers[] = get_lang('First name');
}
$csv_headers[] = get_lang('Login');
$csv_headers[] = get_lang('TrainingTime');
$csv_headers[] = get_lang('CourseProgress');
$csv_headers[] = get_lang('ExerciseProgress');
$csv_headers[] = get_lang('ExerciseAverage');
$csv_headers[] = get_lang('Time');
$csv_headers[] = get_lang('Progress');
$csv_headers[] = get_lang('Exercise progress');
$csv_headers[] = get_lang('Exercise average');
$csv_headers[] = get_lang('Score');
$csv_headers[] = get_lang('Student_publication');
$csv_headers[] = get_lang('Assignments');
$csv_headers[] = get_lang('Messages');
if (empty($sessionId)) {
$csv_headers[] = get_lang('Survey');
}
$csv_headers[] = get_lang('FirstLoginInCourse');
$csv_headers[] = get_lang('LatestLoginInCourse');
$csv_headers[] = get_lang('First access to course');
$csv_headers[] = get_lang('Latest access in course');
if (isset($_GET['additional_profile_field'])) {
foreach ($_GET['additional_profile_field'] as $fieldId) {
@ -657,7 +657,7 @@ if ($export_csv) {
$sessionDates = SessionManager::parseSessionDates($sessionInfo);
array_unshift($csvContentInSession, [get_lang('Date'), $sessionDates['access']]);
array_unshift($csvContentInSession, [get_lang('SessionName'), $sessionInfo['name']]);
array_unshift($csvContentInSession, [get_lang('Session name'), $sessionInfo['name']]);
}
Export::arrayToCsv($csvContentInSession, 'reporting_student_list');

@ -28,13 +28,13 @@ $url = api_get_path(WEB_AJAX_PATH).'model.ajax.php?a=course_log_events&'.api_get
// The order is important you need to check the the $column variable in the model.ajax.php file
$columns = [
get_lang('EventType'),
get_lang('DataType'),
get_lang('Event type'),
get_lang('Data type'),
get_lang('Value'),
get_lang('Course'),
get_lang('Session'),
get_lang('UserName'),
get_lang('IPAddress'),
get_lang('Username'),
get_lang('IP address'),
get_lang('Date'),
];

@ -33,9 +33,9 @@ $columns = [
get_lang('Time'),
get_lang('Progress'),
get_lang('Score'),
get_lang('Works'),
get_lang('Assignments'),
get_lang('Messages'),
get_lang('Actions'),
get_lang('Detail'),
];
// Column config

@ -52,11 +52,11 @@ if ($export_csv || $exportXls) {
array_unshift(
$csvData,
[
get_lang('Tool'),
get_lang('EventType'),
get_lang('tool'),
get_lang('Event type'),
get_lang('Session'),
get_lang('UserName'),
get_lang('IPAddress'),
get_lang('Username'),
get_lang('IP address'),
get_lang('Document'),
get_lang('Date'),
]
@ -79,21 +79,21 @@ if (empty($session_id)) {
if (isset($_GET['origin']) && $_GET['origin'] == 'resume_session') {
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'admin/index.php',
'name' => get_lang('PlatformAdmin'),
'name' => get_lang('Administration'),
];
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'session/session_list.php',
'name' => get_lang('SessionList'),
'name' => get_lang('Session list'),
];
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'session/resume_session.php?id_session='.api_get_session_id(),
'name' => get_lang('SessionOverview'),
'name' => get_lang('Session overview'),
];
}
$nameTools = get_lang('Tracking');
$nametools = get_lang('Reporting');
Display::display_header($nameTools, 'Tracking');
Display::display_header($nametools, 'Reporting');
echo '<div class="actions">';
echo TrackingCourseLog::actionsLeft('resources', api_get_session_id());
@ -113,9 +113,9 @@ if (isset($_GET['users_tracking_per_page'])) {
}
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&export=csv&'.$addional_param.$users_tracking_per_page.'">
'.Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), '', ICON_SIZE_MEDIUM).'</a>';
'.Display::return_icon('export_csv.png', get_lang('CSV export'), '', ICON_SIZE_MEDIUM).'</a>';
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&export=xls&'.$addional_param.$users_tracking_per_page.'">
'.Display::return_icon('export_excel.png', get_lang('ExportAsXLS'), '', ICON_SIZE_MEDIUM).'</a>';
'.Display::return_icon('export_excel.png', get_lang('Excel export'), '', ICON_SIZE_MEDIUM).'</a>';
echo '</span>';
echo '</div>';
@ -133,7 +133,7 @@ $renderer->setCustomElementTemplate('<span>{element}</span>');
$form->addElement('text', 'keyword', get_lang('Keyword'));
$form->addElement('hidden', 'cidReq', api_get_course_id());
$form->addElement('hidden', 'id_session', $session_id);
$form->addButtonSearch(get_lang('SearchUsers'), 'submit');
$form->addButtonSearch(get_lang('Search users'), 'submit');
echo '<div class="actions">';
$form->display();
echo '</div>';
@ -153,11 +153,11 @@ $parameters = [
];
$table->set_additional_parameters($parameters);
$table->set_header(0, get_lang('Tool'));
$table->set_header(1, get_lang('EventType'));
$table->set_header(0, get_lang('tool'));
$table->set_header(1, get_lang('Event type'));
$table->set_header(2, get_lang('Session'), false);
$table->set_header(3, get_lang('UserName'), true, 'width=65px');
$table->set_header(4, get_lang('IPAddress'), true, 'width=100px');
$table->set_header(3, get_lang('Username'), true, 'width=65px');
$table->set_header(4, get_lang('IP address'), true, 'width=100px');
$table->set_header(5, get_lang('Document'), false);
$table->set_header(6, get_lang('Date'), true, 'width=190px');
$table->display();

@ -60,16 +60,16 @@ $csv_content = [];
// Breadcrumbs.
if (isset($_GET['origin']) && $_GET['origin'] == 'resume_session') {
$interbreadcrumb[] = ['url' => '../admin/index.php', 'name' => get_lang('PlatformAdmin')];
$interbreadcrumb[] = ['url' => '../session/session_list.php', 'name' => get_lang('SessionList')];
$interbreadcrumb[] = ['url' => '../admin/index.php', 'name' => get_lang('Administration')];
$interbreadcrumb[] = ['url' => '../session/session_list.php', 'name' => get_lang('Session list')];
$interbreadcrumb[] = [
'url' => '../session/resume_session.php?id_session='.api_get_session_id(),
'name' => get_lang('SessionOverview'),
'name' => get_lang('Session overview'),
];
}
$view = isset($_REQUEST['view']) ? $_REQUEST['view'] : '';
$nameTools = get_lang('Tracking');
$nameTools = get_lang('Reporting');
// Display the header.
Display::display_header($nameTools, 'Tracking');
@ -107,7 +107,7 @@ echo '<a href="javascript: void(0);" onclick="javascript: window.print();">'.
Display::return_icon('printer.png', get_lang('Print'), '', ICON_SIZE_MEDIUM).'</a>';
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&id_session='.api_get_session_id().'&export=csv">
'.Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), '', ICON_SIZE_MEDIUM).'</a>';
'.Display::return_icon('export_csv.png', get_lang('CSV export'), '', ICON_SIZE_MEDIUM).'</a>';
echo '</span>';
echo '</div>';
@ -125,12 +125,12 @@ if ($lpReporting) {
echo Display::page_subheader(
Display::return_icon(
'scorms.gif',
get_lang('AverageProgressInLearnpath')
).' '.get_lang('AverageProgressInLearnpath')
get_lang('Progress in courses')
).' '.get_lang('Progress in courses')
);
echo '<table class="data_table">';
if ($export_csv) {
$temp = [get_lang('AverageProgressInLearnpath', ''), ''];
$temp = [get_lang('Progress in courses', ''), ''];
$csv_content[] = ['', ''];
$csv_content[] = $temp;
}
@ -179,8 +179,8 @@ if ($exerciseReporting) {
echo Display::page_subheader(
Display::return_icon(
'quiz.png',
get_lang('AverageResultsToTheExercices')
).' '.get_lang('AverageResultsToTheExercices')
get_lang('Tests score')
).' '.get_lang('Tests score')
);
echo '<table class="data_table">';
$course_id = api_get_course_int_id();
@ -189,7 +189,7 @@ if ($exerciseReporting) {
$rs = Database::query($sql);
if ($export_csv) {
$temp = [get_lang('AverageProgressInLearnpath'), ''];
$temp = [get_lang('Progress in courses'), ''];
$csv_content[] = ['', ''];
$csv_content[] = $temp;
}
@ -226,9 +226,9 @@ if ($exerciseReporting) {
}
}
} else {
echo '<tr><td>'.get_lang('NoExercises').'</td></tr>';
echo '<tr><td>'.get_lang('No tests').'</td></tr>';
if ($export_csv) {
$temp = [get_lang('NoExercises', ''), ''];
$temp = [get_lang('No tests', ''), ''];
$csv_content[] = $temp;
}
}
@ -261,9 +261,9 @@ $count_number_of_posts_by_course = Tracking:: count_number_of_posts_by_course(
if ($export_csv) {
$csv_content[] = [get_lang('Forum')];
$csv_content[] = [get_lang('ForumForumsNumber'), $count_number_of_forums_by_course];
$csv_content[] = [get_lang('ForumThreadsNumber'), $count_number_of_threads_by_course];
$csv_content[] = [get_lang('ForumPostsNumber'), $count_number_of_posts_by_course];
$csv_content[] = [get_lang('Forums Number'), $count_number_of_forums_by_course];
$csv_content[] = [get_lang('Threads number'), $count_number_of_threads_by_course];
$csv_content[] = [get_lang('Posts number'), $count_number_of_posts_by_course];
}
// Forums tracking.
@ -271,12 +271,12 @@ echo '<div class="report_section">';
echo Display::page_subheader(
Display::return_icon('forum.gif', get_lang('Forum')).' '.
get_lang('Forum').'&nbsp;-&nbsp;<a href="../forum/index.php?'.api_get_cidreq().'">'.
get_lang('SeeDetail').'</a>'
get_lang('See detail').'</a>'
);
echo '<table class="data_table">';
echo '<tr><td>'.get_lang('ForumForumsNumber').'</td><td align="right">'.$count_number_of_forums_by_course.'</td></tr>';
echo '<tr><td>'.get_lang('ForumThreadsNumber').'</td><td align="right">'.$count_number_of_threads_by_course.'</td></tr>';
echo '<tr><td>'.get_lang('ForumPostsNumber').'</td><td align="right">'.$count_number_of_posts_by_course.'</td></tr>';
echo '<tr><td>'.get_lang('Forums Number').'</td><td align="right">'.$count_number_of_forums_by_course.'</td></tr>';
echo '<tr><td>'.get_lang('Threads number').'</td><td align="right">'.$count_number_of_threads_by_course.'</td></tr>';
echo '<tr><td>'.get_lang('Posts number').'</td><td align="right">'.$count_number_of_posts_by_course.'</td></tr>';
echo '</table></div>';
echo '<div class="clear"></div>';
@ -297,7 +297,7 @@ if ($showChatReporting) {
$csv_content[] = [get_lang('Chat', ''), ''];
$csv_content[] = [
sprintf(
get_lang('ChatConnectionsDuringLastXDays', ''),
get_lang('Connections to the chat during last %s days', ''),
'7'
),
$chat_connections_during_last_x_days_by_course,
@ -305,7 +305,7 @@ if ($showChatReporting) {
}
echo '<tr><td>';
echo sprintf(
get_lang('ChatConnectionsDuringLastXDays'),
get_lang('Connections to the chat during last %s days'),
'7'
);
echo '</td><td align="right">'.$chat_connections_during_last_x_days_by_course.'</td></tr>';
@ -320,8 +320,8 @@ if ($showTrackingReporting) {
echo Display::page_subheader(
Display::return_icon(
'acces_tool.gif',
get_lang('ToolsMostUsed')
).' '.get_lang('ToolsMostUsed')
get_lang('Tools most used')
).' '.get_lang('Tools most used')
);
echo '<table class="data_table">';
@ -331,7 +331,7 @@ if ($showTrackingReporting) {
);
if ($export_csv) {
$temp = [get_lang('ToolsMostUsed'), ''];
$temp = [get_lang('Tools most used'), ''];
$csv_content[] = $temp;
}
@ -339,12 +339,12 @@ if ($showTrackingReporting) {
foreach ($tools_most_used as $row) {
echo '<tr>
<td>'.get_lang(ucfirst($row['access_tool'])).'</td>
<td align="right">'.$row['count_access_tool'].' '.get_lang('Clicks').'</td>
<td align="right">'.$row['count_access_tool'].' '.get_lang('clicks').'</td>
</tr>';
if ($export_csv) {
$temp = [
get_lang(ucfirst($row['access_tool']), ''),
$row['count_access_tool'].' '.get_lang('Clicks', ''),
$row['count_access_tool'].' '.get_lang('clicks', ''),
];
$csv_content[] = $temp;
}
@ -359,18 +359,18 @@ if ($documentReporting) {
// Documents tracking.
if (!isset($_GET['num']) || empty($_GET['num'])) {
$num = 3;
$link = '&nbsp;-&nbsp;<a href="'.api_get_self().'?'.api_get_cidreq().'&num=1#documents_tracking">'.get_lang('SeeDetail').'</a>';
$link = '&nbsp;-&nbsp;<a href="'.api_get_self().'?'.api_get_cidreq().'&num=1#documents_tracking">'.get_lang('See detail').'</a>';
} else {
$num = 1000;
$link = '&nbsp;-&nbsp;<a href="'.api_get_self().'?'.api_get_cidreq().'&num=0#documents_tracking">'.get_lang('ViewMinus').'</a>';
$link = '&nbsp;-&nbsp;<a href="'.api_get_self().'?'.api_get_cidreq().'&num=0#documents_tracking">'.get_lang('View minus').'</a>';
}
echo '<a name="documents_tracking" id="a"></a><div class="report_section">';
echo Display::page_subheader(
Display::return_icon(
'documents.gif',
get_lang('DocumentsMostDownloaded')
).'&nbsp;'.get_lang('DocumentsMostDownloaded').$link
get_lang('Documents most downloaded')
).'&nbsp;'.get_lang('Documents most downloaded').$link
);
echo '<table class="data_table">';
@ -381,7 +381,7 @@ if ($documentReporting) {
);
if ($export_csv) {
$temp = [get_lang('DocumentsMostDownloaded', ''), ''];
$temp = [get_lang('Documents most downloaded', ''), ''];
$csv_content[] = ['', ''];
$csv_content[] = $temp;
}
@ -397,20 +397,20 @@ if ($documentReporting) {
).'document/show_content.php?file='.$row['down_doc_path'].$course_path_params
);
echo '</td>
<td align="right">'.$row['count_down'].' '.get_lang('Clicks').'</td>
<td align="right">'.$row['count_down'].' '.get_lang('clicks').'</td>
</tr>';
if ($export_csv) {
$temp = [
$row['down_doc_path'],
$row['count_down'].' '.get_lang('Clicks', ''),
$row['count_down'].' '.get_lang('clicks', ''),
];
$csv_content[] = $temp;
}
}
} else {
echo '<tr><td>'.get_lang('NoDocumentDownloaded').'</td></tr>';
echo '<tr><td>'.get_lang('No document downloaded').'</td></tr>';
if ($export_csv) {
$temp = [get_lang('NoDocumentDownloaded', ''), ''];
$temp = [get_lang('No document downloaded', ''), ''];
$csv_content[] = $temp;
}
}
@ -424,8 +424,8 @@ if ($linkReporting) {
echo Display::page_subheader(
Display::return_icon(
'link.gif',
get_lang('LinksMostClicked')
).'&nbsp;'.get_lang('LinksMostClicked')
get_lang('Links most visited')
).'&nbsp;'.get_lang('Links most visited')
);
echo '<table class="data_table">';
$links_most_visited = Tracking::get_links_most_visited_by_course(
@ -434,7 +434,7 @@ if ($linkReporting) {
);
if ($export_csv) {
$temp = [get_lang('LinksMostClicked'), ''];
$temp = [get_lang('Links most visited'), ''];
$csv_content[] = ['', ''];
$csv_content[] = $temp;
}
@ -446,19 +446,19 @@ if ($linkReporting) {
$row['title'].' ('.$row['url'].')',
$row['url']
);
echo '</td><td align="right">'.$row['count_visits'].' '.get_lang('Clicks').'</td></tr>';
echo '</td><td align="right">'.$row['count_visits'].' '.get_lang('clicks').'</td></tr>';
if ($export_csv) {
$temp = [
$row['title'],
$row['count_visits'].' '.get_lang('Clicks', ''),
$row['count_visits'].' '.get_lang('clicks', ''),
];
$csv_content[] = $temp;
}
}
} else {
echo '<tr><td>'.get_lang('NoLinkVisited').'</td></tr>';
echo '<tr><td>'.get_lang('No link visited').'</td></tr>';
if ($export_csv) {
$temp = [get_lang('NoLinkVisited'), ''];
$temp = [get_lang('No link visited'), ''];
$csv_content[] = $temp;
}
}

@ -41,9 +41,9 @@ foreach ($session_list as $sesion_item) {
$my_session_list[$sesion_item['id']] = $sesion_item['name'];
}
if (count($session_list) == 0) {
$my_session_list[0] = get_lang('None');
$my_session_list[0] = get_lang('none');
}
$form->addElement('select', 'session_id', get_lang('Sessions'), $my_session_list);
$form->addElement('select', 'session_id', get_lang('Course sessions'), $my_session_list);
$form->addButtonFilter(get_lang('Filter'));
if (!empty($_REQUEST['score'])) {
@ -64,15 +64,15 @@ $form->setDefaults(['session_id' => $session_id]);
$course_list = SessionManager::get_course_list_by_session_id($session_id);
if (!$export_to_xls) {
Display :: display_header(get_lang("MySpace"));
Display :: display_header(get_lang("Reporting"));
echo '<div class="actions">';
if ($global) {
echo MySpace::getTopMenu();
} else {
echo '<div style="float:left; clear:left">
<a href="courseLog.php?'.api_get_cidreq().'&studentlist=true">'.get_lang('StudentsTracking').'</a>&nbsp;|
<a href="courseLog.php?'.api_get_cidreq().'&studentlist=false">'.get_lang('CourseTracking').'</a>&nbsp;';
<a href="courseLog.php?'.api_get_cidreq().'&studentlist=true">'.get_lang('Report on learners').'</a>&nbsp;|
<a href="courseLog.php?'.api_get_cidreq().'&studentlist=false">'.get_lang('Course report').'</a>&nbsp;';
echo '</div>';
}
echo '</div>';
@ -81,9 +81,9 @@ if (!$export_to_xls) {
echo MySpace::getAdminActions();
}
echo '<h2>'.get_lang('LPExerciseResultsBySession').'</h2>';
echo '<h2>'.get_lang('Results of learning paths exercises by session').'</h2>';
$form->display();
echo Display::return_message(get_lang('StudentScoreAverageIsCalculatedBaseInAllLPsAndAllAttempts'));
echo Display::return_message(get_lang('Learner score average is calculated bases on all learning paths and all attempts'));
}
$users = SessionManager::get_users_by_session($session_id);
@ -128,10 +128,10 @@ if (!empty($users) && is_array($users)) {
$html_result .= '<table class="data_table">';
$html_result .= '<tr><th>'.get_lang('User').'</th>';
foreach ($course_list as $item) {
$html_result .= '<th>'.$item['title'].'<br /> '.get_lang('AverageScore').' %</th>';
$html_result .= '<th>'.$item['title'].'<br /> '.get_lang('Average score').' %</th>';
}
$html_result .= '<th>'.get_lang('AverageScore').' %</th>';
$html_result .= '<th>'.get_lang('LastConnexionDate').'</th></tr>';
$html_result .= '<th>'.get_lang('Average score').' %</th>';
$html_result .= '<th>'.get_lang('Last connexion date').'</th></tr>';
foreach ($users as $user) {
$total_student = 0;
@ -182,7 +182,7 @@ if (!empty($users) && is_array($users)) {
$html_result .= "<td>$total_student</td><td>$string_date</td></tr>";
}
$html_result .= "<tr><th>".get_lang('AverageScore')."</th>";
$html_result .= "<tr><th>".get_lang('Average score')."</th>";
$total_average = 0;
$counter = 0;
foreach ($course_list as $course_item) {
@ -211,7 +211,7 @@ if (!empty($users) && is_array($users)) {
$html_result .= "</tr>";
$html_result .= '</table>';
} else {
echo Display::return_message(get_lang('NoResults'), 'warning');
echo Display::return_message(get_lang('No results found'), 'warning');
}
if (!$export_to_xls) {

@ -68,7 +68,7 @@ if ($global) {
while ($row = Database::fetch_array($result)) {
$exerciseList[$row['id']] = $row['title'];
}
$form->addElement('select', 'exercise_id', get_lang('Exercise'), $exerciseList);
$form->addElement('select', 'exercise_id', get_lang('Test'), $exerciseList);
}
$form->addButtonFilter(get_lang('Filter'));
@ -83,31 +83,31 @@ if (!$exportToXLS) {
$actionsLeft = $actionsRight = '';
if ($global) {
$actionsLeft .= '<a href="'.api_get_path(WEB_CODE_PATH).'auth/my_progress.php">'.
Display::return_icon('statistics.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM);
Display::return_icon('statistics.png', get_lang('View my progress'), '', ICON_SIZE_MEDIUM);
$actionsLeft .= '</a>';
$courseInfo = api_get_course_info();
$actionsRight .= '<a href="'.api_get_self().'?export=1&score='.$filter_score.'&exercise_id='.$exerciseId.'">'.
Display::return_icon('export_excel.png', get_lang('ExportAsXLS'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('export_excel.png', get_lang('Excel export'), '', ICON_SIZE_MEDIUM).'</a>';
$actionsRight .= '<a href="javascript: void(0);" onclick="javascript: window.print()">'.
Display::return_icon('printer.png', get_lang('Print'), '', ICON_SIZE_MEDIUM).'</a>';
$menuItems[] = Display::url(
Display::return_icon('teacher.png', get_lang('TeacherInterface'), [], 32),
Display::return_icon('teacher.png', get_lang('Trainer View'), [], 32),
api_get_path(WEB_CODE_PATH).'mySpace/?view=teacher'
);
if (api_is_platform_admin()) {
$menuItems[] = Display::url(
Display::return_icon('star.png', get_lang('AdminInterface'), [], 32),
Display::return_icon('star.png', get_lang('Admin view'), [], 32),
api_get_path(WEB_CODE_PATH).'mySpace/admin_view.php'
);
} else {
$menuItems[] = Display::url(
Display::return_icon('star.png', get_lang('CoachInterface'), [], 32),
Display::return_icon('star.png', get_lang('Coach interface'), [], 32),
api_get_path(WEB_CODE_PATH).'mySpace/index.php?view=coach'
);
}
$menuItems[] = '<a href="#">'.Display::return_icon('quiz_na.png', get_lang('ExamTracking'), [], 32).'</a>';
$menuItems[] = '<a href="#">'.Display::return_icon('quiz_na.png', get_lang('Exam tracking'), [], 32).'</a>';
$nb_menu_items = count($menuItems);
if ($nb_menu_items > 1) {
@ -119,7 +119,7 @@ if (!$exportToXLS) {
$actionsLeft = TrackingCourseLog::actionsLeft('exams', api_get_session_id());
$actionsRight .= Display::url(
Display::return_icon('export_excel.png', get_lang('ExportAsXLS'), [], 32),
Display::return_icon('export_excel.png', get_lang('Excel export'), [], 32),
api_get_self().'?'.api_get_cidreq().'&export=1&score='.$filter_score.'&exercise_id='.$exerciseId
);
}
@ -128,26 +128,26 @@ if (!$exportToXLS) {
echo $toolbar;
$form->display();
echo '<h3>'.sprintf(get_lang('FilteringWithScoreX'), $filter_score).'%</h3>';
echo '<h3>'.sprintf(get_lang('Filtering with score %s'), $filter_score).'%</h3>';
}
$html = '<table class="data_table">';
if ($global) {
$html .= '<tr>';
$html .= '<th>'.get_lang('Courses').'</th>';
$html .= '<th>'.get_lang('Quiz').'</th>';
$html .= '<th>'.get_lang('ExamTaken').'</th>';
$html .= '<th>'.get_lang('ExamNotTaken').'</th>';
$html .= '<th>'.sprintf(get_lang('ExamPassX'), $filter_score).'%</th>';
$html .= '<th>'.get_lang('ExamFail').'</th>';
$html .= '<th>'.get_lang('TotalStudents').'</th>';
$html .= '<th>'.get_lang('Tests').'</th>';
$html .= '<th>'.get_lang('Taken').'</th>';
$html .= '<th>'.get_lang('Not taken').'</th>';
$html .= '<th>'.sprintf(get_lang('Pass minimum %s'), $filter_score).'%</th>';
$html .= '<th>'.get_lang('Fail').'</th>';
$html .= '<th>'.get_lang('Total learners').'</th>';
$html .= '</tr>';
} else {
$html .= '<tr>';
$html .= '<th>'.get_lang('Quiz').'</th>';
$html .= '<th>'.get_lang('Tests').'</th>';
$html .= '<th>'.get_lang('User').'</th>';
$html .= '<th>'.get_lang('Username').'</th>';
//$html .= '<th>'.sprintf(get_lang('ExamPassX'), $filter_score).'</th>';
//$html .= '<th>'.sprintf(get_lang('Pass minimum %s'), $filter_score).'</th>';
$html .= '<th>'.get_lang('Percentage').' %</th>';
$html .= '<th>'.get_lang('Status').'</th>';
$html .= '<th>'.get_lang('Attempts').'</th>';
@ -324,7 +324,7 @@ if (!empty($courseList) && is_array($courseList)) {
} else {
$html .= "<tr>
<td colspan='6'>
".get_lang('NoExercise')."
".get_lang('NoTest')."
</td>
</tr>
";
@ -332,7 +332,7 @@ if (!empty($courseList) && is_array($courseList)) {
} else {
$html .= "<tr>
<td colspan='6'>
".get_lang('NoExercise')."
".get_lang('NoTest')."
</td>
</tr>
";
@ -389,17 +389,17 @@ function export_complete_report_xls($filename, $array)
if ($global) {
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Courses'));
$column++;
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Exercises'));
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Tests'));
$column++;
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('ExamTaken'));
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Taken'));
$column++;
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('ExamNotTaken'));
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Not taken'));
$column++;
$worksheet->setCellValueByColumnAndRow($column, $line, sprintf(get_lang('ExamPassX'), $filter_score).'%');
$worksheet->setCellValueByColumnAndRow($column, $line, sprintf(get_lang('Pass minimum %s'), $filter_score).'%');
$column++;
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('ExamFail'));
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Fail'));
$column++;
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('TotalStudents'));
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Total learners'));
$column++;
$line++;
@ -413,7 +413,7 @@ function export_complete_report_xls($filename, $array)
}
$line++;
} else {
$worksheet->setCellValueByColumnAndRow(0, $line, get_lang('Exercises'));
$worksheet->setCellValueByColumnAndRow(0, $line, get_lang('Tests'));
$worksheet->setCellValueByColumnAndRow(1, $line, get_lang('User'));
$worksheet->setCellValueByColumnAndRow(2, $line, get_lang('Username'));
$worksheet->setCellValueByColumnAndRow(3, $line, get_lang('Percentage'));
@ -605,12 +605,12 @@ function processStudentList($filter_score, $global, $exercise, $courseInfo, $ses
if ($percentageScore >= $filter_score) {
$userRow .= '<td style="background-color:#DFFFA8">';
$userRow .= get_lang('PassExam').'</td>';
$tempArray[] = get_lang('PassExam');
$userRow .= get_lang('Pass').'</td>';
$tempArray[] = get_lang('Pass');
} else {
$userRow .= '<td style="background-color:#FC9A9E" >';
$userRow .= get_lang('ExamFail').'</td>';
$tempArray[] = get_lang('ExamFail');
$userRow .= get_lang('Fail').'</td>';
$tempArray[] = get_lang('Fail');
}
$userRow .= '<td>';
@ -625,8 +625,8 @@ function processStudentList($filter_score, $global, $exercise, $courseInfo, $ses
$userRow .= '</td>';
$userRow .= '<td style="background-color:#FCE89A">';
$userRow .= get_lang('NoAttempt');
$tempArray[] = get_lang('NoAttempt');
$userRow .= get_lang('No attempts');
$tempArray[] = get_lang('No attempts');
$userRow .= '</td>';
$userRow .= '<td>';
$userRow .= 0;

@ -68,7 +68,7 @@ if ($global) {
while ($a_exercices = Database::fetch_array($resultExercices)) {
$exercise_list[$a_exercices['id']] = $a_exercices['title'];
}
$form->addElement('select', 'exercise_id', get_lang('Exercise'), $exercise_list);
$form->addElement('select', 'exercise_id', get_lang('Test'), $exercise_list);
}
//$form->addElement('submit','submit',get_lang('Filter'));
@ -88,19 +88,19 @@ if (!$export_to_csv) {
if ($global) {
echo '<div style="float:right"> <a href="'.api_get_self().'?export=1&score='.$filter_score.'&exercise_id='.$exercise_id.'">
'.Display::return_icon('csv.gif').'
&nbsp;'.get_lang('ExportAsCSV').'</a>'.
&nbsp;'.get_lang('CSV export').'</a>'.
'<a href="javascript: void(0);" onclick="javascript: window.print()">
'.Display::return_icon('printmgr.gif').'
&nbsp;'.get_lang('Print').'</a>
</div>';
$menu_items[] = '<a href="'.api_get_path(WEB_CODE_PATH).'mySpace/?view=teacher">'.get_lang('TeacherInterface').'</a>';
$menu_items[] = '<a href="'.api_get_path(WEB_CODE_PATH).'mySpace/?view=teacher">'.get_lang('Trainer View').'</a>';
if (api_is_platform_admin()) {
$menu_items[] = '<a href="'.api_get_path(WEB_CODE_PATH).'mySpace/?view=admin">'.get_lang('AdminInterface').'</a>';
$menu_items[] = '<a href="'.api_get_path(WEB_CODE_PATH).'mySpace/?view=admin">'.get_lang('Admin view').'</a>';
} else {
$menu_items[] = '<a href="'.api_get_path(WEB_CODE_PATH).'mySpace/?view=coach">'.get_lang('AdminInterface').'</a>';
$menu_items[] = '<a href="'.api_get_path(WEB_CODE_PATH).'mySpace/?view=coach">'.get_lang('Admin view').'</a>';
}
$menu_items[] = get_lang('ExamTracking');
$menu_items[] = get_lang('Exam tracking');
$nb_menu_items = count($menu_items);
if ($nb_menu_items > 1) {
foreach ($menu_items as $key => $item) {
@ -112,13 +112,13 @@ if (!$export_to_csv) {
echo '<br />';
}
} else {
echo '<a href="courseLog.php?'.api_get_cidreq().'&studentlist=true">'.get_lang('StudentsTracking').'</a>&nbsp;|
<a href="courseLog.php?'.api_get_cidreq().'&studentlist=false">'.get_lang('CourseTracking').'</a>&nbsp;|&nbsp';
echo '<a href="courseLog.php?'.api_get_cidreq().'&studentlist=resources">'.get_lang('ResourcesTracking').'</a>';
echo ' | '.get_lang('ExamTracking').'';
echo '<a href="courseLog.php?'.api_get_cidreq().'&studentlist=true">'.get_lang('Report on learners').'</a>&nbsp;|
<a href="courseLog.php?'.api_get_cidreq().'&studentlist=false">'.get_lang('Course report').'</a>&nbsp;|&nbsp';
echo '<a href="courseLog.php?'.api_get_cidreq().'&studentlist=resources">'.get_lang('Report on resource').'</a>';
echo ' | '.get_lang('Exam tracking').'';
echo '<a href="'.api_get_self().'?export=1&score='.$filter_score.'&exercise_id='.$exercise_id.'">
'.Display::return_icon('excel.gif').'
&nbsp;'.get_lang('ExportAsXLS').'</a><br /><br />';
&nbsp;'.get_lang('Excel export').'</a><br /><br />';
}
echo '</div>';
echo '<br /><br />';
@ -174,12 +174,12 @@ $export_array = [];
if (!empty($main_result)) {
$html_result .= '<table class="data_table">';
$html_result .= '<tr><th>'.get_lang('Course').'</th>';
$html_result .= '<th>'.get_lang('LearningPath').'</th>';
$html_result .= '<th>'.get_lang('Exercise').'</th>';
$html_result .= '<th>'.get_lang('Learning paths').'</th>';
$html_result .= '<th>'.get_lang('Test').'</th>';
$html_result .= '<th>'.get_lang('User').'</th>';
$html_result .= '<th>'.get_lang('Attempt').'</th>';
$html_result .= '<th>'.get_lang('Date').'</th>';
$html_result .= '<th>'.get_lang('Results').'</th>';
$html_result .= '<th>'.get_lang('Results and feedback and feedback').'</th>';
$html_result .= '</tr>';
foreach ($main_result as $course_code => $lps) {
@ -237,12 +237,12 @@ function export_complete_report_csv($filename, $array)
{
$header[] = [
get_lang('Course'),
get_lang('LearningPath'),
get_lang('Exercise'),
get_lang('Learning paths'),
get_lang('Test'),
get_lang('User'),
get_lang('Attempt'),
get_lang('Date'),
get_lang('Results'),
get_lang('Results and feedback and feedback'),
];
if (!empty($array)) {
$array = array_merge($header, $array);

@ -63,18 +63,18 @@ $usersData[$fromUserId] = api_get_user_info($fromUserId);
$messages = MessageManager::getAllMessagesBetweenStudents($toUserId, $fromUserId);
$content = Display::page_subheader2(sprintf(
get_lang('MessagesExchangeBetweenXAndY'),
get_lang('Messages exchange between %s and %s'),
$usersData[$toUserId]['complete_name'],
$usersData[$fromUserId]['complete_name']
));
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'mySpace/student.php',
'name' => get_lang('MyStudents'),
'name' => get_lang('My learners'),
];
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'mySpace/myStudents.php?student='.$fromUserId,
'name' => get_lang('StudentDetails'),
'name' => get_lang('Learner details'),
];
$uniqueMessageList = [];
@ -102,6 +102,6 @@ foreach ($messages as $message) {
$uniqueMessageList[] = $hash;
}
$template = new Template(get_lang('MessageTracking'));
$template = new Template(get_lang('Message tracking'));
$template->assign('content', $content);
$template->display_one_col_template();

@ -31,7 +31,7 @@ $global = true;
$course_list = $course_select_list = [];
$html_result = '';
$course_select_list[0] = get_lang('None');
$course_select_list[0] = get_lang('none');
$htmlHeadXtra[] = '
<script type="text/javascript">
@ -57,7 +57,7 @@ foreach ($temp_course_list as $temp_course_item) {
$session_list = SessionManager::get_sessions_list([], ['name']);
$my_session_list = [];
$my_session_list[0] = get_lang('None');
$my_session_list[0] = get_lang('none');
foreach ($session_list as $sesion_item) {
$my_session_list[$sesion_item['id']] = $sesion_item['name'];
}
@ -66,7 +66,7 @@ $form = new FormValidator('search_simple', 'POST', '', '', null, false);
$form->addElement(
'select',
'session_id',
get_lang('Sessions'),
get_lang('Course sessions'),
$my_session_list,
['id' => 'session_id', 'onchange' => 'load_courses();']
);
@ -146,16 +146,16 @@ if (!empty($course_info)) {
}
if (!$export_to_xls) {
Display::display_header(get_lang("MySpace"));
Display::display_header(get_lang("Reporting"));
echo '<div class="actions">';
if ($global) {
echo MySpace::getTopMenu();
} else {
echo '<div style="float:left; clear:left">
<a href="courseLog.php?'.api_get_cidreq().'&studentlist=true">'.
get_lang('StudentsTracking').'</a>&nbsp;|
get_lang('Report on learners').'</a>&nbsp;|
<a href="courseLog.php?'.api_get_cidreq().'&studentlist=false">'.
get_lang('CourseTracking').'</a>&nbsp;';
get_lang('Course report').'</a>&nbsp;';
echo '</div>';
}
echo '</div>';
@ -164,12 +164,12 @@ if (!$export_to_xls) {
echo MySpace::getAdminActions();
}
echo '<br />';
echo '<h2>'.get_lang('LPQuestionListResults').'</h2>';
echo '<h2>'.get_lang('Learning paths exercises results list').'</h2>';
$form->display();
if (empty($course_code)) {
echo Display::return_message(get_lang('PleaseSelectACourse'), 'warning');
echo Display::return_message(get_lang('Please select a course'), 'warning');
}
}
@ -179,8 +179,8 @@ $counter = 0;
if (!empty($main_question_list) && is_array($main_question_list)) {
$html_result .= '<table class="data_table">';
$html_result .= '<tr><th>'.get_lang('Question').
Display::return_icon('info3.gif', get_lang('QuestionsAreTakenFromLPExercises'), ['align' => 'absmiddle', 'hspace' => '3px']).'</th>';
$html_result .= '<th>'.$course_info['visual_code'].' '.get_lang('AverageScore').Display::return_icon('info3.gif', get_lang('AllStudentsAttemptsAreConsidered'), ['align' => 'absmiddle', 'hspace' => '3px']).' </th>';
Display::return_icon('info3.gif', get_lang('These questions have been taken from the learning paths'), ['align' => 'absmiddle', 'hspace' => '3px']).'</th>';
$html_result .= '<th>'.$course_info['visual_code'].' '.get_lang('Average score').Display::return_icon('info3.gif', get_lang('All learners attempts are considered'), ['align' => 'absmiddle', 'hspace' => '3px']).' </th>';
$html_result .= '<th>'.get_lang('Quantity').'</th>';
foreach ($main_question_list as $question) {
@ -213,7 +213,7 @@ if (!empty($main_question_list) && is_array($main_question_list)) {
$html_result .= '</table>';
} else {
if (!empty($course_code)) {
echo Display::return_message(get_lang('NoResults'), 'warning');
echo Display::return_message(get_lang('No results found'), 'warning');
}
}

@ -98,20 +98,20 @@ $sessionId = api_get_session_id();
if (isset($_GET['origin']) && $_GET['origin'] == 'resume_session') {
$interbreadcrumb[] = [
'url' => '../admin/index.php',
'name' => get_lang('PlatformAdmin'),
'name' => get_lang('Administration'),
];
$interbreadcrumb[] = [
'url' => '../session/session_list.php',
'name' => get_lang('SessionList'),
'name' => get_lang('Session list'),
];
$interbreadcrumb[] = [
'url' => '../session/resume_session.php?id_session='.$sessionId,
'name' => get_lang('SessionOverview'),
'name' => get_lang('Session overview'),
];
}
$view = isset($_REQUEST['view']) ? $_REQUEST['view'] : '';
$nameTools = get_lang('Tracking');
$nameTools = get_lang('Reporting');
// getting all the students of the course
if (empty($session_id)) {
@ -137,25 +137,25 @@ Display::display_header($nameTools, 'Tracking');
$actionsLeft = Display::return_icon(
'user_na.png',
get_lang('StudentsTracking'),
get_lang('StudentsReporting'),
[],
ICON_SIZE_MEDIUM
);
$actionsLeft .= Display::url(
Display::return_icon('group.png', get_lang('GroupReporting'), [], ICON_SIZE_MEDIUM),
Display::return_icon('group.png', get_lang('Group reporting'), [], ICON_SIZE_MEDIUM),
'course_log_groups.php?'.api_get_cidreq()
);
$actionsLeft .= Display::url(
Display::return_icon('course.png', get_lang('CourseTracking'), [], ICON_SIZE_MEDIUM),
Display::return_icon('course.png', get_lang('CourseReporting'), [], ICON_SIZE_MEDIUM),
'course_log_tools.php?'.api_get_cidreq()
);
$actionsLeft .= Display::url(
Display::return_icon('tools.png', get_lang('ResourcesTracking'), [], ICON_SIZE_MEDIUM),
Display::return_icon('tools.png', get_lang('ResourcesReporting'), [], ICON_SIZE_MEDIUM),
'course_log_resources.php?'.api_get_cidreq()
);
$actionsLeft .= Display::url(
Display::return_icon('quiz.png', get_lang('ExamTracking'), [], ICON_SIZE_MEDIUM),
Display::return_icon('quiz.png', get_lang('ExamReporting'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'tracking/exams.php?'.api_get_cidreq()
);
@ -175,7 +175,7 @@ if (isset($_GET['users_tracking_per_page'])) {
$users_tracking_per_page = '&users_tracking_per_page='.intval($_GET['users_tracking_per_page']);
}
$actionsRight .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&export=csv&'.$users_tracking_per_page.'">
'.Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), '', ICON_SIZE_MEDIUM).'</a>';
'.Display::return_icon('export_csv.png', get_lang('CSV export'), '', ICON_SIZE_MEDIUM).'</a>';
$actionsRight .= '</div>';
// Create a search-box.
$form_search = new FormValidator(
@ -190,7 +190,7 @@ $form_search->addElement('hidden', 'from', Security::remove_XSS($from));
$form_search->addElement('hidden', 'session_id', $sessionId);
$form_search->addElement('hidden', 'id_session', $sessionId);
$form_search->addElement('text', 'user_keyword');
$form_search->addButtonSearch(get_lang('SearchUsers'));
$form_search->addButtonSearch(get_lang('Search users'));
echo Display::toolbarAction(
'toolbar-courselog',
[$actionsLeft, $form_search->returnForm(), $actionsRight]
@ -238,7 +238,7 @@ if (!empty($session_id)) {
$html = '';
if (!empty($teacherList)) {
$html .= Display::page_subheader2(get_lang('Teachers'));
$html .= Display::page_subheader2(get_lang('Trainers'));
$html .= $teacherList;
}
@ -253,7 +253,7 @@ if (api_is_platform_admin(true) ||
$sessionList = SessionManager::get_session_by_course($courseInfo['real_id']);
if (!empty($sessionList)) {
$html .= Display::page_subheader2(get_lang('SessionList'));
$html .= Display::page_subheader2(get_lang('Session list'));
$icon = Display::return_icon(
'session.png',
null,
@ -271,7 +271,7 @@ if (api_is_platform_admin(true) ||
}
}
$html .= Display::page_subheader2(get_lang('StudentList'));
$html .= Display::page_subheader2(get_lang('Learners list'));
// PERSON_NAME_DATA_EXPORT is buggy
$is_western_name_order = api_is_western_name_order();
@ -295,47 +295,47 @@ if (count($a_students) > 0) {
$table->set_additional_parameters($parameters);
$headers = [];
// tab of header texts
$table->set_header(0, get_lang('OfficialCode'), true);
$headers['official_code'] = get_lang('OfficialCode');
$table->set_header(0, get_lang('Code'), true);
$headers['official_code'] = get_lang('Code');
if ($is_western_name_order) {
$table->set_header(1, get_lang('FirstName'), true);
$headers['firstname'] = get_lang('FirstName');
$table->set_header(2, get_lang('LastName'), true);
$headers['lastname'] = get_lang('LastName');
$table->set_header(1, get_lang('First name'), true);
$headers['firstname'] = get_lang('First name');
$table->set_header(2, get_lang('Last name'), true);
$headers['lastname'] = get_lang('Last name');
} else {
$table->set_header(1, get_lang('LastName'), true);
$headers['lastname'] = get_lang('LastName');
$table->set_header(2, get_lang('FirstName'), true);
$headers['firstname'] = get_lang('FirstName');
$table->set_header(1, get_lang('Last name'), true);
$headers['lastname'] = get_lang('Last name');
$table->set_header(2, get_lang('First name'), true);
$headers['firstname'] = get_lang('First name');
}
$table->set_header(3, get_lang('Login'), false);
$headers['login'] = get_lang('Login');
$table->set_header(4, get_lang('TrainingTime').'&nbsp;'.
Display::return_icon('info3.gif', get_lang('CourseTimeInfo'), ['align' => 'absmiddle', 'hspace' => '3px']),
$table->set_header(4, get_lang('Time').'&nbsp;'.
Display::return_icon('info3.gif', get_lang('Time spent in the course'), ['align' => 'absmiddle', 'hspace' => '3px']),
false,
['style' => 'width:110px;']
);
$headers['training_time'] = get_lang('TrainingTime');
$headers['training_time'] = get_lang('Time');
$table->set_header(5, get_lang('TotalLPTime').'&nbsp;'.
Display::return_icon('info3.gif', get_lang('TotalLPTime'), ['align' => 'absmiddle', 'hspace' => '3px']),
$table->set_header(5, get_lang('Total learnpath time').'&nbsp;'.
Display::return_icon('info3.gif', get_lang('Total learnpath time'), ['align' => 'absmiddle', 'hspace' => '3px']),
false,
['style' => 'width:110px;']
);
$headers['total_time_lp'] = get_lang('TotalLPTime');
$headers['total_time_lp'] = get_lang('Total learnpath time');
$table->set_header(6, get_lang('FirstLoginInCourse'), false);
$headers['first_login'] = get_lang('FirstLoginInCourse');
$table->set_header(7, get_lang('LatestLoginInCourse'), false);
$headers['latest_login'] = get_lang('LatestLoginInCourse');
$table->set_header(6, get_lang('First access to course'), false);
$headers['first_login'] = get_lang('First access to course');
$table->set_header(7, get_lang('Latest access in course'), false);
$headers['latest_login'] = get_lang('Latest access in course');
// Display the table
$html .= "<div id='reporting_table'>";
$html .= $table->return_table();
$html .= "</div>";
} else {
$html .= Display::return_message(get_lang('NoUsersInCourse'), 'warning', true);
$html .= Display::return_message(get_lang('No users in course'), 'warning', true);
}
echo Display::panel($html, $titleSession);
Display::display_footer();

Loading…
Cancel
Save