Update get_lang calls using full string.

pull/3016/head
Julio Montoya 6 years ago
parent d4a41d6e3a
commit e19bfc3219
  1. 6
      main/dropbox/dropbox_class.inc.php
  2. 2
      main/dropbox/dropbox_download.php
  3. 108
      main/dropbox/dropbox_functions.inc.php
  4. 20
      main/dropbox/dropbox_init.inc.php
  5. 54
      main/dropbox/index.php
  6. 6
      main/dropbox/recover_dropbox_files.php
  7. 10
      main/exercise/export/aiken/aiken_import.inc.php
  8. 6
      main/exercise/export/scorm/scorm_classes.php
  9. 24
      main/extra/group_space_tracking.php
  10. 290
      main/extra/myStudents.php
  11. 2
      main/extra/my_progress_ind.php
  12. 36
      main/extra/print_myStudents.php
  13. 68
      main/extra/userInfo.php
  14. 20
      main/extrafield/translate.php
  15. 2
      main/gamification/my_progress.php
  16. 4
      main/glossary/glossary_ajax_request.php
  17. 62
      main/glossary/index.php
  18. 4
      main/help/allowed_html_tags.php
  19. 8
      main/help/faq.php
  20. 4
      main/help/help.php
  21. 6
      main/link/link.php
  22. 46
      main/notebook/index.php
  23. 14
      main/permissions/blog_permissions.inc.php
  24. 10
      main/permissions/group_permissions.inc.php
  25. 12
      main/permissions/permissions_functions.inc.php
  26. 8
      main/permissions/roles.php
  27. 14
      main/permissions/user_permissions.inc.php
  28. 2
      main/plagiarism/compilatio/upload.php
  29. 2
      main/search/index.php
  30. 16
      main/timeline/index.php
  31. 12
      main/webservices/api/v2.php
  32. 10
      main/webservices/user_import/import.lib.php
  33. 4
      main/wiki/index.php
  34. 2
      plugin/grading_electronic/generate.php

@ -325,7 +325,7 @@ class Dropbox_SentWork extends Dropbox_Work
}
if (!is_array($recipient_ids) || count($recipient_ids) == 0) {
die(get_lang('GeneralError').' (code 209)');
die(get_lang('An error has occured. Please contact your system administrator.').' (code 209)');
}
foreach ($recipient_ids as $rec) {
@ -557,7 +557,7 @@ class Dropbox_Person
if (!$found) {
if (!$this->deleteReceivedWorkFolder($id)) {
die(get_lang('GeneralError').' (code 216)');
die(get_lang('An error has occured. Please contact your system administrator.').' (code 216)');
}
}
// Delete entries in person table concerning received works
@ -607,7 +607,7 @@ class Dropbox_Person
}
if (!$found) {
if (!$this->deleteReceivedWorkFolder($id)) {
die(get_lang('GeneralError').' (code 219)');
die(get_lang('An error has occured. Please contact your system administrator.').' (code 219)');
}
}
//$file_id = $this->sentWork[$index]->id;

@ -80,7 +80,7 @@ if (!$allowed_to_download) {
api_not_allowed(
true,
Display::return_message(
get_lang('YouAreNotAllowedToDownloadThisFile'),
get_lang('You are not allowed to download this file.'),
'error'
)
);

@ -58,7 +58,7 @@ function handle_multiple_actions()
$checked_file_ids = $_POST['id'];
if (!is_array($checked_file_ids) || count($checked_file_ids) == 0) {
return get_lang('CheckAtLeastOneFile');
return get_lang('Check at least one file.');
}
// Deleting
@ -67,11 +67,11 @@ function handle_multiple_actions()
foreach ($checked_file_ids as $key => $value) {
if ($_GET['view'] == 'received') {
$dropboxfile->deleteReceivedWork($value);
$message = get_lang('ReceivedFileDeleted');
$message = get_lang('The received file has been deleted.');
}
if ($_GET['view'] == 'sent' || empty($_GET['view'])) {
$dropboxfile->deleteSentWork($value);
$message = get_lang('SentFileDeleted');
$message = get_lang('The sent file has been deleted.');
}
}
@ -93,7 +93,7 @@ function handle_multiple_actions()
store_move($value, $to_cat_id, $part);
}
return get_lang('FilesMoved');
return get_lang('The selected files have been moved.');
}
// STEP 3D: downloading
@ -146,12 +146,12 @@ function delete_category($action, $id, $user_id = null)
$sentreceived = 'received';
$entries_table = Database::get_course_table(TABLE_DROPBOX_POST);
$id_field = 'file_id';
$return_message = get_lang('ReceivedCatgoryDeleted');
$return_message = get_lang('The folder has been deleted');
} elseif ($action == 'deletesentcategory') {
$sentreceived = 'sent';
$entries_table = Database::get_course_table(TABLE_DROPBOX_FILE);
$id_field = 'id';
$return_message = get_lang('SentCatgoryDeleted');
$return_message = get_lang('The folder has been deleted');
} else {
return get_lang('Error');
}
@ -200,16 +200,16 @@ function display_move_form(
'post',
api_get_self().'?view_received_category='.$viewReceivedCategory.'&view_sent_category='.$viewSentCategory.'&view='.$view.'&'.$extra_params
);
$form->addElement('header', get_lang('MoveFileTo'));
$form->addElement('header', get_lang('Move file to'));
$form->addElement('hidden', 'id', intval($id));
$form->addElement('hidden', 'part', Security::remove_XSS($part));
$options = ['0' => get_lang('Root')];
$options = ['0' => get_lang('root')];
foreach ($target as $category) {
$options[$category['cat_id']] = $category['cat_name'];
}
$form->addElement('select', 'move_target', get_lang('MoveFileTo'), $options);
$form->addButtonMove(get_lang('MoveFile'), 'do_move');
$form->addElement('select', 'move_target', get_lang('Move file to'), $options);
$form->addButtonMove(get_lang('Move the file'), 'do_move');
$form->display();
}
@ -241,7 +241,7 @@ function store_move($id, $target, $part)
WHERE c_id = $course_id AND dest_user_id = ".intval($_user['user_id'])."
AND file_id = ".intval($id)."";
Database::query($sql);
$return_message = get_lang('ReceivedFileMoved');
$return_message = get_lang('The received file has been moved.');
}
if ($part == 'sent') {
$sql = "UPDATE ".Database::get_course_table(TABLE_DROPBOX_FILE)."
@ -251,10 +251,10 @@ function store_move($id, $target, $part)
uploader_id = ".intval($_user['user_id'])." AND
id = ".intval($id);
Database::query($sql);
$return_message = get_lang('SentFileMoved');
$return_message = get_lang('The sent file has been moved');
}
} else {
$return_message = get_lang('NotMovedError');
$return_message = get_lang('The file(s) can not be moved.');
}
return $return_message;
@ -356,7 +356,7 @@ function store_addcategory()
// check if the category name is valid
if ($_POST['category_name'] == '') {
return ['type' => 'error', 'message' => get_lang('ErrorPleaseGiveCategoryName')];
return ['type' => 'error', 'message' => get_lang('Please give a category name')];
}
if (!isset($_POST['edit_id'])) {
@ -390,9 +390,9 @@ function store_addcategory()
Database::query($sql);
}
return ['type' => 'confirmation', 'message' => get_lang('CategoryStored')];
return ['type' => 'confirmation', 'message' => get_lang('The folder has been created')];
} else {
return ['type' => 'error', 'message' => get_lang('CategoryAlreadyExistsEditIt')];
return ['type' => 'error', 'message' => get_lang('This category already exists, please use a different name')];
}
} else {
$params = [
@ -413,7 +413,7 @@ function store_addcategory()
]
);
return ['type' => 'confirmation', 'message' => get_lang('CategoryModified')];
return ['type' => 'confirmation', 'message' => get_lang('The category has been modified.')];
}
}
@ -430,7 +430,7 @@ function store_addcategory()
function display_addcategory_form($category_name = '', $id = 0, $action = '')
{
$course_id = api_get_course_int_id();
$title = get_lang('AddNewCategory');
$title = get_lang('Add a new folder');
$id = (int) $id;
@ -453,7 +453,7 @@ function display_addcategory_form($category_name = '', $id = 0, $action = '')
if ($row['sent'] == '1') {
$target = 'sent';
}
$title = get_lang('EditCategory');
$title = get_lang('Edit this category');
}
if ($action == 'addreceivedcategory') {
@ -464,9 +464,9 @@ function display_addcategory_form($category_name = '', $id = 0, $action = '')
}
if ($action == 'editcategory') {
$text = get_lang('ModifyCategory');
$text = get_lang('Edit category');
} elseif ($action == 'addreceivedcategory' || $action == 'addsentcategory') {
$text = get_lang('CreateCategory');
$text = get_lang('Create category');
}
$form = new FormValidator(
@ -482,8 +482,8 @@ function display_addcategory_form($category_name = '', $id = 0, $action = '')
$form->addElement('hidden', 'action', Security::remove_XSS($action));
$form->addElement('hidden', 'target', Security::remove_XSS($target));
$form->addElement('text', 'category_name', get_lang('CategoryName'));
$form->addRule('category_name', get_lang('ThisFieldIsRequired'), 'required');
$form->addElement('text', 'category_name', get_lang('Category name'));
$form->addRule('category_name', get_lang('Required field'), 'required');
$form->addButtonSave($text, 'StoreCategory');
$defaults = [];
@ -534,7 +534,7 @@ function display_add_form($viewReceivedCategory, $viewSentCategory, $view, $id =
]
);
$form->addElement('header', get_lang('UploadNewFile'));
$form->addElement('header', get_lang('Share a new file'));
$maxFileSize = api_get_setting('dropbox_max_filesize');
$form->addElement('hidden', 'MAX_FILE_SIZE', $maxFileSize);
$form->addElement('hidden', 'sec_token', $token);
@ -542,7 +542,7 @@ function display_add_form($viewReceivedCategory, $viewSentCategory, $view, $id =
$form->addElement(
'file',
'file',
get_lang('UploadFile'),
get_lang('File upload'),
['onChange' => 'javascript: checkfile(this.value);']
);
@ -552,7 +552,7 @@ function display_add_form($viewReceivedCategory, $viewSentCategory, $view, $id =
'checkbox',
'cb_overwrite',
null,
get_lang('OverwriteFile'),
get_lang('Overwrite previous versions of same document?'),
['id' => 'cb_overwrite']
);
}
@ -699,13 +699,13 @@ function display_add_form($viewReceivedCategory, $viewSentCategory, $view, $id =
$allowUpload = api_get_setting('dropbox_allow_just_upload');
if ($allowUpload == 'true') {
$options['user_'.$_user['user_id']] = get_lang('JustUploadInSelect');
$options['user_'.$_user['user_id']] = get_lang('---Just upload---');
}
if (empty($idCondition)) {
$form->addSelect(
'recipients',
get_lang('SendTo'),
get_lang('Send to'),
$options,
[
'multiple' => 'multiple',
@ -731,7 +731,7 @@ function display_add_form($viewReceivedCategory, $viewSentCategory, $view, $id =
if (empty($idCondition)) {
$multipleForm->addSelect(
'recipients',
get_lang('SendTo'),
get_lang('Send to'),
$options,
[
'multiple' => 'multiple',
@ -815,7 +815,7 @@ function getUserOwningThisMailing($mailingPseudoId, $owner = 0, $or_die = '')
$result = Database::query($sql);
if (!($res = Database::fetch_array($result))) {
die(get_lang('GeneralError').' (code 901)');
die(get_lang('An error has occured. Please contact your system administrator.').' (code 901)');
}
if ($owner == 0) {
return $res['uploader_id'];
@ -823,7 +823,7 @@ function getUserOwningThisMailing($mailingPseudoId, $owner = 0, $or_die = '')
if ($res['uploader_id'] == $owner) {
return true;
}
die(get_lang('GeneralError').' (code '.$or_die.')');
die(get_lang('An error has occured. Please contact your system administrator.').' (code '.$or_die.')');
}
/**
@ -880,7 +880,7 @@ function store_add_dropbox($file = [], $work = null)
// Validating the form data
// there are no recipients selected
if (!isset($_POST['recipients']) || count($_POST['recipients']) <= 0) {
return get_lang('YouMustSelectAtLeastOneDestinee');
return get_lang('You must select at least one destinee');
} else {
// Check if all the recipients are valid
$thisIsAMailing = false;
@ -900,7 +900,7 @@ function store_add_dropbox($file = [], $work = null)
) {
Display::addFlash(
Display::return_message(
get_lang('InvalideUserDetected'),
get_lang('Invalid user detected.'),
'warning'
)
);
@ -909,7 +909,7 @@ function store_add_dropbox($file = [], $work = null)
} elseif (strpos($rec, 'group_') !== 0 && strpos($rec, 'user_') !== 0) {
Display::addFlash(
Display::return_message(
get_lang('InvalideGroupDetected'),
get_lang('Invalid group detected.'),
'warning'
)
);
@ -923,7 +923,7 @@ function store_add_dropbox($file = [], $work = null)
if ($thisIsAMailing && (count($_POST['recipients']) != 1)) {
Display::addFlash(
Display::return_message(
get_lang('MailingSelectNoOther'),
get_lang('Mailing cannot be combined with other recipients'),
'warning'
)
);
@ -937,7 +937,7 @@ function store_add_dropbox($file = [], $work = null)
if ($thisIsJustUpload && (count($_POST['recipients']) != 1)) {
Display::addFlash(
Display::return_message(
get_lang('MailingJustUploadSelectNoOther'),
get_lang('Just Upload cannot be combined with other recipients'),
'warning'
)
);
@ -947,7 +947,7 @@ function store_add_dropbox($file = [], $work = null)
}
if (empty($file['name'])) {
Display::addFlash(Display::return_message(get_lang('NoFileSpecified'), 'warning'));
Display::addFlash(Display::return_message(get_lang('You didn\'t specify a file to upload.'), 'warning'));
return false;
}
@ -967,14 +967,14 @@ function store_add_dropbox($file = [], $work = null)
// check if the filesize does not exceed the allowed size.
$maxFileSize = api_get_setting('dropbox_max_filesize');
if ($dropbox_filesize <= 0 || $dropbox_filesize > $maxFileSize) {
Display::addFlash(Display::return_message(get_lang('DropboxFileTooBig'), 'warning'));
Display::addFlash(Display::return_message(get_lang('This file\'s volume is too big.'), 'warning'));
return false;
}
// check if the file is actually uploaded
if (!is_uploaded_file($dropbox_filetmpname)) { // check user fraud : no clean error msg.
Display::addFlash(Display::return_message(get_lang('TheFileIsNotUploaded'), 'warning'));
Display::addFlash(Display::return_message(get_lang('The file is not uploaded.'), 'warning'));
return false;
}
@ -996,7 +996,7 @@ function store_add_dropbox($file = [], $work = null)
if (!filter_extension($dropbox_filename)) {
Display::addFlash(
Display::return_message(
get_lang('UplUnableToSaveFileFilteredExtension'),
get_lang('File upload failed: this file extension or file type is prohibited'),
'warning'
)
);
@ -1018,12 +1018,12 @@ function store_add_dropbox($file = [], $work = null)
foreach ($dropbox_person->sentWork as $w) {
if ($w->title == $dropbox_filename) {
if (($w->recipients[0]['id'] > $mailId) xor $thisIsAMailing) {
Display::addFlash(Display::return_message(get_lang('MailingNonMailingError'), 'warning'));
Display::addFlash(Display::return_message(get_lang('Mailing cannot be overwritten by non-mailing and vice-versa'), 'warning'));
return false;
}
if (($w->recipients[0]['id'] == $_user['user_id']) xor $thisIsJustUpload) {
Display::addFlash(Display::return_message(get_lang('MailingJustUploadSelectNoOther'), 'warning'));
Display::addFlash(Display::return_message(get_lang('Just Upload cannot be combined with other recipients'), 'warning'));
return false;
}
@ -1077,15 +1077,15 @@ function store_add_dropbox($file = [], $work = null)
PERSON_NAME_EMAIL_ADDRESS
),
$recipent_temp['email'],
get_lang('NewDropboxFileUploaded'),
get_lang('NewDropboxFileUploadedContent').' <a href="'.api_get_path(WEB_CODE_PATH).'dropbox/index.php?'.api_get_cidreq().'">'.get_lang('SeeFile').'</a>'.
get_lang('A new file has been sent in the dropbox'),
get_lang('A new file has been sent in the dropboxContent').' <a href="'.api_get_path(WEB_CODE_PATH).'dropbox/index.php?'.api_get_cidreq().'">'.get_lang('See file').'</a>'.
"\n\n".
api_get_person_name(
$_user['firstName'],
$_user['lastName'],
null,
PERSON_NAME_EMAIL_ADDRESS
)."\n".get_lang('Email')." : ".$_user['mail'],
)."\n".get_lang('e-mail')." : ".$_user['mail'],
api_get_person_name(
$_user['firstName'],
$_user['lastName'],
@ -1126,7 +1126,7 @@ function store_add_dropbox($file = [], $work = null)
}
Security::clear_token();
Display::addFlash(Display::return_message(get_lang('FileUploadSucces')));
Display::addFlash(Display::return_message(get_lang('The file has successfully been uploaded.')));
return $result;
}
@ -1193,20 +1193,20 @@ function feedback_form($url)
$token = Security::get_token();
$return .= '<div class="form-group">';
$return .= '<input type="hidden" name="sec_token" value="'.$token.'"/>';
$return .= '<label class="col-sm-3 control-label">'.get_lang('AddNewFeedback');
$return .= '<label class="col-sm-3 control-label">'.get_lang('Add feedback');
$return .= '</label>';
$return .= '<div class="col-sm-6">';
$return .= '<textarea name="feedback" class="form-control" rows="4"></textarea>';
$return .= '</div>';
$return .= '<div class="col-sm-3">';
$return .= '<div class="pull-right"><a class="btn btn-default btn-sm" href="'.$url.'"><i class="fa fa-times" aria-hidden="true"></i></a></div>';
$return .= '<button type="submit" class="btn btn-primary btn-sm" name="store_feedback" value="'.get_lang('Ok').'"
onclick="javascript: document.form_dropbox.attributes.action.value = document.location;">'.get_lang('AddComment').'</button>';
$return .= '<button type="submit" class="btn btn-primary btn-sm" name="store_feedback" value="'.get_lang('Validate').'"
onclick="javascript: document.form_dropbox.attributes.action.value = document.location;">'.get_lang('Add/Edit a comment to').'</button>';
$return .= '</div>';
$return .= '</div>';
$return .= '</div>';
} else {
$return .= get_lang('AllUsersHaveDeletedTheFileAndWillNotSeeFeedback');
$return .= get_lang('All users have deleted the file so nobody will see the feedback you are adding.');
}
return $return;
@ -1265,11 +1265,11 @@ function check_if_file_exist($id)
function store_feedback()
{
if (!is_numeric($_GET['id'])) {
return get_lang('FeedbackError');
return get_lang('Feedback error');
}
$course_id = api_get_course_int_id();
if (empty($_POST['feedback'])) {
return get_lang('PleaseTypeText');
return get_lang('Please type some text.');
} else {
$table = Database::get_course_table(TABLE_DROPBOX_FEEDBACK);
$params = [
@ -1287,7 +1287,7 @@ function store_feedback()
Database::query($sql);
}
return get_lang('DropboxFeedbackStored');
return get_lang('The feedback message has been stored');
}
}
@ -1393,7 +1393,7 @@ function generate_html_overview($files, $dont_show_columns = [], $make_link = []
$return .= "\t".'"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
$return .= '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.api_get_language_isocode().'" lang="'.api_get_language_isocode().'">'."\n";
$return .= "<head>\n\t<title>".get_lang('OverviewOfFilesInThisZip')."</title>\n";
$return .= "<head>\n\t<title>".get_lang('Overview of diles in this Zip')."</title>\n";
$return .= "\t".'<meta http-equiv="Content-Type" content="text/html; charset='.api_get_system_encoding().'" />'."\n";
$return .= "</head>\n\n";
$return .= '<body dir="'.api_get_text_direction().'">'."\n\n";

@ -286,7 +286,7 @@ $htmlHeadXtra[] = $javascript;
$htmlHeadXtra[] = "<script>
function confirmation (name)
{
if (confirm(\" ".get_lang("AreYouSureToDeleteJS")." \"+ name + \" ?\"))
if (confirm(\" ".get_lang("Are you sure to delete")." \"+ name + \" ?\"))
{return true;}
else
{return false;}
@ -347,14 +347,14 @@ if ($view == 'received') {
'url' => api_get_path(WEB_CODE_PATH).'dropbox/index.php?'.api_get_cidreq(),
'name' => get_lang('Dropbox', ''),
];
$nameTools = get_lang('ReceivedFiles');
$nameTools = get_lang('Received Files');
if ($action == 'addreceivedcategory') {
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'dropbox/index.php?view=received&'.api_get_cidreq(),
'name' => get_lang('ReceivedFiles'),
'name' => get_lang('Received Files'),
];
$nameTools = get_lang('AddNewCategory');
$nameTools = get_lang('Add a new folder');
}
}
@ -363,25 +363,25 @@ if ($view == 'sent' || empty($view)) {
'url' => api_get_path(WEB_CODE_PATH).'dropbox/index.php?'.api_get_cidreq(),
'name' => get_lang('Dropbox'),
];
$nameTools = get_lang('SentFiles');
$nameTools = get_lang('Sent Files');
if ($action == 'addsentcategory') {
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'dropbox/index.php?view=sent&'.api_get_cidreq(),
'name' => get_lang('SentFiles'),
'name' => get_lang('Sent Files'),
];
$nameTools = get_lang('AddNewCategory');
$nameTools = get_lang('Add a new folder');
}
if ($action == 'add') {
$nameTools = get_lang('UploadNewFile');
$nameTools = get_lang('Share a new file');
}
if ($action == 'update') {
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'dropbox/index.php?view=sent&'.api_get_cidreq(),
'name' => get_lang('SentFiles'),
'name' => get_lang('Sent Files'),
];
$nameTools = get_lang('UpdateFile');
$nameTools = get_lang('Update file');
}
}

@ -111,7 +111,7 @@ if (isset($_POST['StoreCategory'])) {
}
if ($return_information['type'] == 'error') {
echo Display::return_message(
get_lang('FormHasErrorsPleaseComplete').'<br />'.$return_information['message'],
get_lang('The form contains incorrect or incomplete data. Please check your input.').'<br />'.$return_information['message'],
'error'
);
display_addcategory_form($_POST['category_name'], $_POST['edit_id'], $postAction);
@ -157,11 +157,11 @@ if (($action == 'deletereceivedfile' || $action == 'deletesentfile') && isset($_
);
if ($action == 'deletereceivedfile') {
$dropboxfile->deleteReceivedWork($_GET['id']);
$message = get_lang('ReceivedFileDeleted');
$message = get_lang('The received file has been deleted.');
}
if ($action == 'deletesentfile') {
$dropboxfile->deleteSentWork($_GET['id']);
$message = get_lang('SentFileDeleted');
$message = get_lang('The sent file has been deleted.');
}
echo Display::return_message($message, 'confirmation');
}
@ -243,13 +243,13 @@ if ($action != 'add') {
echo '<div class="actions">';
if ($view_dropbox_category_received != 0 && api_is_allowed_to_session_edit(false, true)) {
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&view_received_category=0&view_sent_category='.$viewSentCategory.'&view='.$view.'">'.
Display::return_icon('folder_up.png', get_lang('Up').' '.get_lang('Root'), '', ICON_SIZE_MEDIUM).
Display::return_icon('folder_up.png', get_lang('Up').' '.get_lang('root'), '', ICON_SIZE_MEDIUM).
"</a>";
echo get_lang('Category').': <strong>'.Security::remove_XSS($dropbox_categories[$view_dropbox_category_received]['cat_name']).'</strong> ';
$movelist[0] = 'Root'; // move_received selectbox content
} else {
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&action=addreceivedcategory&view='.$view.'">'.
Display::return_icon('new_folder.png', get_lang('AddNewCategory'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('new_folder.png', get_lang('Add a new folder'), '', ICON_SIZE_MEDIUM).'</a>';
}
echo '</div>';
} else {
@ -257,12 +257,12 @@ if ($action != 'add') {
echo '<div class="actions">';
if ($view_dropbox_category_received != 0 && api_is_allowed_to_session_edit(false, true)) {
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&view_received_category=0&view_sent_category='.$viewSentCategory.'&view='.$view.'">'.
Display::return_icon('folder_up.png', get_lang('Up').' '.get_lang('Root'), '', ICON_SIZE_MEDIUM)."</a>";
Display::return_icon('folder_up.png', get_lang('Up').' '.get_lang('root'), '', ICON_SIZE_MEDIUM)."</a>";
echo get_lang('Category').': <strong>'.Security::remove_XSS($dropbox_categories[$view_dropbox_category_received]['cat_name']).'</strong> ';
$movelist[0] = 'Root'; // move_received selectbox content
} else {
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&action=addreceivedcategory&view='.$view.'">'.
Display::return_icon('new_folder.png', get_lang('AddNewCategory'), '', ICON_SIZE_MEDIUM).
Display::return_icon('new_folder.png', get_lang('Add a new folder'), '', ICON_SIZE_MEDIUM).
'</a>';
}
echo '</div>';
@ -283,17 +283,17 @@ if ($action != 'add') {
echo '<div class="actions">';
if (empty($viewSentCategory)) {
echo "<a href=\"".api_get_self()."?".api_get_cidreq()."&view=".$view."&action=add\">".
Display::return_icon('upload_file.png', get_lang('UploadNewFile'), '', ICON_SIZE_MEDIUM).
Display::return_icon('upload_file.png', get_lang('Share a new file'), '', ICON_SIZE_MEDIUM).
"</a>";
}
if ($view_dropbox_category_sent != 0) {
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&view_received_category='.$viewReceivedCategory.'&view_sent_category=0&view='.$view.'">'.
Display::return_icon('folder_up.png', get_lang('Up').' '.get_lang('Root'), '', ICON_SIZE_MEDIUM).
Display::return_icon('folder_up.png', get_lang('Up').' '.get_lang('root'), '', ICON_SIZE_MEDIUM).
"</a>";
echo get_lang('Category').': <strong>'.Security::remove_XSS($dropbox_categories[$view_dropbox_category_sent]['cat_name']).'</strong> ';
} else {
echo "<a href=\"".api_get_self()."?".api_get_cidreq()."&view=".$view."&action=addsentcategory\">".
Display::return_icon('new_folder.png', get_lang('AddNewCategory'), '', ICON_SIZE_MEDIUM)."</a>\n";
Display::return_icon('new_folder.png', get_lang('Add a new folder'), '', ICON_SIZE_MEDIUM)."</a>\n";
}
echo '</div>';
} else {
@ -301,17 +301,17 @@ if ($action != 'add') {
echo '<div class="actions">';
if (empty($viewSentCategory)) {
echo "<a href=\"".api_get_self()."?".api_get_cidreq()."&view=".$view."&action=add\">".
Display::return_icon('upload_file.png', get_lang('UploadNewFile'), '', ICON_SIZE_MEDIUM).
Display::return_icon('upload_file.png', get_lang('Share a new file'), '', ICON_SIZE_MEDIUM).
"</a>";
}
if ($view_dropbox_category_sent != 0) {
echo get_lang('CurrentlySeeing').': <strong>'.Security::remove_XSS($dropbox_categories[$view_dropbox_category_sent]['cat_name']).'</strong> ';
echo get_lang('You are in folder').': <strong>'.Security::remove_XSS($dropbox_categories[$view_dropbox_category_sent]['cat_name']).'</strong> ';
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&view_received_category='.$viewReceivedCategory.'&view_sent_category=0&view='.$view.'">'.
Display::return_icon('folder_up.png', get_lang('Up').' '.get_lang('Root'), '', ICON_SIZE_MEDIUM).
Display::return_icon('folder_up.png', get_lang('Up').' '.get_lang('root'), '', ICON_SIZE_MEDIUM).
"</a>";
} else {
echo "<a href=\"".api_get_self()."?".api_get_cidreq()."&view=".$view."&action=addsentcategory\">".
Display::return_icon('new_folder.png', get_lang('AddNewCategory'), '', ICON_SIZE_MEDIUM)."</a>\n";
Display::return_icon('new_folder.png', get_lang('Add a new folder'), '', ICON_SIZE_MEDIUM)."</a>\n";
}
echo '</div>';
}
@ -325,14 +325,14 @@ if ($action != 'add') {
echo 'class="active"';
} ?> >
<a href="<?php echo api_get_path(WEB_CODE_PATH).'dropbox/'; ?>index.php?<?php echo api_get_cidreq(); ?>&view=sent" >
<?php echo get_lang('SentFiles'); ?>
<?php echo get_lang('Sent Files'); ?>
</a>
</li>
<li <?php if ($view == 'received') {
echo 'class="active"';
} ?> >
<a href="<?php echo api_get_path(WEB_CODE_PATH).'dropbox/'; ?>index.php?<?php echo api_get_cidreq(); ?>&view=received" >
<?php echo get_lang('ReceivedFiles'); ?></a>
<?php echo get_lang('Received Files'); ?></a>
</li>
</ul>
<?php
@ -361,15 +361,15 @@ if ($action != 'add') {
$column_header = [];
$column_header[] = ['', false, ''];
$column_header[] = [get_lang('Type'), true, 'style="width:40px"', 'style="text-align:center"'];
$column_header[] = [get_lang('ReceivedTitle'), true, ''];
$column_header[] = [get_lang('Title'), true, ''];
$column_header[] = [get_lang('Size'), true, ''];
$column_header[] = [get_lang('Authors'), true, ''];
$column_header[] = [get_lang('LastResent'), true];
$column_header[] = [get_lang('Latest sent on'), true];
if (api_get_session_id() == 0) {
$column_header[] = [get_lang('Modify'), false, '', 'nowrap style="text-align: right"'];
$column_header[] = [get_lang('Edit'), false, '', 'nowrap style="text-align: right"'];
} elseif (api_is_allowed_to_session_edit(false, true)) {
$column_header[] = [get_lang('Modify'), false, '', 'nowrap style="text-align: right"'];
$column_header[] = [get_lang('Edit'), false, '', 'nowrap style="text-align: right"'];
}
$column_header[] = ['RealDate', true];
@ -391,7 +391,7 @@ if ($action != 'add') {
$column_show[] = 0;
// Here we change the way how the columns are going to be sort
// in this case the the column of LastResent ( 4th element in $column_header) we will be order like the column RealDate
// in this case the the column of Latest sent on ( 4th element in $column_header) we will be order like the column RealDate
// because in the column RealDate we have the days in a correct format "2008-03-12 10:35:48"
$column_order[3] = 8;
$column_order[5] = 7;
@ -559,15 +559,15 @@ if ($action != 'add') {
$column_header = [];
$column_header[] = ['', false, ''];
$column_header[] = [get_lang('Type'), true, 'style="width:40px"', 'style="text-align:center"'];
$column_header[] = [get_lang('SentTitle'), true, ''];
$column_header[] = [get_lang('Sent Files'), true, ''];
$column_header[] = [get_lang('Size'), true, ''];
$column_header[] = [get_lang('SentTo'), true, ''];
$column_header[] = [get_lang('LastResent'), true, ''];
$column_header[] = [get_lang('Visible to'), true, ''];
$column_header[] = [get_lang('Latest sent on'), true, ''];
if (api_get_session_id() == 0) {
$column_header[] = [get_lang('Modify'), false, '', 'nowrap style="text-align: right"'];
$column_header[] = [get_lang('Edit'), false, '', 'nowrap style="text-align: right"'];
} elseif (api_is_allowed_to_session_edit(false, true)) {
$column_header[] = [get_lang('Modify'), false, '', 'nowrap style="text-align: right"'];
$column_header[] = [get_lang('Edit'), false, '', 'nowrap style="text-align: right"'];
}
$column_header[] = ['RealDate', true];
@ -591,7 +591,7 @@ if ($action != 'add') {
$column_show[] = 0;
// Here we change the way how the colums are going to be sort
// in this case the the column of LastResent ( 4th element in $column_header) we will be order like the column RealDate
// in this case the the column of Latest sent on ( 4th element in $column_header) we will be order like the column RealDate
// because in the column RealDate we have the days in a correct format "2008-03-12 10:35:48"
$column_order[3] = 8;
$column_order[5] = 7;

@ -17,7 +17,7 @@ if (!api_is_allowed_to_session_edit(false, true)) {
api_not_allowed();
}
echo Display::page_subheader(get_lang('RecoverDropboxFiles'));
echo Display::page_subheader(get_lang('Recover dropbox files'));
if (isset($_GET['recover_id']) && !empty($_GET['recover_id'])) {
$recover_id = intval($_GET['recover_id']);
@ -53,8 +53,8 @@ if (Database::num_rows($result)) {
}
}
$headers = [
get_lang('FileName'),
get_lang('UploadedDate'),
get_lang('Filename'),
get_lang('Date of upload'),
get_lang('Action'),
];
echo Display::table($headers, $rows);

@ -17,12 +17,12 @@
*/
function aiken_display_form()
{
$name_tools = get_lang('ImportAikenQuiz');
$name_tools = get_lang('Import Aiken quiz');
$form = '<div class="actions">';
$form .= '<a href="exercise.php?show=test&'.api_get_cidreq().'">'.
Display::return_icon(
'back.png',
get_lang('BackToExercisesList'),
get_lang('Back to Tests tool'),
'',
ICON_SIZE_MEDIUM
).'</a>';
@ -35,11 +35,11 @@ function aiken_display_form()
['enctype' => 'multipart/form-data']
);
$form_validator->addElement('header', $name_tools);
$form_validator->addElement('text', 'total_weight', get_lang('TotalWeight'));
$form_validator->addElement('text', 'total_weight', get_lang('Total weight'));
$form_validator->addElement('file', 'userFile', get_lang('File'));
$form_validator->addButtonUpload(get_lang('Upload'), 'submit');
$form .= $form_validator->returnForm();
$form .= '<blockquote>'.get_lang('ImportAikenQuizExplanation').'<br /><pre>'.get_lang('ImportAikenQuizExplanationExample').'</pre></blockquote>';
$form .= '<blockquote>'.get_lang('Import Aiken quizExplanation').'<br /><pre>'.get_lang('Import Aiken quizExplanationExample').'</pre></blockquote>';
echo $form;
}
@ -398,7 +398,7 @@ function aiken_import_file($array_file)
if ($process && $unzip == 1) {
$imported = aiken_import_exercise($array_file['name']);
if (is_numeric($imported) && !empty($imported)) {
Display::addFlash(Display::return_message(get_lang('Uploaded')));
Display::addFlash(Display::return_message(get_lang('Uploaded.')));
return $imported;
} else {

@ -31,7 +31,7 @@ class ScormAnswerFree extends Answer
$layout = $template->get_template('document/record_audio.tpl');
$html .= $template->fetch($layout);*/
$html = '<tr><td colspan="2">'.get_lang('ThisItemIsNotExportable').'</td></tr>';
$html = '<tr><td colspan="2">'.get_lang('This learning object or activity is not SCORM compliant. That\'s why it is not exportable.').'</td></tr>';
return [$js, $html];
}
@ -111,7 +111,7 @@ class ScormAnswerHotspot extends Answer
margin-left: -8px;
border: 1px solid #4271b5;
height: 448px;
width: 200px;"><b>'.get_lang('HotspotZones').'</b><ol>';
width: 200px;"><b>'.get_lang('Image zones').'</b><ol>';
for ($answerId = 1; $answerId <= $nbrAnswers; $answerId++) {
$answerList .= '<li>'.$this->selectAnswer($answerId).'</li>';
}
@ -140,7 +140,7 @@ HTML;
$html .= '</table></td></tr>';
// currently the free answers cannot be displayed, so ignore the textarea
$html = '<tr><td colspan="2">'.get_lang('ThisItemIsNotExportable').'</td></tr>';
$html = '<tr><td colspan="2">'.get_lang('This learning object or activity is not SCORM compliant. That\'s why it is not exportable.').'</td></tr>';
return [$js, $html];
}

@ -75,13 +75,13 @@ $tutors = GroupManager::get_subscribed_tutors($current_group['id']);
$tutor_info = '';
if (count($tutors) == 0) {
$tutor_info = get_lang('GroupNoneMasc');
$tutor_info = get_lang('(none)');
} else {
isset($origin) ? $my_origin = $origin : $my_origin = '';
$tutor_info .= '<ul class="thumbnails">';
foreach ($tutors as $index => $tutor) {
$tab_user_info = api_get_user_info($tutor['user_id']);
$username = api_htmlentities(sprintf(get_lang('LoginX'), $tab_user_info['username']), ENT_QUOTES);
$username = api_htmlentities(sprintf(get_lang('Login: %s'), $tab_user_info['username']), ENT_QUOTES);
$image_path = UserManager::get_user_picture_path_by_id($tutor['user_id'], 'web', false, true);
$image_repository = $image_path['dir'];
$existing_image = $image_path['file'];
@ -95,7 +95,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;
}
@ -126,13 +126,13 @@ $my_gidreq = isset($_GET['gidReq']) ? Security::remove_XSS($_GET['gidReq']) : ''
$parameters = ['cidReq' => $my_cidreq, 'origin' => $my_origin, 'gidReq' => $my_gidreq];
$table->set_additional_parameters($parameters);
$table->set_header(1, get_lang('OfficialCode'), false, 'align="center"');
$table->set_header(1, get_lang('Code'), false, 'align="center"');
if (api_is_western_name_order()) {
$table->set_header(2, get_lang('LastName'));
$table->set_header(3, get_lang('FirstName'));
$table->set_header(2, get_lang('Last name'));
$table->set_header(3, get_lang('First name'));
} else {
$table->set_header(2, get_lang('LastName'));
$table->set_header(3, get_lang('FirstName'));
$table->set_header(2, get_lang('Last name'));
$table->set_header(3, get_lang('First name'));
}
//the order of these calls is important
$table->set_column_filter(2, 'user_name_filter');
@ -142,12 +142,12 @@ $table->set_header(4, get_lang('Examen'), false);
$table->set_column_filter(2, 'user_name_filter');
$table->set_column_filter(3, 'user_name_filter');
$table->set_header(4, get_lang('Examen'), false);
$table->set_header(5, get_lang('LatestLogin'), false, 'align="center"');
$table->set_header(5, get_lang('Latest login'), false, 'align="center"');
$table->set_header(6, get_lang('time_tot'), false, 'align="center"');
$table->set_header(7, get_lang('jours_complet'), false, 'align="center"');
$table->set_header(8, get_lang('diff_horaire'), false, 'align="center"');
$table->set_header(9, get_lang('save_diff'), false, 'align="center"');
$table->set_header(10, get_lang('GroupCalendar'), false, 'align="center"');
$table->set_header(10, get_lang('Agenda'), false, 'align="center"');
$table->set_header(11, get_lang('Details'), false);
// Database table definition
@ -368,7 +368,7 @@ while ($resulta = Database::fetch_array($result)) {
$diff = abs($diff);
$last_connection_date = Tracking:: get_last_connection_date($user_in_groupe, true);
if ($last_connection_date == '') {
$last_connection_date = get_lang('NoConnexion');
$last_connection_date = get_lang('No connection');
}
// on présente tous les résultats
$row = [];
@ -414,7 +414,7 @@ echo $precision_time;
function user_name_filter($name, $url_params, $row)
{
$tab_user_info = api_get_user_info($row[0]);
$username = api_htmlentities(sprintf(get_lang('LoginX'), $tab_user_info['username']), ENT_QUOTES);
$username = api_htmlentities(sprintf(get_lang('Login: %s'), $tab_user_info['username']), ENT_QUOTES);
return '<a href="../user/userInfo.php?uInfo='.$row[0].'&amp;'.$url_params.'" title="'.$username.'">'.$name.'</a>';
}

@ -64,7 +64,7 @@ if (isset($_GET['from']) && $_GET['from'] == 'myspace') {
$this_section = SECTION_COURSES;
}
$nameTools = get_lang('StudentDetails');
$nameTools = get_lang('Learner details');
$em = Database::getManager();
if (isset($_GET['details'])) {
@ -83,79 +83,79 @@ if (isset($_GET['details'])) {
if ($origin === 'tracking_course') {
$interbreadcrumb[] = [
"url" => "../tracking/courseLog.php?cidReq=".$course_code.'&id_session='.api_get_session_id(),
"name" => get_lang('Tracking'),
"name" => get_lang('Reporting'),
];
} else {
if ($origin === 'resume_session') {
$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'),
];
} else {
$interbreadcrumb[] = [
"url" => api_is_student_boss() ? "#" : "index.php",
"name" => get_lang('MySpace'),
"name" => get_lang('Reporting'),
];
if (!empty($coachId)) {
$interbreadcrumb[] = [
"url" => "student.php?id_coach=$coachId",
"name" => get_lang('CoachStudents'),
"name" => get_lang('Learners of trainer'),
];
$interbreadcrumb[] = [
"url" => "myStudents.php?student=$studentId&id_coach=$coachId",
"name" => get_lang("StudentDetails"),
"name" => get_lang("Learner details"),
];
} else {
$interbreadcrumb[] = [
"url" => "student.php",
"name" => get_lang("MyStudents"),
"name" => get_lang("My learners"),
];
$interbreadcrumb[] = [
"url" => "myStudents.php?student=".$studentId,
"name" => get_lang("StudentDetails"),
"name" => get_lang("Learner details"),
];
}
}
}
}
$nameTools = get_lang("DetailsStudentInCourse");
$nameTools = get_lang("Learner details in course");
} else {
if ($origin == 'resume_session') {
$interbreadcrumb[] = [
'url' => "../session/session_list.php",
"name" => get_lang('SessionList'),
"name" => get_lang('Session list'),
];
if (!empty($sessionId)) {
$interbreadcrumb[] = [
'url' => "../session/resume_session.php?id_session=$sessionId",
"name" => get_lang('SessionOverview'),
"name" => get_lang('Session overview'),
];
}
} else {
$interbreadcrumb[] = [
"url" => api_is_student_boss() ? "#" : "index.php",
"name" => get_lang('MySpace'),
"name" => get_lang('Reporting'),
];
if (!empty($coachId)) {
if ($sessionId) {
$interbreadcrumb[] = [
"url" => "student.php?id_coach=$coachId&id_session=$sessionId",
"name" => get_lang("CoachStudents"),
"name" => get_lang("Learners of trainer"),
];
} else {
$interbreadcrumb[] = [
"url" => "student.php?id_coach=$coachId",
"name" => get_lang("CoachStudents"),
"name" => get_lang("Learners of trainer"),
];
}
} else {
$interbreadcrumb[] = [
"url" => "student.php",
"name" => get_lang("MyStudents"),
"name" => get_lang("My learners"),
];
}
}
@ -199,9 +199,9 @@ $action = isset($_GET['action']) ? $_GET['action'] : '';
switch ($action) {
case 'send_legal':
$subject = get_lang('SendLegalSubject');
$subject = get_lang('Legal conditions');
$content = sprintf(
get_lang('SendLegalDescriptionToUrlX'),
get_lang('Please accept our legal conditions here: %s'),
api_get_path(WEB_PATH)
);
MessageManager::send_message_simple($studentId, $subject, $content);
@ -232,7 +232,7 @@ switch ($action) {
// @todo delete the stats.track_e_exercises records.
// First implement this http://support.chamilo.org/issues/1334
$message = Display::return_message(
get_lang('LPWasReset'),
get_lang('Learning path was reset for the learner'),
'success'
);
}
@ -343,7 +343,7 @@ if (isset($message)) {
$token = Security::get_token();
if (!empty($studentId)) {
// Actions bar
// Detail bar
echo '<div class="actions">';
echo '<a href="javascript: window.history.go(-1);">'.
Display::return_icon('back.png', get_lang('Back'), '', ICON_SIZE_MEDIUM).'</a>';
@ -352,32 +352,32 @@ if (!empty($studentId)) {
Display::return_icon('printer.png', get_lang('Print'), '', ICON_SIZE_MEDIUM).'</a>';
echo '<a href="'.api_get_self().'?'.Security:: remove_XSS($_SERVER['QUERY_STRING']).'&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 '<a href="'.api_get_self().'?'.Security:: remove_XSS($_SERVER['QUERY_STRING']).'&export=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> ';
if (!empty($user_info['email'])) {
$send_mail = '<a href="mailto:'.$user_info['email'].'">'.
Display:: return_icon('mail_send.png', get_lang('SendMail'), '', ICON_SIZE_MEDIUM).'</a>';
Display:: return_icon('mail_send.png', get_lang('Send mail'), '', ICON_SIZE_MEDIUM).'</a>';
} else {
$send_mail = Display:: return_icon('mail_send_na.png', get_lang('SendMail'), '', ICON_SIZE_MEDIUM);
$send_mail = Display:: return_icon('mail_send_na.png', get_lang('Send mail'), '', ICON_SIZE_MEDIUM);
}
echo $send_mail;
if (!empty($studentId) && !empty($course_code)) {
// Only show link to connection details if course and student were defined in the URL
echo '<a href="access_details.php?student='.$studentId.'&course='.$course_code.'&origin='.$origin.'&cidReq='.$course_code.'&id_session='.$sessionId.'">'.
Display:: return_icon('statistics.png', get_lang('AccessDetails'), '', ICON_SIZE_MEDIUM).'</a>';
Display:: return_icon('statistics.png', get_lang('Access details'), '', ICON_SIZE_MEDIUM).'</a>';
}
if (api_can_login_as($studentId)) {
echo '<a href="'.api_get_path(
WEB_CODE_PATH
).'admin/user_list.php?action=login_as&user_id='.$studentId.'&sec_token='.$token.'">'.
Display::return_icon('login_as.png', get_lang('LoginAs'), null, ICON_SIZE_MEDIUM).'</a>&nbsp;&nbsp;';
Display::return_icon('login_as.png', get_lang('Login as'), null, ICON_SIZE_MEDIUM).'</a>&nbsp;&nbsp;';
}
echo Display::url(
Display::return_icon('skill-badges.png', get_lang('AssignSkill'), null, ICON_SIZE_MEDIUM),
Display::return_icon('skill-badges.png', get_lang('Assign skill'), null, ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'badge/assign.php?'.http_build_query(['user' => $studentId])
);
echo '</div>';
@ -423,12 +423,12 @@ if (!empty($studentId)) {
// get information about connections on the platform by student
$first_connection_date = Tracking:: get_first_connection_date($user_info['user_id']);
if ($first_connection_date == '') {
$first_connection_date = get_lang('NoConnexion');
$first_connection_date = get_lang('No connection');
}
$last_connection_date = Tracking:: get_last_connection_date($user_info['user_id'], true);
if ($last_connection_date == '') {
$last_connection_date = get_lang('NoConnexion');
$last_connection_date = get_lang('No connection');
}
// cvs information
@ -437,7 +437,7 @@ if (!empty($studentId)) {
];
$csv_content[] = [
get_lang('Name'),
get_lang('Email'),
get_lang('e-mail'),
get_lang('Tel'),
];
$csv_content[] = [
@ -450,12 +450,12 @@ if (!empty($studentId)) {
// csv tracking
$csv_content[] = [
get_lang('Tracking'),
get_lang('Reporting'),
];
$csv_content[] = [
get_lang('FirstLoginInPlatform'),
get_lang('LatestLoginInPlatform'),
get_lang('TimeSpentInTheCourse'),
get_lang('First login in platform'),
get_lang('Latest login in platform'),
get_lang('Time spent in the course'),
get_lang('Progress'),
get_lang('Score'),
];
@ -495,11 +495,11 @@ if (!empty($studentId)) {
<td><?php echo get_lang('Name').' : '.$user_info['complete_name']; ?></td>
</tr>
<tr>
<td><?php echo get_lang('Email').' : ';
<td><?php echo get_lang('e-mail').' : ';
if (!empty($user_info['email'])) {
echo '<a href="mailto:'.$user_info['email'].'">'.$user_info['email'].'</a>';
} else {
echo get_lang('NoEmail');
echo get_lang('Noe-mail');
} ?>
</td>
</tr>
@ -508,21 +508,21 @@ if (!empty($studentId)) {
if (!empty($user_info['phone'])) {
echo $user_info['phone'];
} else {
echo get_lang('NoTel');
echo get_lang('No tel');
} ?>
</td>
</tr>
<tr>
<td><?php echo get_lang('OfficialCode').' : ';
<td><?php echo get_lang('Code').' : ';
if (!empty($user_info['official_code'])) {
echo $user_info['official_code'];
} else {
echo get_lang('NoOfficialCode');
echo get_lang('NoCode');
} ?>
</td>
</tr>
<tr>
<td><?php echo get_lang('OnLine').' : '.$online; ?> </td>
<td><?php echo get_lang('Online').' : '.$online; ?> </td>
</tr>
<?php
@ -547,22 +547,22 @@ if (!empty($studentId)) {
<table class="table table-striped table-hover">
<thead>
<tr>
<th colspan="2" class="text-center"><?php echo get_lang('Tracking'); ?></th>
<th colspan="2" class="text-center"><?php echo get_lang('Reporting'); ?></th>
</tr>
</thead>
<tbody>
<tr>
<td align="right"><?php echo get_lang('FirstLoginInPlatform'); ?></td>
<td align="right"><?php echo get_lang('First login in platform'); ?></td>
<td align="left"><?php echo $first_connection_date; ?></td>
</tr>
<tr>
<td align="right"><?php echo get_lang('LatestLoginInPlatform'); ?></td>
<td align="right"><?php echo get_lang('Latest login in platform'); ?></td>
<td align="left"><?php echo $last_connection_date; ?></td>
</tr>
<?php if (isset($_GET['details']) && $_GET['details'] == 'true') {
?>
<tr>
<td align="right"><?php echo get_lang('TimeSpentInTheCourse'); ?></td>
<td align="right"><?php echo get_lang('Time spent in the course'); ?></td>
<td align="left"><?php echo $time_spent_on_the_course; ?></td>
</tr>
<tr>
@ -571,7 +571,7 @@ if (!empty($studentId)) {
echo get_lang('Progress').' ';
Display:: display_icon(
'info3.gif',
get_lang('ScormAndLPProgressTotalAverage'),
get_lang('Average progress in courses'),
['align' => 'absmiddle', 'hspace' => '3px']
); ?>
</td>
@ -583,7 +583,7 @@ if (!empty($studentId)) {
echo get_lang('Score').' ';
Display:: display_icon(
'info3.gif',
get_lang('ScormAndLPTestTotalAverage'),
get_lang('Average of tests in Learning Paths'),
['align' => 'absmiddle', 'hspace' => '3px']
); ?>
</td>
@ -611,20 +611,20 @@ if (!empty($studentId)) {
list($legalId, $legalLanguageId, $legalTime) = explode(':', $value['value']);
$icon = Display::return_icon('accept.png').' '.api_get_local_time($legalTime);
$icon .= ' '.Display::url(
get_lang('DeleteLegal'),
get_lang('Delete legal agreement'),
api_get_self().'?action=delete_legal&student='.$studentId.'&course='.$course_code,
['class' => 'btn btn-danger btn-xs']
);
} else {
$icon .= ' '.Display::url(
get_lang('SendLegal'),
get_lang('Send legal agreement'),
api_get_self().'?action=send_legal&student='.$studentId.'&course='.$course_code,
['class' => 'btn btn-primary btn-xs']
);
}
echo '<tr>
<td align="right">';
echo get_lang('LegalAccepted').' </td> <td align="left">'.$icon;
echo get_lang('Legal accepted').' </td> <td align="left">'.$icon;
echo '</td></tr>';
}
} ?>
@ -662,7 +662,7 @@ if (!empty($studentId)) {
get_lang('Time'),
get_lang('Progress'),
get_lang('Score'),
get_lang('AttendancesFaults'),
get_lang('Not attended'),
get_lang('Evaluations'),
];
@ -706,7 +706,7 @@ if (!empty($studentId)) {
<th>'.get_lang('Time').'</th>
<th>'.get_lang('Progress').'</th>
<th>'.get_lang('Score').'</th>
<th>'.get_lang('AttendancesFaults').'</th>
<th>'.get_lang('Not attended').'</th>
<th>'.get_lang('Evaluations').'</th>
<th>'.get_lang('Details').'</th>
</tr>';
@ -734,7 +734,7 @@ if (!empty($studentId)) {
if (!empty($results_faults_avg['total'])) {
if (api_is_drh()) {
$attendances_faults_avg =
'<a title="'.get_lang('GoAttendance').'" href="'.api_get_path(
'<a title="'.get_lang('Go to attendances').'" href="'.api_get_path(
WEB_CODE_PATH
).'attendance/index.php?cidReq='.$courseCodeItem.'&id_session='.$sId.'&student_id='.$studentId.'">'.
$results_faults_avg['faults'].'/'.$results_faults_avg['total'].' ('.$results_faults_avg['porcent'].'%)</a>';
@ -811,7 +811,7 @@ if (!empty($studentId)) {
}
}
} else {
echo "<tr><td colspan='5'>".get_lang('NoCourse')."</td></tr>";
echo "<tr><td colspan='5'>".get_lang('This course could not be found')."</td></tr>";
}
echo '</tbody>';
echo '</table>';
@ -826,12 +826,12 @@ if (!empty($studentId)) {
// csv export headers
$csv_content[] = [];
$csv_content[] = [
get_lang('Learnpath'),
get_lang('Courses'),
get_lang('Time'),
get_lang('AverageScore'),
get_lang('LatestAttemptAverageScore'),
get_lang('Average score'),
get_lang('Latest attemptAverage score'),
get_lang('Progress'),
get_lang('LastConnexion'),
get_lang('Latest login'),
];
$query = $em
@ -868,30 +868,30 @@ if (!empty($studentId)) {
<table class="table table-striped table-hover">
<thead>
<tr>
<th><?php echo get_lang('LearningPath'); ?></th>
<th><?php echo get_lang('Learning paths'); ?></th>
<th>
<?php
echo get_lang('Time').' ';
Display:: display_icon(
'info3.gif',
get_lang('TotalTimeByCourse'),
get_lang('Total time in course'),
['align' => 'absmiddle', 'hspace' => '3px']
); ?>
</th>
<th>
<?php
echo get_lang('AverageScore').' ';
echo get_lang('Average score').' ';
Display:: display_icon(
'info3.gif',
get_lang('AverageIsCalculatedBasedInAllAttempts'),
get_lang('Average is calculated based on all test attempts'),
['align' => 'absmiddle', 'hspace' => '3px']
); ?>
</th>
<th><?php
echo get_lang('LatestAttemptAverageScore').' ';
echo get_lang('Latest attemptAverage score').' ';
Display::display_icon(
'info3.gif',
get_lang('AverageIsCalculatedBasedInTheLatestAttempts'),
get_lang('Average is calculated based on the latest attempts'),
['align' => 'absmiddle', 'hspace' => '3px']
); ?>
</th>
@ -899,22 +899,22 @@ if (!empty($studentId)) {
echo get_lang('Progress').' ';
Display:: display_icon(
'info3.gif',
get_lang('LPProgressScore'),
get_lang('% of learning objects visited'),
['align' => 'absmiddle', 'hspace' => '3px']
); ?>
</th>
<th><?php
echo get_lang('LastConnexion').' ';
echo get_lang('Latest login').' ';
Display:: display_icon(
'info3.gif',
get_lang('LastTimeTheCourseWasUsed'),
get_lang('Last time learner entered the course'),
['align' => 'absmiddle', 'hspace' => '3px']
); ?>
</th>
<?php
echo '<th>'.get_lang('Details').'</th>';
if (api_is_allowed_to_edit()) {
echo '<th>'.get_lang('ResetLP').'</th>';
echo '<th>'.get_lang('Reset Learning path').'</th>';
} ?>
</tr>
</thead>
@ -1087,25 +1087,25 @@ if (!empty($studentId)) {
<table class="table table-striped table-hover">
<thead>
<tr>
<th><?php echo get_lang('Exercises'); ?></th>
<th><?php echo get_lang('LearningPath'); ?></th>
<th><?php echo get_lang('AvgCourseScore').' '.Display:: return_icon(
<th><?php echo get_lang('Tests'); ?></th>
<th><?php echo get_lang('Learning paths'); ?></th>
<th><?php echo get_lang('Average score in learning paths').' '.Display:: return_icon(
'info3.gif',
get_lang('AverageScore'),
get_lang('Average score'),
['align' => 'absmiddle', 'hspace' => '3px']
); ?></th>
<th><?php echo get_lang('Attempts'); ?></th>
<th><?php echo get_lang('LatestAttempt'); ?></th>
<th><?php echo get_lang('AllAttempts'); ?></th>
<th><?php echo get_lang('Latest attempt'); ?></th>
<th><?php echo get_lang('All attempts'); ?></th>
</tr>
</thead>
<tbody>
<?php
$csv_content[] = [];
$csv_content[] = [
get_lang('Exercises'),
get_lang('LearningPath'),
get_lang('AvgCourseScore'),
get_lang('Tests'),
get_lang('Learning paths'),
get_lang('Average score in learning paths'),
get_lang('Attempts'),
];
@ -1161,7 +1161,7 @@ if (!empty($studentId)) {
} else {
$lp_name = '-';
}
$lp_name = !empty($lp_name) ? $lp_name : get_lang('NoLearnpath');
$lp_name = !empty($lp_name) ? $lp_name : get_lang('This course could not be founds');
if ($i % 2) {
$css_class = 'row_odd';
@ -1221,7 +1221,7 @@ if (!empty($studentId)) {
echo Display::url(
Display::return_icon(
'test_results.png',
get_lang('AllAttempts'),
get_lang('All attempts'),
[],
ICON_SIZE_SMALL
),
@ -1241,7 +1241,7 @@ if (!empty($studentId)) {
$i++;
}
} else {
echo '<tr><td colspan="6">'.get_lang('NoExercise').'</td></tr>';
echo '<tr><td colspan="6">'.get_lang('No tests').'</td></tr>';
} ?>
</tbody>
</table>
@ -1259,7 +1259,7 @@ if (!empty($studentId)) {
false,
$courseInfo['real_id']
);
$survey_done = Display::return_icon("accept_na.png", get_lang('NoAnswer'), [], ICON_SIZE_SMALL);
$survey_done = Display::return_icon("accept_na.png", get_lang('There is no answer for the moment'), [], ICON_SIZE_SMALL);
if (in_array($studentId, $user_list)) {
$survey_done = Display::return_icon("accept.png", get_lang('Answered'), [], ICON_SIZE_SMALL);
}
@ -1299,7 +1299,7 @@ if (!empty($studentId)) {
<table class="table table-striped table-hover">
<thead>
<tr>
<th colspan="2"><?php echo get_lang('OtherTools'); ?></th>
<th colspan="2"><?php echo get_lang('OTI (Online Training Interaction) settings report'); ?></th>
</tr>
</thead>
<tbody>
@ -1316,11 +1316,11 @@ if (!empty($studentId)) {
);
$uploaded_documents = Tracking::count_student_uploaded_documents($studentId, $course_code, $sessionId);
$csv_content[] = [
get_lang('OtherTools'),
get_lang('OTI (Online Training Interaction) settings report'),
];
$csv_content[] = [
get_lang('Student_publication'),
get_lang('Assignments'),
$nb_assignments,
];
$csv_content[] = [
@ -1328,43 +1328,43 @@ if (!empty($studentId)) {
$messages,
];
$csv_content[] = [
get_lang('LinksDetails'),
get_lang('Links accessed'),
$links,
];
$csv_content[] = [
get_lang('DocumentsDetails'),
get_lang('Documents downloaded'),
$documents,
];
$csv_content[] = [
get_lang('UploadedDocuments'),
get_lang('Uploaded documents'),
$uploaded_documents,
];
$csv_content[] = [
get_lang('ChatLastConnection'),
get_lang('Latest chat connection'),
$chat_last_connection,
]; ?>
<tr><!-- assignments -->
<td width="40%"><?php echo get_lang('Student_publication'); ?></td>
<td width="40%"><?php echo get_lang('Assignments'); ?></td>
<td><?php echo $nb_assignments; ?></td>
</tr>
<tr><!-- messages -->
<td><?php echo get_lang('Forum').' - '.get_lang('NumberOfPostsForThisUser'); ?></td>
<td><?php echo get_lang('Forum').' - '.get_lang('Number of posts for this user'); ?></td>
<td><?php echo $messages; ?></td>
</tr>
<tr><!-- links -->
<td><?php echo get_lang('LinksDetails'); ?></td>
<td><?php echo get_lang('Links accessed'); ?></td>
<td><?php echo $links; ?></td>
</tr>
<tr><!-- downloaded documents -->
<td><?php echo get_lang('DocumentsDetails'); ?></td>
<td><?php echo get_lang('Documents downloaded'); ?></td>
<td><?php echo $documents; ?></td>
</tr>
<tr><!-- uploaded documents -->
<td><?php echo get_lang('UploadedDocuments'); ?></td>
<td><?php echo get_lang('Uploaded documents'); ?></td>
<td><?php echo $uploaded_documents; ?></td>
</tr>
<tr><!-- Chats -->
<td><?php echo get_lang('ChatLastConnection'); ?></td>
<td><?php echo get_lang('Latest chat connection'); ?></td>
<td><?php echo $chat_last_connection; ?></td>
</tr>
</tbody>
@ -1642,7 +1642,7 @@ if ($end_date < '2010-01-01') {
<th><?php echo get_lang('level'); ?></th>
<th><?php echo get_lang('lang_date'); ?></th>
<th><?php echo get_lang('consignes_interventions'); ?></th>
<th><?php echo get_lang('Actions'); ?></th>
<th><?php echo get_lang('Detail'); ?></th>
</tr>
<tr>
<td>
@ -1676,7 +1676,7 @@ if ($end_date < '2010-01-01') {
<?php echo get_lang('interventions_commentaires'); ?>
</th>
<th>
<?php echo get_lang('Actions'); ?>
<?php echo get_lang('Detail'); ?>
</th>
</tr>
@ -1753,7 +1753,7 @@ if (empty($_GET['details'])) {
get_lang('Time', ''),
get_lang('Progress', ''),
get_lang('Score', ''),
get_lang('AttendancesFaults', ''),
get_lang('Not attended', ''),
get_lang('Evaluations'),
];
@ -1878,7 +1878,7 @@ if (empty($_GET['details'])) {
);
if (!empty($results_faults_avg['total'])) {
if (api_is_drh()) {
$attendances_faults_avg = '<a title="'.get_lang('GoAttendance').'" href="'.api_get_path(
$attendances_faults_avg = '<a title="'.get_lang('Go to attendances').'" href="'.api_get_path(
WEB_CODE_PATH
).'attendance/index.php?cidReq='.$course_code.'&id_session='.$session_id.'&student_id='.$studentId.'">'.$results_faults_avg['faults'].'/'.$results_faults_avg['total'].' ('.$results_faults_avg['porcent'].'%)</a>';
} else {
@ -1959,7 +1959,7 @@ if (empty($_GET['details'])) {
}
}
} else {
echo "<tr><td colspan='5'>".get_lang('NoCourse')."</td></tr>";
echo "<tr><td colspan='5'>".get_lang('This course could not be found')."</td></tr>";
}
echo '</table>';
}
@ -1971,12 +1971,12 @@ if (empty($_GET['details'])) {
// csv export headers
$csv_content[] = [];
$csv_content[] = [
get_lang('Learnpath'),
get_lang('Courses'),
get_lang('Time'),
get_lang('AverageScore'),
get_lang('LatestAttemptAverageScore'),
get_lang('Average score'),
get_lang('Latest attemptAverage score'),
get_lang('Progress'),
get_lang('LastConnexion'),
get_lang('Latest login'),
];
$sql8 = "SELECT * FROM course WHERE code = '$course_code'";
@ -1999,42 +1999,42 @@ if (empty($_GET['details'])) {
<!-- LPs-->
<table class="data_table">
<tr>
<th><?php echo get_lang('Learnpaths'); ?></th>
<th><?php echo get_lang('Coursess'); ?></th>
<th><?php echo get_lang('FirstConnexion'); ?></th>
<th><?php echo get_lang('Time').' ';
Display:: display_icon(
'info3.gif',
get_lang('TotalTimeByCourse'),
get_lang('Total time in course'),
['align' => 'absmiddle', 'hspace' => '3px']
); ?></th>
<th><?php echo get_lang('AverageScore').' ';
<th><?php echo get_lang('Average score').' ';
Display:: display_icon(
'info3.gif',
get_lang('AverageIsCalculatedBasedInAllAttempts'),
get_lang('Average is calculated based on all test attempts'),
['align' => 'absmiddle', 'hspace' => '3px']
); ?></th>
<th><?php echo get_lang('LatestAttemptAverageScore').' ';
<th><?php echo get_lang('Latest attemptAverage score').' ';
Display:: display_icon(
'info3.gif',
get_lang('AverageIsCalculatedBasedInTheLatestAttempts'),
get_lang('Average is calculated based on the latest attempts'),
['align' => 'absmiddle', 'hspace' => '3px']
); ?></th>
<th><?php echo get_lang('Progress').' ';
Display:: display_icon(
'info3.gif',
get_lang('LPProgressScore'),
get_lang('% of learning objects visited'),
['align' => 'absmiddle', 'hspace' => '3px']
); ?></th>
<th><?php echo get_lang('LastConnexion').' ';
<th><?php echo get_lang('Latest login').' ';
Display:: display_icon(
'info3.gif',
get_lang('LastTimeTheCourseWasUsed'),
get_lang('Last time learner entered the course'),
['align' => 'absmiddle', 'hspace' => '3px']
); ?></th>
<?php
echo '<th>'.get_lang('Details').'</th>';
if (api_is_allowed_to_edit()) {
echo '<th>'.get_lang('ResetLP').'</th>';
echo '<th>'.get_lang('Reset Learning path').'</th>';
} ?>
</tr>
<?php
@ -2203,30 +2203,30 @@ if (empty($_GET['details'])) {
$data_learnpath[$i][] = $progress.'%';
}
} else {
//echo '<tr><td colspan="6">'.get_lang('NoLearnpath').'</td></tr>';
//echo '<tr><td colspan="6">'.get_lang('This course could not be founds').'</td></tr>';
} ?>
</table>
<!-- line about exercises -->
<table class="data_table">
<tr>
<th><?php echo get_lang('Exercises'); ?></th>
<th><?php echo get_lang('LearningPath'); ?></th>
<th><?php echo get_lang('AvgCourseScore').' '.Display:: return_icon(
<th><?php echo get_lang('Tests'); ?></th>
<th><?php echo get_lang('Learning paths'); ?></th>
<th><?php echo get_lang('Average score in learning paths').' '.Display:: return_icon(
'info3.gif',
get_lang('AverageScore'),
get_lang('Average score'),
['align' => 'absmiddle', 'hspace' => '3px']
); ?></th>
<th><?php echo get_lang('Attempts'); ?></th>
<th><?php echo get_lang('LatestAttempt'); ?></th>
<th><?php echo get_lang('AllAttempts'); ?></th>
<th><?php echo get_lang('Latest attempt'); ?></th>
<th><?php echo get_lang('All attempts'); ?></th>
</tr>
<?php
$csv_content[] = [];
$csv_content[] = [
get_lang('Exercises'),
get_lang('LearningPath'),
get_lang('AvgCourseScore'),
get_lang('Tests'),
get_lang('Learning paths'),
get_lang('Average score in learning paths'),
get_lang('Attempts'),
];
@ -2274,7 +2274,7 @@ if (empty($_GET['details'])) {
} else {
$lp_name = '-';
}
$lp_name = !empty($lp_name) ? $lp_name : get_lang('NoLearnpath');
$lp_name = !empty($lp_name) ? $lp_name : get_lang('This course could not be founds');
if ($i % 2) {
$css_class = 'row_odd';
@ -2326,7 +2326,7 @@ if (empty($_GET['details'])) {
echo '<td>';
$all_attempt_url = "../exercice/exercise_report.php?exerciseId=$exercise_id&cidReq=$course_code&filter_by_user=$studentId&id_session=$session_id";
echo Display::url(
Display::return_icon('test_results.png', get_lang('AllAttempts'), [], ICON_SIZE_SMALL),
Display::return_icon('test_results.png', get_lang('All attempts'), [], ICON_SIZE_SMALL),
$all_attempt_url
);
@ -2344,7 +2344,7 @@ if (empty($_GET['details'])) {
$i++;
}
} else {
echo '<tr><td colspan="6">'.get_lang('NoExercise').'</td></tr>';
echo '<tr><td colspan="6">'.get_lang('No tests').'</td></tr>';
}
echo '</table>';
@ -2358,7 +2358,7 @@ if (empty($_GET['details'])) {
false,
$info_course['real_id']
);
$survey_done = Display::return_icon("accept_na.png", get_lang('NoAnswer'), [], ICON_SIZE_SMALL);
$survey_done = Display::return_icon("accept_na.png", get_lang('There is no answer for the moment'), [], ICON_SIZE_SMALL);
if (in_array($studentId, $user_list)) {
$survey_done = Display::return_icon("accept.png", get_lang('Answered'), [], ICON_SIZE_SMALL);
}
@ -2405,11 +2405,11 @@ if (empty($_GET['details'])) {
$uploaded_documents = Tracking::count_student_uploaded_documents($studentId, $course_code, $session_id);
$csv_content[] = [
get_lang('OtherTools'),
get_lang('OTI (Online Training Interaction) settings report'),
];
$csv_content[] = [
get_lang('StudentPublications'),
get_lang('Assignments'),
$nb_assignments,
];
$csv_content[] = [
@ -2417,46 +2417,46 @@ if (empty($_GET['details'])) {
$messages,
];
$csv_content[] = [
get_lang('LinksDetails'),
get_lang('Links accessed'),
$links,
];
$csv_content[] = [
get_lang('DocumentsDetails'),
get_lang('Documents downloaded'),
$documents,
];
$csv_content[] = [
get_lang('UploadedDocuments'),
get_lang('Uploaded documents'),
$uploaded_documents,
];
$csv_content[] = [
get_lang('ChatLastConnection'),
get_lang('Latest chat connection'),
$chat_last_connection,
]; ?>
<tr>
<th colspan="2"><?php echo get_lang('OtherTools'); ?></th>
<th colspan="2"><?php echo get_lang('OTI (Online Training Interaction) settings report'); ?></th>
</tr>
<tr><!-- assignments -->
<td width="40%"><?php echo get_lang('StudentPublications'); ?></td>
<td width="40%"><?php echo get_lang('Assignments'); ?></td>
<td><?php echo $nb_assignments; ?></td>
</tr>
<tr><!-- messages -->
<td><?php echo get_lang('Forum').' - '.get_lang('NumberOfPostsForThisUser'); ?></td>
<td><?php echo get_lang('Forum').' - '.get_lang('Number of posts for this user'); ?></td>
<td><?php echo $messages; ?></td>
</tr>
<tr><!-- links -->
<td><?php echo get_lang('LinksDetails'); ?></td>
<td><?php echo get_lang('Links accessed'); ?></td>
<td><?php echo $links; ?></td>
</tr>
<tr><!-- downloaded documents -->
<td><?php echo get_lang('DocumentsDetails'); ?></td>
<td><?php echo get_lang('Documents downloaded'); ?></td>
<td><?php echo $documents; ?></td>
</tr>
<tr><!-- uploaded documents -->
<td><?php echo get_lang('UploadedDocuments'); ?></td>
<td><?php echo get_lang('Uploaded documents'); ?></td>
<td><?php echo $uploaded_documents; ?></td>
</tr>
<tr><!-- Chats -->
<td><?php echo get_lang('ChatLastConnection'); ?></td>
<td><?php echo get_lang('Latest chat connection'); ?></td>
<td><?php echo $chat_last_connection; ?></td>
</tr>
</table>
@ -2487,7 +2487,7 @@ if ($export_csv) {
<?php echo get_lang('Module'); ?>
</th>
<th style="width: 120px">
<?php echo get_lang('Results'); ?>
<?php echo get_lang('Results and feedback and feedback'); ?>
</th>
<th style="width: 100px">
<?php echo get_lang('result_rep_1'); ?>
@ -2499,7 +2499,7 @@ if ($export_csv) {
<?php echo get_lang('Comment'); ?>
</th>
<th style="width: 60px">
<?php echo get_lang('Actions'); ?>
<?php echo get_lang('Detail'); ?>
</th>
</tr>
<tr>
@ -2542,7 +2542,7 @@ if ($export_csv) {
<tr>
<th><?php echo get_lang('Module'); ?> </th>
<th>
<?php echo get_lang('Results'); ?>
<?php echo get_lang('Results and feedback and feedback'); ?>
</th>
<th>
<?php echo get_lang('result_rep_1'); ?>
@ -2554,7 +2554,7 @@ if ($export_csv) {
<?php echo get_lang('Comment'); ?>
</th>
<th>
<?php echo get_lang('Actions'); ?>
<?php echo get_lang('Detail'); ?>
</th>
</tr>
<?php
@ -2623,10 +2623,10 @@ echo '<a target="_blank"
<?php echo get_lang('Module'); ?>
</th>
<th style="width: 17%">
<?php echo get_lang('FirstLogin'); ?>
<?php echo get_lang('First connection'); ?>
</th>
<th style="width: 16%">
<?php echo get_lang('ToDo'); ?>
<?php echo get_lang('To do'); ?>
</th>
<th style="width: 16%">
<?php echo get_lang('realise'); ?>

@ -10,7 +10,7 @@ if (empty($allow)) {
api_block_anonymous_users();
$nameTools = get_lang('MyProgress');
$nameTools = get_lang('Progress');
$this_section = 'session_my_progress_ind';
$_user = api_get_user_info();

@ -16,7 +16,7 @@ if (isset($_GET['from']) && $_GET['from'] == 'myspace') {
$this_section = SECTION_COURSES;
}
//$nameTools = get_lang('StudentDetails');
//$nameTools = get_lang('Learner details');
$cidReset = true;
$get_course_code = Security:: remove_XSS($_GET['course']);
if (isset($_GET['details'])) {
@ -40,70 +40,70 @@ if (isset($_GET['details'])) {
}
$interbreadcrumb[] = [
"url" => "../tracking/courseLog.php?cidReq=".$get_course_code.'&studentlist=true&id_session='.(empty($_SESSION['id_session']) ? '' : $_SESSION['id_session']),
"name" => get_lang("Tracking"),
"name" => get_lang("Reporting"),
];
} else {
if (!empty($_GET['origin']) && $_GET['origin'] == 'resume_session') {
$interbreadcrumb[] = [
'url' => '../admin/index.php',
"name" => get_lang('PlatformAdmin'),
"name" => get_lang('Administration'),
];
$interbreadcrumb[] = [
'url' => "../admin/session_list.php",
"name" => get_lang('SessionList'),
"name" => get_lang('Session list'),
];
$interbreadcrumb[] = [
'url' => "../admin/resume_session.php?id_session=".Security:: remove_XSS($_GET['id_session']),
"name" => get_lang('SessionOverview'),
"name" => get_lang('Session overview'),
];
} else {
$interbreadcrumb[] = [
"url" => "index.php",
"name" => get_lang('MySpace'),
"name" => get_lang('Reporting'),
];
if (isset($_GET['id_coach']) && intval($_GET['id_coach']) != 0) {
$interbreadcrumb[] = [
"url" => "student.php?id_coach=".Security:: remove_XSS($_GET['id_coach']),
"name" => get_lang("CoachStudents"),
"name" => get_lang("Learners of trainer"),
];
$interbreadcrumb[] = [
"url" => "myStudents.php?student=".Security:: remove_XSS(
$_GET['student']
).'&id_coach='.Security:: remove_XSS($_GET['id_coach']),
"name" => get_lang("StudentDetails"),
"name" => get_lang("Learner details"),
];
} else {
$interbreadcrumb[] = [
"url" => "student.php",
"name" => get_lang("MyStudents"),
"name" => get_lang("My learners"),
];
$interbreadcrumb[] = [
"url" => "myStudents.php?student=".Security:: remove_XSS($_GET['student']),
"name" => get_lang("StudentDetails"),
"name" => get_lang("Learner details"),
];
}
}
}
}
$nameTools = get_lang("DetailsStudentInCourse");
$nameTools = get_lang("Learner details in course");
} else {
if (!empty($_GET['origin']) && $_GET['origin'] == 'resume_session') {
$interbreadcrumb[] = [
'url' => '../admin/index.php',
"name" => get_lang('PlatformAdmin'),
"name" => get_lang('Administration'),
];
$interbreadcrumb[] = [
'url' => "../admin/session_list.php",
"name" => get_lang('SessionList'),
"name" => get_lang('Session list'),
];
$interbreadcrumb[] = [
'url' => "../admin/resume_session.php?id_session=".Security:: remove_XSS($_GET['id_session']),
"name" => get_lang('SessionOverview'),
"name" => get_lang('Session overview'),
];
} else {
$interbreadcrumb[] = [
"url" => "index.php",
"name" => get_lang('MySpace'),
"name" => get_lang('Reporting'),
];
if (isset($_GET['id_coach']) && intval($_GET['id_coach']) != 0) {
if (isset($_GET['id_session']) && intval($_GET['id_session']) != 0) {
@ -111,18 +111,18 @@ if (isset($_GET['details'])) {
"url" => "student.php?id_coach=".Security:: remove_XSS(
$_GET['id_coach']
)."&id_session=".$_GET['id_session'],
"name" => get_lang("CoachStudents"),
"name" => get_lang("Learners of trainer"),
];
} else {
$interbreadcrumb[] = [
"url" => "student.php?id_coach=".Security:: remove_XSS($_GET['id_coach']),
"name" => get_lang("CoachStudents"),
"name" => get_lang("Learners of trainer"),
];
}
} else {
$interbreadcrumb[] = [
"url" => "student.php",
"name" => get_lang("MyStudents"),
"name" => get_lang("My learners"),
];
}
}

@ -140,7 +140,7 @@ if (api_is_allowed_to_edit(null, true)) {
echo '<div class="actions">';
if ($origin == 'users') {
echo '<a href="user.php?'.api_get_cidreq().'&origin='.$origin.'">'.
Display::return_icon('back.png', get_lang('BackUser'), '', ICON_SIZE_MEDIUM).'</a>';
Display::return_icon('back.png', get_lang('Back to users list'), '', ICON_SIZE_MEDIUM).'</a>';
} else {
echo '<a href="javascript:history.back(1)">'.
Display::return_icon('back.png', get_lang('Back'), '', ICON_SIZE_MEDIUM).'</a>';
@ -150,8 +150,8 @@ if (api_is_allowed_to_edit(null, true)) {
if (api_get_setting('allow_user_course_subscription_by_course_admin') == 'true') {
echo '<a href="userInfo.php?'.api_get_cidreq(
).'&origin='.$origin.'&editMainUserInfo='.$userIdViewed.'">'.
Display::return_icon('edit.png', get_lang('EditUser'), '', ICON_SIZE_MEDIUM).get_lang(
'EditUser'
Display::return_icon('edit.png', get_lang('Edit this user'), '', ICON_SIZE_MEDIUM).get_lang(
'Edit this user'
).'</a>';
}
} else {
@ -159,13 +159,13 @@ if (api_is_allowed_to_edit(null, true)) {
echo '<a href="userInfo.php?'.api_get_cidreq().'&origin='.$origin.'&uInfo='.$userIdViewed.'">'.
Display::return_icon(
'user.png',
get_lang('ViewUser'),
get_lang('View this user'),
'',
ICON_SIZE_MEDIUM
).get_lang('ViewUser').'</a>';
).get_lang('View this user').'</a>';
}
}
echo '<a href="../mySpace/myStudents.php?'.api_get_cidreq().'&origin=user_course&student='.$userIdViewed.'&details=true&course='.$_course['id'].'">'.Display::return_icon('statistics.png', get_lang('UserStatistics'), '', ICON_SIZE_MEDIUM).get_lang('UserStatistics').'</a>';
echo '<a href="../mySpace/myStudents.php?'.api_get_cidreq().'&origin=user_course&student='.$userIdViewed.'&details=true&course='.$_course['id'].'">'.Display::return_icon('statistics.png', get_lang('Reporting for this user'), '', ICON_SIZE_MEDIUM).get_lang('Reporting for this user').'</a>';
echo '</div>';
} else {
if ($tool_info['visibility'] == 1) {
@ -174,7 +174,7 @@ if (api_is_allowed_to_edit(null, true)) {
echo '<a href="user.php?'.api_get_cidreq().'&origin='.$origin.'">'.
Display::return_icon(
'back.png',
get_lang('BackUser'),
get_lang('Back to users list'),
'',
ICON_SIZE_MEDIUM
).'</a>';
@ -206,12 +206,12 @@ if ($displayMode == "viewDefEdit") {
$edit_heading_form->add_textfield('title', get_lang('Title'));
$edit_heading_form->addElement('textarea', 'comment', get_lang('Comment'), ['cols' => 60, 'rows' => 4]);
$possible_line_nrs[1] = '1 '.get_lang('Line');
$possible_line_nrs[3] = '3 '.get_lang('Lines');
$possible_line_nrs[5] = '5 '.get_lang('Lines');
$possible_line_nrs[10] = '10 '.get_lang('Lines');
$possible_line_nrs[15] = '15 '.get_lang('Lines');
$edit_heading_form->addElement('select', 'nbline', get_lang('LineNumber'), $possible_line_nrs);
$edit_heading_form->addElement('submit', 'submitDef', get_lang('Ok'));
$possible_line_nrs[3] = '3 '.get_lang('lines');
$possible_line_nrs[5] = '5 '.get_lang('lines');
$possible_line_nrs[10] = '10 '.get_lang('lines');
$possible_line_nrs[15] = '15 '.get_lang('lines');
$edit_heading_form->addElement('select', 'nbline', get_lang('Line Number'), $possible_line_nrs);
$edit_heading_form->addElement('submit', 'submitDef', get_lang('Validate'));
$edit_heading_form->setDefaults($catToEdit);
$edit_heading_form->display();
} elseif ($displayMode == "viewDefList") {
@ -227,13 +227,13 @@ if ($displayMode == "viewDefEdit") {
}
echo "</font>\n", "</blockquote>\n";
// displays commands
echo "<a href=\"".api_get_self()."?".api_get_cidreq()."&removeDef=", $thisCat['catId'], "\">", "<img src=\"../img/delete.gif\" border=\"0\" alt=\"".get_lang('Remove')."\" onclick=\"javascript:if(!confirm('".addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, $charset))."')) return false;\">", "</a>", "<a href=\"".api_get_self()."?".api_get_cidreq()."&editDef=", $thisCat['catId'], "\">", "<img src=\"../img/edit.gif\" border=\"0\" alt=\"".get_lang('Edit')."\" />", "</a>", "<a href=\"".api_get_self()."?".api_get_cidreq()."&moveUpDef=", $thisCat['catId'], "\">", "<img src=\"../img/up.gif\" border=\"0\" alt=\"".get_lang('MoveUp')."\">", "</a>", "<a href=\"".api_get_self()."?".api_get_cidreq()."&moveDownDef=", $thisCat['catId'], "\">", "<img src=\"../img/down.gif\" border=\"0\" alt=\"".get_lang('MoveDown')."\">", "</a>\n";
echo "<a href=\"".api_get_self()."?".api_get_cidreq()."&removeDef=", $thisCat['catId'], "\">", "<img src=\"../img/delete.gif\" border=\"0\" alt=\"".get_lang('Remove')."\" onclick=\"javascript:if(!confirm('".addslashes(api_htmlentities(get_lang('Please confirm your choice'), ENT_QUOTES, $charset))."')) return false;\">", "</a>", "<a href=\"".api_get_self()."?".api_get_cidreq()."&editDef=", $thisCat['catId'], "\">", "<img src=\"../img/edit.gif\" border=\"0\" alt=\"".get_lang('Edit')."\" />", "</a>", "<a href=\"".api_get_self()."?".api_get_cidreq()."&moveUpDef=", $thisCat['catId'], "\">", "<img src=\"../img/up.gif\" border=\"0\" alt=\"".get_lang('Move up')."\">", "</a>", "<a href=\"".api_get_self()."?".api_get_cidreq()."&moveDownDef=", $thisCat['catId'], "\">", "<img src=\"../img/down.gif\" border=\"0\" alt=\"".get_lang('Move down')."\">", "</a>\n";
} // end for each
} // end if ($catList)
echo "<center>\n",
"<form method=\"post\" action=\"".api_get_self()."\">",
"<input type=\"submit\" name=\"addDef\" class=\"plus\" value=\"".get_lang('AddNewHeading')."\" />",
"<input type=\"submit\" name=\"addDef\" class=\"plus\" value=\"".get_lang('Add new heading')."\" />",
"</form>\n",
"<center>\n";
} elseif ($displayMode == 'viewContentEdit') {
@ -254,7 +254,7 @@ if ($displayMode == "viewDefEdit") {
['cols' => 60, 'rows' => $catToEdit['nbline']]
);
}
$content_heading_form->addElement('submit', 'submitContent', get_lang('Ok'));
$content_heading_form->addElement('submit', 'submitContent', get_lang('Validate'));
$defaults = $catToEdit;
$defaults['cntId'] = $catToEdit['contentId'];
$defaults['uInfo'] = $userIdViewed;
@ -306,32 +306,32 @@ if ($displayMode == "viewDefEdit") {
echo'<p></p> ';
if (!($is_courseAdmin && $_user['user_id'] == $userIdViewed)) {
} else {
echo "<td>", get_lang('CourseManager'), "</td>\n";
echo "<td>", get_lang('Teacher'), "</td>\n";
}
echo "<td><button class=\"save\" type=\"submit\" name=\"submit\">".get_lang('SaveChanges')."</button></td>\n", "</tr>", "</table>", "</form>\n";
echo "<td><button class=\"save\" type=\"submit\" name=\"submit\">".get_lang('Save changes')."</button></td>\n", "</tr>", "</table>", "</form>\n";
if (api_get_setting('show_email_addresses') == 'true') {
echo "<p>".Display:: encrypted_mailto_link($mainUserInfo['email'], $mainUserInfo['email'])."</p>";
}
if (api_get_setting('extended_profile') == 'true') {
if (!empty($mainUserInfo['competences'])) {
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('MyCompetences').'</strong></div><div>'.$mainUserInfo['competences'].'</div>';
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('My competences').'</strong></div><div>'.$mainUserInfo['competences'].'</div>';
}
if (!empty($mainUserInfo['diplomas'])) {
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('MyDiplomas').'</strong></div><div>'.$mainUserInfo['diplomas'].'</div>';
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('My diplomas').'</strong></div><div>'.$mainUserInfo['diplomas'].'</div>';
}
if (!empty($mainUserInfo['teach'])) {
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('MyTeach').'</strong></div><div>'.$mainUserInfo['teach'].'</div>';
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('What I am able to teach').'</strong></div><div>'.$mainUserInfo['teach'].'</div>';
}
if (!empty($mainUserInfo['openarea'])) {
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('MyPersonalOpenArea').'</strong></div><div>'.$mainUserInfo['openarea'].'</div>';
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('My personal open area').'</strong></div><div>'.$mainUserInfo['openarea'].'</div>';
}
if (!empty($mainUserInfo['competences'])) {
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('MyProductions').'</strong></div><div>'.UserManager::build_production_list($mainUserInfo['user_id']).'</div>';
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('My productions').'</strong></div><div>'.UserManager::build_production_list($mainUserInfo['user_id']).'</div>';
}
}
} else {
echo Display::return_message(get_lang('ThisStudentIsSubscribeThroughASession'));
echo Display::return_message(get_lang('This learner is subscribed in this training through a training session. You cannot edit his information'));
}
} elseif ($displayMode == "viewContentList") {
// default display
@ -359,7 +359,7 @@ if ($displayMode == "viewDefEdit") {
// is the user online?
$online = '';
if (user_is_online($userIdViewed)) {
$online = Display::return_icon('online.gif', get_lang('OnLine'), ['style' => 'with="8"; height="8"']);
$online = Display::return_icon('online.gif', get_lang('Online'), ['style' => 'with="8"; height="8"']);
}
// DISPLAY TABLE HEADING
@ -372,7 +372,7 @@ if ($displayMode == "viewDefEdit") {
"<tr align=\"center\" bgcolor=\"#E6E6E6\">\n",
"<td align=\"left\">".get_lang('Name')."</td>\n",
"<td width=\"20%\" align=\"left\">".get_lang('Description')."</td>\n",
"<td width=\"100px\" align=\"left\">", get_lang('OfficialCode'), "</td>\n";
"<td width=\"100px\" align=\"left\">", get_lang('Code'), "</td>\n";
echo "</tr>\n",
"<tr align=\"center\">\n",
@ -398,31 +398,31 @@ if ($displayMode == "viewDefEdit") {
if (api_get_setting('extended_profile') == 'true') {
if (!empty($mainUserInfo['competences'])) {
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('MyCompetences').'</strong></div><div>'.$mainUserInfo['competences'].'</div>';
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('My competences').'</strong></div><div>'.$mainUserInfo['competences'].'</div>';
}
if (!empty($mainUserInfo['diplomas'])) {
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('MyDiplomas').'</strong></div><div>'.$mainUserInfo['diplomas'].'</div>';
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('My diplomas').'</strong></div><div>'.$mainUserInfo['diplomas'].'</div>';
}
if (!empty($mainUserInfo['teach'])) {
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('MyTeach').'</strong></div><div>'.$mainUserInfo['teach'].'</div>';
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('What I am able to teach').'</strong></div><div>'.$mainUserInfo['teach'].'</div>';
}
if (!empty($mainUserInfo['openarea'])) {
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('MyPersonalOpenArea').'</strong></div><div>'.$mainUserInfo['openarea'].'</div>';
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('My personal open area').'</strong></div><div>'.$mainUserInfo['openarea'].'</div>';
}
if (!empty($mainUserInfo['competences'])) {
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('MyProductions').'</strong></div><div>'.UserManager::build_production_list($mainUserInfo['user_id']).'</div>';
echo '<div style="margin-top:10px;" class="actions-message"><strong>'.get_lang('My productions').'</strong></div><div>'.UserManager::build_production_list($mainUserInfo['user_id']).'</div>';
}
}
} else {
Display::return_message(get_lang('ThisStudentIsSubscribeThroughASession'), 'normal');
Display::return_message(get_lang('This learner is subscribed in this training through a training session. You cannot edit his information'), 'normal');
}
if (api_get_setting('allow_user_headings') == 'true' && $allowedToEditDef) {
// only course administrators see this line
echo "<div align=right>",
"<form method=\"post\" action=\"".api_get_self()."\">",
get_lang('CourseAdministratorOnly')," : ",
"<input type=\"submit\" class=\"save\" name=\"viewDefList\" value=\"".get_lang('DefineHeadings')."\" />",
get_lang('Teachers only')," : ",
"<input type=\"submit\" class=\"save\" name=\"viewDefList\" value=\"".get_lang('Define Headings')."\" />",
"</form>",
"<hr noshade size=\"1\" style=\"color:#99CCFF\">",
"</div>\n";

@ -37,7 +37,7 @@ $languages = $em
->getRepository('ChamiloCoreBundle:Language')
->findAllPlatformSubLanguages();
$languagesOptions = [0 => get_lang('None')];
$languagesOptions = [0 => get_lang('none')];
foreach ($languages as $language) {
$languagesOptions[$language->getId()] = $language->getOriginalName();
@ -46,12 +46,12 @@ foreach ($languages as $language) {
$translateUrl = api_get_path(WEB_CODE_PATH).'admin/sub_language_ajax.inc.php';
$form = new FormValidator('new_lang_variable', 'POST', $translateUrl);
$form->addHeader(get_lang('AddWordForTheSubLanguage'));
$form->addText('variable_language', get_lang('LanguageVariable'), false);
$form->addText('original_name', get_lang('OriginalName'), false);
$form->addHeader(get_lang('Add terms to the sub-language'));
$form->addText('variable_language', get_lang('Language variable'), false);
$form->addText('original_name', get_lang('Original name'), false);
$form->addSelect(
'sub_language',
[get_lang('SubLanguage'), get_lang('OnlyActiveSubLanguagesAreListed')],
[get_lang('Sub-language'), get_lang('OnlyActiveSub-languagesAreListed')],
$languagesOptions
);
@ -59,7 +59,7 @@ if ($languageId) {
$languageInfo = api_get_language_info($languageId);
$form->addText(
'new_language',
[get_lang('Translation'), get_lang('IfThisTranslationExistsThisWillReplaceTheTerm')]
[get_lang('Translation'), get_lang('If this term has already been translated, this operation will replace its translation for this sub-language.')]
);
$form->addHidden('file_id', 0);
$form->addHidden('id', $languageInfo['parent_id']);
@ -84,24 +84,24 @@ switch ($extraField->getExtraFieldType()) {
case ExtraField::USER_FIELD_TYPE:
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'admin/extra_fields.php?type=user',
'name' => get_lang('UserFields'),
'name' => get_lang('Profile attributes'),
];
break;
case ExtraField::COURSE_FIELD_TYPE:
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'admin/extra_fields.php?type=course',
'name' => get_lang('CourseFields'),
'name' => get_lang('Course fields'),
];
break;
case ExtraField::SESSION_FIELD_TYPE:
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'admin/extra_fields.php?type=session',
'name' => get_lang('SessionFields'),
'name' => get_lang('Session fields'),
];
break;
}
$view = new Template(get_lang('AddWordForTheSubLanguage'));
$view = new Template(get_lang('Add terms to the sub-language'));
$view->assign('form', $form->returnForm());
$template = $view->get_template('extrafield/translate.tpl');
$content = $view->fetch($template);

@ -14,7 +14,7 @@ $cidReset = true;
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_TRACKING;
$nameTools = get_lang('MyProgress');
$nameTools = get_lang('Progress');
api_block_anonymous_users();

@ -20,7 +20,7 @@ $charset = api_get_system_encoding();
$path_image = api_get_path(WEB_COURSE_PATH).api_get_course_path();
$path_image_search = '../..'.api_get_path(REL_COURSE_PATH).api_get_course_path();
$glossaryId = isset($_POST['glossary_id']) ? (int) $_POST['glossary_id'] : 0;
$description = get_lang('NoResults');
$description = get_lang('No results found');
if (!empty($glossaryId)) {
$description = GlossaryManager::get_glossary_term_by_glossary_id($glossaryId);
@ -54,7 +54,7 @@ if (!empty($glossaryId)) {
);
if (is_null($description) || strlen(trim($description)) == 0) {
$description = get_lang('NoResults');
$description = get_lang('No results found');
} else {
$description = str_replace('class="glossary"', '', $description);
}

@ -86,29 +86,29 @@ switch ($action) {
api_get_self().'?action=addglossary&'.api_get_cidreq()
);
// Setting the form elements
$form->addElement('header', get_lang('TermAddNew'));
$form->addElement('header', get_lang('Add new glossary term'));
if (api_get_configuration_value('save_titles_as_html')) {
$form->addHtmlEditor(
'name',
get_lang('TermName'),
get_lang('Term'),
false,
false,
['ToolbarSet' => 'TitleAsHtml']
);
} else {
$form->addElement('text', 'name', get_lang('TermName'), ['id' => 'glossary_title']);
$form->addElement('text', 'name', get_lang('Term'), ['id' => 'glossary_title']);
}
$form->addElement(
'html_editor',
'description',
get_lang('TermDefinition'),
get_lang('Term definition'),
null,
['ToolbarSet' => 'Glossary', 'Height' => '300']
);
$form->addButtonCreate(get_lang('TermAddButton'), 'SubmitGlossary');
$form->addButtonCreate(get_lang('Save term'), 'SubmitGlossary');
// setting the rules
$form->addRule('name', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('name', get_lang('Required field'), 'required');
// The validation or display
if ($form->validate()) {
$check = Security::check_token('post');
@ -149,24 +149,24 @@ switch ($action) {
api_get_self().'?action=edit_glossary&glossary_id='.$glossaryId.'&'.api_get_cidreq()
);
// Setting the form elements
$form->addElement('header', get_lang('TermEdit'));
$form->addElement('header', get_lang('Edit term'));
$form->addElement('hidden', 'glossary_id');
if (api_get_configuration_value('save_titles_as_html')) {
$form->addHtmlEditor(
'name',
get_lang('TermName'),
get_lang('Term'),
false,
false,
['ToolbarSet' => 'TitleAsHtml']
);
} else {
$form->addElement('text', 'name', get_lang('TermName'), ['id' => 'glossary_title']);
$form->addElement('text', 'name', get_lang('Term'), ['id' => 'glossary_title']);
}
$form->addElement(
'html_editor',
'description',
get_lang('TermDefinition'),
get_lang('Term definition'),
null,
['ToolbarSet' => 'Glossary', 'Height' => '300']
);
@ -187,14 +187,14 @@ switch ($action) {
$glossary_data['update_date'] = '';
}
$form->addLabel(get_lang('CreationDate'), $glossary_data['insert_date']);
$form->addLabel(get_lang('UpdateDate'), $glossary_data['update_date']);
$form->addLabel(get_lang('Creation date'), $glossary_data['insert_date']);
$form->addLabel(get_lang('Updated'), $glossary_data['update_date']);
$form->addButtonUpdate(get_lang('TermUpdateButton'), 'SubmitGlossary');
$form->addButtonUpdate(get_lang('Update term'), 'SubmitGlossary');
$form->setDefaults($glossary_data);
// setting the rules
$form->addRule('name', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('name', get_lang('Required field'), 'required');
// The validation or display
if ($form->validate()) {
@ -244,13 +244,13 @@ switch ($action) {
if (!api_is_allowed_to_edit(null, true)) {
api_not_allowed(true);
}
$tool_name = get_lang('ImportGlossary');
$tool_name = get_lang('Import glossary');
$form = new FormValidator(
'glossary',
'post',
api_get_self().'?action=import&'.api_get_cidreq()
);
$form->addHeader(get_lang('ImportGlossary'));
$form->addHeader(get_lang('Import glossary'));
$form->addElement('file', 'file', get_lang('File'));
$group = [];
$group[] = $form->createElement(
@ -267,14 +267,14 @@ switch ($action) {
'XLS',
'xls'
);
$form->addGroup($group, '', get_lang('FileType'), null);
$form->addElement('checkbox', 'replace', null, get_lang('DeleteAllGlossaryTerms'));
$form->addElement('checkbox', 'update', null, get_lang('UpdateExistingGlossaryTerms'));
$form->addGroup($group, '', get_lang('File type'), null);
$form->addElement('checkbox', 'replace', null, get_lang('Delete all terms before import.'));
$form->addElement('checkbox', 'update', null, get_lang('Update existing terms.'));
$form->addButtonImport(get_lang('Import'), 'SubmitImport');
$form->setDefaults(['file_type' => 'csv']);
$content = $form->returnForm();
$content .= get_lang('CSVMustLookLike').' ('.get_lang('MandatoryFields').')';
$content .= get_lang('The CSV file must look like this').' ('.get_lang('Fields in <strong>bold</strong> are mandatory.').')';
$content .= '<pre>
<strong>term</strong>;<strong>definition</strong>;
"Hello";"Hola";
@ -290,7 +290,7 @@ switch ($action) {
foreach (GlossaryManager::get_glossary_terms() as $term) {
if (!GlossaryManager::delete_glossary($term['id'], false)) {
Display::addFlash(
Display::return_message(get_lang('CannotDeleteGlossary').':'.$term['id'], 'error')
Display::return_message(get_lang('Cannot delete glossary').':'.$term['id'], 'error')
);
} else {
$termsDeleted[] = $term['name'];
@ -334,7 +334,7 @@ switch ($action) {
if (empty($termsToAdd)) {
Display::addFlash(
Display::return_message(get_lang('NothingToAdd'), 'warning')
Display::return_message(get_lang('Nothing to add'), 'warning')
);
header('Location: '.$currentUrl);
exit;
@ -380,26 +380,26 @@ switch ($action) {
if (count($termsDeleted) > 0) {
Display::addFlash(
Display::return_message(get_lang('TermDeleted').': '.implode(', ', $termsDeleted))
Display::return_message(get_lang('Term removed').': '.implode(', ', $termsDeleted))
);
}
if (count($updatedList) > 0) {
Display::addFlash(
Display::return_message(get_lang('TermsUpdated').': '.implode(', ', $updatedList))
Display::return_message(get_lang('Terms updated').': '.implode(', ', $updatedList))
);
}
if (count($addedList) > 0) {
Display::addFlash(
Display::return_message(get_lang('TermsAdded').': '.implode(', ', $addedList))
Display::return_message(get_lang('Terms added').': '.implode(', ', $addedList))
);
}
if (count($badList) > 0) {
Display::addFlash(
Display::return_message(
get_lang('GlossaryTermAlreadyExists').': '.implode(', ', $badList),
get_lang('Term already exists').': '.implode(', ', $badList),
'error'
)
);
@ -408,7 +408,7 @@ switch ($action) {
if (count($doubles) > 0) {
Display::addFlash(
Display::return_message(
get_lang('TermsDuplicatedInFile').': '.implode(', ', $doubles),
get_lang('Terms duplicated in file').': '.implode(', ', $doubles),
'warning'
)
);
@ -460,7 +460,7 @@ Display::display_introduction_section(TOOL_GLOSSARY);
echo $content;
$extra = '<div id="dialog-confirm" title="'.get_lang('ConfirmYourChoice').'">';
$extra = '<div id="dialog-confirm" title="'.get_lang('Please confirm your choice').'">';
$form = new FormValidator(
'report',
'post',
@ -472,7 +472,7 @@ $form->addElement(
'radio',
'export_format',
null,
get_lang('ExportAsCSV'),
get_lang('CSV export'),
'csv',
['id' => 'export_format_csv_label']
);
@ -480,7 +480,7 @@ $form->addElement(
'radio',
'export_format',
null,
get_lang('ExportAsXLS'),
get_lang('Excel export'),
'xls',
['id' => 'export_format_xls_label']
);
@ -488,7 +488,7 @@ $form->addElement(
'radio',
'export_format',
null,
get_lang('ExportToPDF'),
get_lang('Export to PDF'),
'pdf',
['id' => 'export_format_pdf_label']
);

@ -16,7 +16,7 @@ header('Content-Type: text/html; charset='.api_get_system_encoding());
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo api_get_system_encoding(); ?>" />
<title>
<?php echo get_lang('AllowedHTMLTags'); ?>
<?php echo get_lang('Allowed HTML tags'); ?>
</title>
<style type="text/css" media="screen, projection">
/*<![CDATA[*/
@ -39,7 +39,7 @@ if (api_get_setting('stylesheets') != '') {
<div style="margin:10px;">
<div style="text-align:right;"><a href="javascript: window.close();"><?php echo get_lang('Close'); ?></a></div>
<h4>
<?php echo get_lang('AllowedHTMLTags'); ?>
<?php echo get_lang('Allowed HTML tags'); ?>
</h4>
<?php
$html_type = $_SESSION['status'] == COURSEMANAGER ? TEACHER_HTML : STUDENT_HTML;

@ -9,13 +9,13 @@
require_once __DIR__.'/../inc/global.inc.php';
$help_name = isset($_GET['open']) ? Security::remove_XSS($_GET['open']) : null;
Display::display_header(get_lang('Faq'));
Display::display_header(get_lang('Frequently Asked Question'));
if (api_is_platform_admin()) {
echo '&nbsp;<a href="faq.php?edit=true">'.Display::return_icon('edit.png').'</a>';
}
echo Display::page_header(get_lang('Faq'));
echo Display::page_header(get_lang('Frequently Asked Question'));
$faq_file = 'faq.html';
if (!empty($_GET['edit']) && $_GET['edit'] == 'true' && api_is_platform_admin()) {
@ -27,7 +27,7 @@ if (!empty($_GET['edit']) && $_GET['edit'] == 'true' && api_is_platform_admin())
false,
['ToolbarSet' => 'FAQ', 'Width' => '100%', 'Height' => '300']
);
$form->addButtonSave(get_lang('Ok'), 'faq_submit');
$form->addButtonSave(get_lang('Validate'), 'faq_submit');
$faq_content = @(string) file_get_contents(api_get_path(SYS_APP_PATH).'home/faq.html');
$faq_content = api_to_system_encoding($faq_content, api_detect_encoding(strip_tags($faq_content)));
$form->setDefaults(['faq_content' => $faq_content]);
@ -39,7 +39,7 @@ if (!empty($_GET['edit']) && $_GET['edit'] == 'true' && api_is_platform_admin())
fwrite($fp, $content);
fclose($fp);
} else {
echo Display::return_message(get_lang('WarningFaqFileNonWriteable'), 'warning');
echo Display::return_message(get_lang('File not writeable'), 'warning');
}
echo $content;
} else {

@ -15,7 +15,7 @@ if (empty($help_name)) {
?>
<a class="btn btn-default" href="<?php echo api_get_path(WEB_CODE_PATH); ?>help/faq.php">
<?php echo get_lang('AccessToFaq'); ?>
<?php echo get_lang('Access to the Frequently Asked Questions'); ?>
</a>
<div class="page-header">
<h3><?php echo get_lang('H'.$help_name); ?></h3>
@ -23,5 +23,5 @@ if (empty($help_name)) {
<?php echo get_lang($help_name.'Content'); ?>
<hr>
<a class="btn btn-default" href="<?php echo api_get_path(WEB_CODE_PATH); ?>help/faq.php">
<?php echo get_lang('AccessToFaq'); ?>
<?php echo get_lang('Access to the Frequently Asked Questions'); ?>
</a>

@ -71,17 +71,17 @@ $condition_session = api_get_session_condition($session_id, true, true);
if ($action === 'addlink') {
$nameTools = '';
$interbreadcrumb[] = ['url' => 'link.php', 'name' => get_lang('Links')];
$interbreadcrumb[] = ['url' => '#', 'name' => get_lang('AddLink')];
$interbreadcrumb[] = ['url' => '#', 'name' => get_lang('Add a link')];
}
if ($action === 'addcategory') {
$nameTools = '';
$interbreadcrumb[] = ['url' => 'link.php', 'name' => get_lang('Links')];
$interbreadcrumb[] = ['url' => '#', 'name' => get_lang('AddCategory')];
$interbreadcrumb[] = ['url' => '#', 'name' => get_lang('Add category')];
}
if ($action === 'editlink') {
$nameTools = get_lang('EditLink');
$nameTools = get_lang('Edit link');
$interbreadcrumb[] = ['url' => 'link.php', 'name' => get_lang('Links')];
}

@ -50,17 +50,17 @@ Event::registerLog($logInfo);
// Tool name
if ($action === 'addnote') {
$tool = 'NoteAddNew';
$tool = 'Add new note in my personal notebook';
$interbreadcrumb[] = [
'url' => 'index.php?'.api_get_cidreq(),
'name' => get_lang('ToolNotebook'),
'name' => get_lang('Notebook'),
];
}
if ($action === 'editnote') {
$tool = 'ModifyNote';
$tool = 'Edit my personal note';
$interbreadcrumb[] = [
'url' => 'index.php?'.api_get_cidreq(),
'name' => get_lang('ToolNotebook'),
'name' => get_lang('Notebook'),
];
}
@ -89,19 +89,19 @@ if ($action === 'addnote') {
api_get_self().'?action='.Security::remove_XSS($_GET['action']).'&'.api_get_cidreq()
);
// Setting the form elements
$form->addElement('header', '', get_lang('NoteAddNew'));
$form->addElement('text', 'note_title', get_lang('NoteTitle'), ['id' => 'note_title']);
$form->addElement('header', '', get_lang('Add new note in my personal notebook'));
$form->addElement('text', 'note_title', get_lang('Note title'), ['id' => 'note_title']);
$form->addElement(
'html_editor',
'note_comment',
get_lang('NoteComment'),
get_lang('Note details'),
null,
api_is_allowed_to_edit() ? ['ToolbarSet' => 'Notebook', 'Width' => '100%', 'Height' => '300'] : ['ToolbarSet' => 'NotebookStudent', 'Width' => '100%', 'Height' => '300', 'UserStatus' => 'student']
);
$form->addButtonCreate(get_lang('AddNote'), 'SubmitNote');
$form->addButtonCreate(get_lang('Create note'), 'SubmitNote');
// Setting the rules
$form->addRule('note_title', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('note_title', get_lang('Required field'), 'required');
// The validation or display
if ($form->validate()) {
@ -110,7 +110,7 @@ if ($action === 'addnote') {
$values = $form->exportValues();
$res = NotebookManager::save_note($values);
if ($res) {
echo Display::return_message(get_lang('NoteAdded'), 'confirmation');
echo Display::return_message(get_lang('Note added'), 'confirmation');
}
}
Security::clear_token();
@ -145,26 +145,26 @@ if ($action === 'addnote') {
api_get_self().'?action='.Security::remove_XSS($_GET['action']).'&notebook_id='.intval($_GET['notebook_id']).'&'.api_get_cidreq()
);
// Setting the form elements
$form->addElement('header', '', get_lang('ModifyNote'));
$form->addElement('header', '', get_lang('Edit my personal note'));
$form->addElement('hidden', 'notebook_id');
$form->addElement('text', 'note_title', get_lang('NoteTitle'), ['size' => '100']);
$form->addElement('text', 'note_title', get_lang('Note title'), ['size' => '100']);
$form->addElement(
'html_editor',
'note_comment',
get_lang('NoteComment'),
get_lang('Note details'),
null,
api_is_allowed_to_edit()
? ['ToolbarSet' => 'Notebook', 'Width' => '100%', 'Height' => '300']
: ['ToolbarSet' => 'NotebookStudent', 'Width' => '100%', 'Height' => '300', 'UserStatus' => 'student']
);
$form->addButtonUpdate(get_lang('ModifyNote'), 'SubmitNote');
$form->addButtonUpdate(get_lang('Edit my personal note'), 'SubmitNote');
// Setting the defaults
$defaults = NotebookManager::get_note_information(Security::remove_XSS($_GET['notebook_id']));
$form->setDefaults($defaults);
// Setting the rules
$form->addRule('note_title', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('note_title', get_lang('Required field'), 'required');
// The validation or display
if ($form->validate()) {
@ -173,7 +173,7 @@ if ($action === 'addnote') {
$values = $form->exportValues();
$res = NotebookManager::update_note($values);
if ($res) {
echo Display::return_message(get_lang('NoteUpdated'), 'confirmation');
echo Display::return_message(get_lang('Note updated'), 'confirmation');
}
}
Security::clear_token();
@ -197,7 +197,7 @@ if ($action === 'addnote') {
// Action handling: deleting a note
$res = NotebookManager::delete_note($_GET['notebook_id']);
if ($res) {
echo Display::return_message(get_lang('NoteDeleted'), 'confirmation');
echo Display::return_message(get_lang('Note deleted'), 'confirmation');
}
NotebookManager::display_notes();
@ -209,12 +209,12 @@ if ($action === 'addnote') {
case 'creation_date':
if (!$_GET['direction'] || $_GET['direction'] == 'ASC') {
echo Display::return_message(
get_lang('NotesSortedByCreationDateAsc'),
get_lang('Notes sorted by creation date ascendant'),
'confirmation'
);
} else {
echo Display::return_message(
get_lang('NotesSortedByCreationDateDESC'),
get_lang('Notes sorted by creation date downward'),
'confirmation'
);
}
@ -222,12 +222,12 @@ if ($action === 'addnote') {
case 'update_date':
if (!$_GET['direction'] || $_GET['direction'] == 'ASC') {
echo Display::return_message(
get_lang('NotesSortedByUpdateDateAsc'),
get_lang('Notes sorted by update date ascendant'),
'confirmation'
);
} else {
echo Display::return_message(
get_lang('NotesSortedByUpdateDateDESC'),
get_lang('Notes sorted by update date downward'),
'confirmation'
);
}
@ -235,12 +235,12 @@ if ($action === 'addnote') {
case 'title':
if (!$_GET['direction'] || $_GET['direction'] == 'ASC') {
echo Display::return_message(
get_lang('NotesSortedByTitleAsc'),
get_lang('Notes sorted by title ascendant'),
'confirmation'
);
} else {
echo Display::return_message(
get_lang('NotesSortedByTitleDESC'),
get_lang('Notes sorted by title downward'),
'confirmation'
);
}

@ -119,7 +119,7 @@ echo "<form method=\"post\" action=\"".str_replace('&', '&amp;', $_SERVER['REQUE
if (api_get_setting('user_roles') == 'true') {
// the list of the roles for the user
echo '<strong>'.get_lang('UserRoles').'</strong><br />';
echo '<strong>'.get_lang('User roles').'</strong><br />';
$current_user_course_roles = get_roles('user', $user_id);
$current_user_platform_roles = get_roles('user', $user_id, 'platform');
display_role_list($current_user_course_roles, $current_user_platform_roles);
@ -134,9 +134,9 @@ echo "<table class=\"data_table\">\n";
// the header
echo "\t<tr>\n";
echo "\t\t<th rowspan=\"2\">".get_lang('Module')."</th>\n";
echo "\t\t<th colspan=\"4\">".get_lang('ArticleManager')."</th>\n";
echo "\t\t<th colspan=\"3\">".get_lang('CommentManager')."</th>\n";
echo "\t\t<th colspan=\"3\">".get_lang('BlogManager')."</th>\n";
echo "\t\t<th colspan=\"4\">".get_lang('Tasks manager')."</th>\n";
echo "\t\t<th colspan=\"3\">".get_lang('Comment manager')."</th>\n";
echo "\t\t<th colspan=\"3\">".get_lang('Project manager')."</th>\n";
echo "\t</tr>\n";
// Subheader
@ -192,6 +192,6 @@ echo "</form><br />";
// LEGEND
echo '<strong>'.get_lang('Legend').'</strong><br />';
echo '<img src="../img/wrong.gif" /> '.get_lang('UserHasPermissionNot').'<br />';
echo '<img src="../img/checkbox_on2.gif" /> '.get_lang('UserHasPermission').'<br />';
echo '<img src="../img/checkbox_on3.gif" /> '.get_lang('UserHasPermissionByRoleGroup').'<br />';
echo '<img src="../img/wrong.gif" /> '.get_lang('The user hasn\'t rights').'<br />';
echo '<img src="../img/checkbox_on2.gif" /> '.get_lang('The user has rights').'<br />';
echo '<img src="../img/checkbox_on3.gif" /> '.get_lang('The user has rightsByRoleGroup').'<br />';

@ -51,7 +51,7 @@ echo "<form method=\"post\" action=\"".str_replace('&', '&amp;', $_SERVER['REQUE
// DISPLAYING THE ROLES LIST
if (api_get_setting('group_roles') == 'true') {
// the list of the roles for the user
echo '<strong>'.get_lang('GroupRoles').'</strong><br />';
echo '<strong>'.get_lang('Group roles').'</strong><br />';
$current_group_course_roles = get_roles('group', $group_id);
$current_group_platform_roles = get_roles('group', $group_id, 'platform');
display_role_list($current_group_course_roles, $current_group_platform_roles);
@ -111,12 +111,12 @@ foreach ($tool_rights as $tool => $rights) { // $tool_rights contains all the po
echo "</table>\n";
if ($setting_visualisation == 'checkbox') {
echo "<input type=\"Submit\" name=\"StoreGroupPermissions\" value=\"".get_lang('StorePermissions')."\">";
echo "<input type=\"Submit\" name=\"StoreGroupPermissions\" value=\"".get_lang('Store permissions')."\">";
}
echo "</form>";
// LEGEND
echo '<strong>'.get_lang('Legend').'</strong><br />';
echo '<img src="../img/wrong.gif" /> '.get_lang('UserHasPermissionNot').'<br />';
echo '<img src="../img/checkbox_on2.gif" /> '.get_lang('UserHasPermission').'<br />';
echo '<img src="../img/checkbox_on3.gif" /> '.get_lang('UserHasPermissionByRoleGroup').'<br />';
echo '<img src="../img/wrong.gif" /> '.get_lang('The user hasn\'t rights').'<br />';
echo '<img src="../img/checkbox_on2.gif" /> '.get_lang('The user has rights').'<br />';
echo '<img src="../img/checkbox_on3.gif" /> '.get_lang('The user has rightsByRoleGroup').'<br />';

@ -247,10 +247,10 @@ function display_checkbox_matrix($permission_array, $tool, $permission, $inherit
function display_image_matrix($permission_array, $tool, $permission, $inherited_permissions = [], $course_admin = false, $editable = true)
{
if ($course_admin) {
echo "\t\t\t<img src=\"../img/checkbox_on3.gif\" border=\"0\"/ title=\"".get_lang('PermissionGrantedByGroupOrRole')."\">";
echo "\t\t\t<img src=\"../img/checkbox_on3.gif\" border=\"0\"/ title=\"".get_lang('Permission granted by group or role')."\">";
} else {
if (in_array($permission, $inherited_permissions[$tool])) {
echo "\t\t\t<img src=\"../img/checkbox_on3.gif\" border=\"0\"/ title=\"".get_lang('PermissionGrantedByGroupOrRole')."\">";
echo "\t\t\t<img src=\"../img/checkbox_on3.gif\" border=\"0\"/ title=\"".get_lang('Permission granted by group or role')."\">";
} else {
if (is_array($permission_array[$tool]) and in_array($permission, $permission_array[$tool])) {
if ($editable) {
@ -317,10 +317,10 @@ function display_image_matrix($permission_array, $tool, $permission, $inherited_
function display_image_matrix_for_blogs($permission_array, $user_id, $tool, $permission, $inherited_permissions = [], $course_admin = false, $editable = true)
{
if ($course_admin) {
echo "\t\t\t<img src=\"../img/checkbox_on3.gif\" border=\"0\"/ title=\"".get_lang('PermissionGrantedByGroupOrRole')."\">";
echo "\t\t\t<img src=\"../img/checkbox_on3.gif\" border=\"0\"/ title=\"".get_lang('Permission granted by group or role')."\">";
} else {
if (!empty($inherited_permissions) and in_array($permission, $inherited_permissions[$tool])) {
echo "\t\t\t<img src=\"../img/checkbox_on3.gif\" border=\"0\"/ title=\"".get_lang('PermissionGrantedByGroupOrRole')."\">";
echo "\t\t\t<img src=\"../img/checkbox_on3.gif\" border=\"0\"/ title=\"".get_lang('Permission granted by group or role')."\">";
} else {
if (is_array($permission_array[$tool]) and in_array($permission, $permission_array[$tool])) {
if ($editable) {
@ -341,7 +341,7 @@ function display_image_matrix_for_blogs($permission_array, $user_id, $tool, $per
echo "\t\t\t <a href=\"".$url."\">";
}
echo "<img src=\"../img/checkbox_on2.gif\" border=\"0\"/ title=\"".get_lang('UserHasPermission')."\">";
echo "<img src=\"../img/checkbox_on2.gif\" border=\"0\"/ title=\"".get_lang('The user has rights')."\">";
if ($editable) {
echo "</a>";
}
@ -365,7 +365,7 @@ function display_image_matrix_for_blogs($permission_array, $user_id, $tool, $per
//echo "\t\t\t <a href=\"".str_replace('&', '&amp;', $_SERVER['REQUEST_URI'])."&amp;action=grant&amp;permission=$permission&amp;tool=$tool\">";
echo "\t\t\t <a href=\"".$url."\">";
}
echo "<img src=\"../img/wrong.gif\" border=\"0\"/ title=\"".get_lang('UserHasPermissionNot')."\">";
echo "<img src=\"../img/wrong.gif\" border=\"0\"/ title=\"".get_lang('The user has rightsNot')."\">";
if ($editable) {
echo "</a>";
}

@ -21,7 +21,7 @@ if ($_POST['StoreRolePermissions']) {
$role_id = Database::insert_id();
$result_message = store_permissions('role', $role_id);
} else {
$result_message = get_lang('ErrorPleaseGiveRoleName');
$result_message = get_lang('ErrorPleaseGiveRole name');
}
}
// storing a permission for a given role when the image approach is used
@ -68,7 +68,7 @@ if ($_GET['action'] == 'add') {
echo "\n<table>";
echo "\n\t<tr>";
echo "\n\t\t<td>";
echo get_lang('RoleName');
echo get_lang('Role name');
echo "\n\t\t</td>";
echo "\n\t\t<td>";
echo "\n\t\t\t<input type='text' name='role_name'>";
@ -123,7 +123,7 @@ if ($_GET['action'] == 'add') {
}
echo "</table>\n";
echo "<input type=\"Submit\" name=\"StoreRolePermissions\" value=\"".get_lang('StorePermissions')."\">";
echo "<input type=\"Submit\" name=\"StoreRolePermissions\" value=\"".get_lang('Store permissions')."\">";
echo "</form>";
}
@ -219,7 +219,7 @@ if ($_GET['role_id']) {
echo "</table>\n";
if ($setting_visualisation == 'checkbox') {
echo "<input type=\"Submit\" name=\"StoreRolePermissions\" value=\"".get_lang('StorePermissions')."\">";
echo "<input type=\"Submit\" name=\"StoreRolePermissions\" value=\"".get_lang('Store permissions')."\">";
}
echo "</form>";
}

@ -11,7 +11,7 @@ include_once 'all_permissions.inc.php';
include_once api_get_library_path()."/groupmanager.lib.php";
include_once api_get_library_path()."/blog.lib.php";
// ACTIONS
if ($_POST['StoreUserPermissions'] and $setting_visualisation == 'checkbox') {
if ($_POST['StoreUser permissions'] and $setting_visualisation == 'checkbox') {
$result_message = store_permissions('user', $user_id);
if ($result_message) {
echo Display::return_message($result_message);
@ -92,7 +92,7 @@ echo "<form method=\"post\" action=\"".str_replace('&', '&amp;', $_SERVER['REQUE
if (api_get_setting('user_roles') == 'true') {
// the list of the roles for the user
echo '<strong>'.get_lang('UserRoles').'</strong><br />';
echo '<strong>'.get_lang('User roles').'</strong><br />';
$current_user_course_roles = get_roles('user', $user_id);
$current_user_platform_roles = get_roles('user', $user_id, 'platform');
display_role_list($current_user_course_roles, $current_user_platform_roles);
@ -102,7 +102,7 @@ if (api_get_setting('user_roles') == 'true') {
// ---------------------------------------------------
// DISPLAYING THE MATRIX (user permissions)
// ---------------------------------------------------
echo '<strong>'.get_lang('UserPermissions').'</strong>';
echo '<strong>'.get_lang('User permissions').'</strong>';
echo "<table class=\"data_table\">\n";
// the header
@ -164,12 +164,12 @@ foreach ($tool_rights as $tool => $rights) {
echo "</table>\n";
if ($setting_visualisation == 'checkbox') {
echo "<input type=\"Submit\" name=\"StoreUserPermissions\" value=\"".get_lang('StorePermissions')."\">";
echo "<input type=\"Submit\" name=\"StoreUser permissions\" value=\"".get_lang('Store permissions')."\">";
}
echo "</form><br />";
// LEGEND
echo '<strong>'.get_lang('Legend').'</strong><br />';
echo '<img src="../img/wrong.gif" /> '.get_lang('UserHasPermissionNot').'<br />';
echo '<img src="../img/checkbox_on2.gif" /> '.get_lang('UserHasPermission').'<br />';
echo '<img src="../img/checkbox_on3.gif" /> '.get_lang('UserHasPermissionByRoleGroup').'<br />';
echo '<img src="../img/wrong.gif" /> '.get_lang('The user hasn\'t rights').'<br />';
echo '<img src="../img/checkbox_on2.gif" /> '.get_lang('The user has rights').'<br />';
echo '<img src="../img/checkbox_on3.gif" /> '.get_lang('The user has rightsByRoleGroup').'<br />';

@ -122,7 +122,7 @@ function sendDocument($documentId, $courseInfo)
if (Compilatio::isMd5($compilatioId)) {
$compilatio->saveDocument($courseId, $doc->id, $compilatioId);
$compilatio->startAnalyse($compilatioId);
echo Display::return_message(get_lang('Uploaded'));
echo Display::return_message(get_lang('Uploaded.'));
} else {
echo Display::return_message(get_lang('Error'), 'error');
}

@ -13,7 +13,7 @@ if (extension_loaded('xapian')) {
require '../lp/lp_list_search.php';
} else {
Display::display_header(get_lang('Search'));
echo Display::return_message(get_lang('SearchXapianModuleNotInstalled'), 'error');
echo Display::return_message(get_lang('The Xapian search module is not installed'), 'error');
Display::display_footer();
exit;
}

@ -13,8 +13,8 @@ $htmlHeadXtra[] = api_get_jqgrid_js();
//$htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_PATH).'javascript/timeline/timeline.css');
// setting breadcrumbs
//$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
//$interbreadcrumb[]=array('url' => 'career_dashboard.php','name' => get_lang('CareersAndPromotions'));
//$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('Administration'));
//$interbreadcrumb[]=array('url' => 'career_dashboard.php','name' => get_lang('Careers and promotions'));
$action = isset($_GET['action']) ? $_GET['action'] : null;
@ -34,7 +34,7 @@ switch ($action) {
break;
case 'add_item':
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('Timeline')];
$interbreadcrumb[] = ['url' => '#', 'name' => get_lang('TimelineItem')];
$interbreadcrumb[] = ['url' => '#', 'name' => get_lang('Item')];
break;
default:
$interbreadcrumb[] = ['url' => '#', 'name' => get_lang('Timeline')];
@ -44,7 +44,7 @@ switch ($action) {
$url = api_get_path(WEB_AJAX_PATH).'model.ajax.php?a=get_timelines';
//The order is important you need to check the the $column variable in the model.ajax.php file
$columns = [get_lang('Name'), get_lang('Actions')];
$columns = [get_lang('Name'), get_lang('Detail')];
//Column config
$column_model = [
@ -82,7 +82,7 @@ switch ($action) {
$values = $form->exportValues();
$res = $timeline->save($values);
if ($res) {
$message = Display::return_message(get_lang('ItemAdded'), 'success');
$message = Display::return_message(get_lang('Item added'), 'success');
}
}
$content = $timeline->listing();
@ -104,7 +104,7 @@ switch ($action) {
$values = $form->exportValues();
//$timeline->update_all_promotion_status_by_career_id($values['id'],$values['status']);
$res = $timeline->update($values);
$message = Display::return_message(sprintf(get_lang('ItemUpdated'), $values['name']), 'confirmation');
$message = Display::return_message(sprintf(get_lang('Item updated'), $values['name']), 'confirmation');
}
$timeline->display();
} else {
@ -126,7 +126,7 @@ switch ($action) {
$values['type'] = '';
//$timeline->update_all_promotion_status_by_career_id($values['id'],$values['status']);
$res = $timeline->save_item($values);
$message = Display::return_message(sprintf(get_lang('ItemUpdated'), $values['name']), 'confirmation');
$message = Display::return_message(sprintf(get_lang('Item updated'), $values['name']), 'confirmation');
}
$timeline->display();
} else {
@ -141,7 +141,7 @@ switch ($action) {
if ($check) {
$res = $timeline->delete($_GET['id']);
if ($res) {
$message = Display::return_message(get_lang('ItemDeleted'), 'success');
$message = Display::return_message(get_lang('Item deleted'), 'success');
}
}
$content = $timeline->listing();

@ -37,7 +37,7 @@ try {
$password = isset($_POST['password']) ? $_POST['password'] : null;
$isValid = Rest::isValidUser($username, $password);
if (!$isValid) {
throw new Exception(get_lang('InvalideUserDetected'));
throw new Exception(get_lang('Invalid user detected.'));
}
$restResponse->setData([
@ -67,7 +67,7 @@ try {
$messagesId = array_filter($messagesId);
if (empty($messagesId)) {
throw new Exception(get_lang('NoData'));
throw new Exception(get_lang('No data available'));
}
$messageStatus = $action === Rest::POST_USER_MESSAGE_READ ? MESSAGE_STATUS_NEW : MESSAGE_STATUS_UNREAD;
@ -193,7 +193,7 @@ try {
if (
empty($_POST['title']) || empty($_POST['text']) || empty($_POST['thread']) || empty($_POST['forum'])
) {
throw new Exception(get_lang('NoData'));
throw new Exception(get_lang('No data available'));
}
$forumId = isset($_POST['forum']) ? intval($_POST['forum']) : 0;
@ -226,7 +226,7 @@ try {
case Rest::GET_MESSAGE_USERS:
$search = !empty($_REQUEST['q']) ? $_REQUEST['q'] : null;
if (!$search || strlen($search) < 2) {
throw new Exception(get_lang('TooShort'));
throw new Exception(get_lang('Too short'));
}
$data = $restApi->getMessageUsers($search);
@ -242,7 +242,7 @@ try {
if (
empty($_POST['title']) || empty($_POST['text']) || empty($_POST['forum'])
) {
throw new Exception(get_lang('NoData'));
throw new Exception(get_lang('No data available'));
}
$forumId = isset($_POST['forum']) ? intval($_POST['forum']) : 0;
@ -259,7 +259,7 @@ try {
$restResponse->setData($data);
break;
default:
throw new Exception(get_lang('InvalidAction'));
throw new Exception(get_lang('Invalid action'));
}
} catch (Exception $exeption) {
$restResponse->setErrorMessage(

@ -26,30 +26,30 @@ function validate_data($users)
if (!UserManager::is_username_empty($user['UserName'])) {
// 2.1. Check whether username was used twice in the import file.
if (isset($usernames[$user['UserName']])) {
$user['error'] = get_lang('UserNameUsedTwice');
$user['error'] = get_lang('Login is used twice');
$errors[] = $user;
}
$usernames[$user['UserName']] = 1;
// 2.2. Check whether username is allready in use in database.
if (!UserManager::is_username_available($user['UserName'])) {
$user['error'] = get_lang('UserNameNotAvailable');
$user['error'] = get_lang('This login is not available');
$errors[] = $user;
}
// 2.3. Check whether username is too long.
if (UserManager::is_username_too_long($user['UserName'])) {
$user['error'] = get_lang('UserNameTooLong');
$user['error'] = get_lang('This login is too long');
$errors[] = $user;
}
}
// 3. Check status.
if (isset($user['Status']) && !api_status_exists($user['Status'])) {
$user['error'] = get_lang('WrongStatus');
$user['error'] = get_lang('This status doesn\'t exist');
$errors[] = $user;
}
// 5. Check authentication source.
if (isset($user['AuthSource']) && strlen($user['AuthSource']) != 0) {
if (!in_array($user['AuthSource'], $defined_auth_sources)) {
$user['error'] = get_lang('AuthSourceNotAvailable');
$user['error'] = get_lang('Authentication source unavailable.');
$errors[] = $user;
}
}

@ -47,7 +47,7 @@ $(function() {
</script>';
/* Constants and variables */
$tool_name = get_lang('ToolWiki');
$tool_name = get_lang('Wiki');
/* ACCESS */
api_protect_course_script();
@ -64,7 +64,7 @@ if ($groupId) {
];
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'group/group_space.php?'.api_get_cidreq(),
'name' => get_lang('GroupSpace').' '.Security::remove_XSS($group_properties['name']),
'name' => get_lang('Group area').' '.Security::remove_XSS($group_properties['name']),
];
}

@ -16,7 +16,7 @@ $gradingElectronic = GradingElectronicPlugin::create();
try {
if (!$allowed) {
throw new Exception(get_lang('NotAllowed'));
throw new Exception(get_lang('You are not allowed to see this page. Either your connection has expired or you are trying to access a page for which you do not have the sufficient privileges.'));
}
$toolIsEnabled = $gradingElectronic->get('tool_enable') === 'true';

Loading…
Cancel
Save