Skip to content

Commit

Permalink
Course settings: Add option to the "Learning path return link" setting
Browse files Browse the repository at this point in the history
New option: return to portal home page see BT#17759
  • Loading branch information
jmontoyaa committed Sep 22, 2020
1 parent a767468 commit e458ccd
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 15 deletions.
7 changes: 7 additions & 0 deletions main/course_info/infocours.php
Expand Up @@ -676,6 +676,13 @@ function is_settings_editable()
get_lang('MyCourses'),
2
),
$form->createElement(
'radio',
'lp_return_link',
null,
get_lang('RedirectToPortalHome'),
3
),
];
$form->addGroup($group, '', [get_lang('LpReturnLink')]);
}
Expand Down
13 changes: 7 additions & 6 deletions main/lang/english/trad4all.inc.php
Expand Up @@ -2715,7 +2715,7 @@
$MakeCorrespond = "Match them";
$FillLists = "Please fill the two lists below";
$GiveText = "Please type the text";
$DefineBlanks = "Please define at least one blank with square brackets [...]";
$DefineBlanks = "Please define at least one blank with the selected marker";
$GiveAnswers = "Please type the question's answers";
$ChooseGoodAnswer = "Please check the correct answer";
$ChooseGoodAnswers = "Please check one or more correct answers";
Expand Down Expand Up @@ -5832,7 +5832,7 @@
$ConfigureDashboardPlugin = "Configure Dashboard Plugin";
$EditBlocks = "Edit blocks";
$Never = "Never";
$YourAccountIsActiveYouCanLoginAndCheckYourCourses = "Dear user,
$YourAccountIsActiveYouCanLoginAndCheckYourCourses = "Dear user,

Your account has now been activated on the platform. Please login and enjoy your courses.";
$SessionFields = "Session fields";
Expand Down Expand Up @@ -8006,11 +8006,11 @@
$BaseDate = "Dispatch based on the session's start/end dates";
$AfterOrBefore = "After or before";
$Before = "Before";
$ScheduleAnnouncementDescription = "This form allows scheduling announcements to be sent automatically to the students who are taking a course in a session.
$ScheduleAnnouncementDescription = "This form allows scheduling announcements to be sent automatically to the students who are taking a course in a session.

There are two types of announcements that can be sent:
There are two types of announcements that can be sent:

Specific date: In this case a specific day is selected to make the announcement.
Specific date: In this case a specific day is selected to make the announcement.

Based on the start / end date of the session: in this case the number of days to pass before sending the announcement must be indicated. And those days can be associated to before or after the start / end date. For example: 3 days after the start date.";
$MandatorySurveyNoAnswered = "A mandatory survey is waiting your answer. To enter the course, you must first complete the survey.";
Expand Down Expand Up @@ -8668,4 +8668,5 @@
$UserByEntityReport = "User by organization";
$LpByAuthor = "Learning path by author";
$SessionImportAssignments = "Import assignments from base course";
?>
$RedirectToPortalHome = "Redirect to the platform home page";
?>
1 change: 1 addition & 0 deletions main/lang/french/trad4all.inc.php
Expand Up @@ -8600,4 +8600,5 @@
$UserByEntityReport = "Utilisateur par organisation";
$LpByAuthor = "Parcours par auteur";
$SessionImportAssignments = "Importer les travaux du cours de base";
$RedirectToPortalHome = "Rediriger vers la page d'accueil de la plateforme";
?>
17 changes: 9 additions & 8 deletions main/lang/spanish/trad4all.inc.php
Expand Up @@ -432,13 +432,13 @@
$YourVersionNotUpToDate = "Su versión no está actualizada";
$Hotpotatoes = "Hotpotatoes";
$ZeroMeansNoQuestionWillBeSelectedMinusOneMeansThatAllQuestionsWillBeSelected = "-1 = Todas las preguntas serán seleccionadas. 0 = Ninguna pregunta será seleccionada.";
$EmailNotificationTemplateDescription = "Puede modificar el correo enviado a los usuarios al terminar el ejercicio. Puede usar los siguientes términos:
$EmailNotificationTemplateDescription = "Puede modificar el correo enviado a los usuarios al terminar el ejercicio. Puede usar los siguientes términos:

{{ student.username }}
{{ student.firstname }}
{{ student.firstname }}
{{ student.lastname }}
{{ student.official_code }}
{{ exercise.title }}
{{ student.official_code }}
{{ exercise.title }}
{{ exercise.start_time }}
{{ exercise.end_time }}
{{ course.title }}
Expand Down Expand Up @@ -2715,7 +2715,7 @@
$MakeCorrespond = "Relacionar";
$FillLists = "Por favor, complete las dos listas siguientes";
$GiveText = "Por favor, escriba el texto";
$DefineBlanks = "Por favor, defina un espacio en blanco con corchetes [...]";
$DefineBlanks = "Por favor, defina un espacio en blanco con el marcador seleccionado";
$GiveAnswers = "Por favor, escriba las respuestas de las preguntas";
$ChooseGoodAnswer = "Por favor, elija la respuesta correcta";
$ChooseGoodAnswers = "Por favor, elija una o más respuestas correctas";
Expand Down Expand Up @@ -6157,7 +6157,7 @@
$ToolVideoconference = "Videoconferencia";
$BigBlueButtonEnableTitle = "Herramienta de videoconferencia BigBlueButton";
$BigBlueButtonEnableComment = "Seleccione si desea habilitar la herramienta de videoconferencia BigBlueButton. Una vez activada, se mostrará como una herramienta en la página principal todos los curso. Los profesores podrán lanzar una videoconferencia en cualquier momento, pero los estudiantes sólo podrán unirse a una ya lanzada.
Si no dispone de un servidor BigBlueButton, pruebe a
Si no dispone de un servidor BigBlueButton, pruebe a
<a href=\"http://bigbluebutton.org/\" target=\"_blank\">configurar uno</a> o pida ayuda a los <a href=\"http://www.chamilo.org/en/providers\" target=\"_blank\">proveedores oficiales de Chamilo</a>.
BigBlueButton es libre, pero su instalación requiere ciertas habilidades técnicas que no todo el mundo posee. Puede instalarlo por su cuenta o buscar ayuda profesional con el consiguiente costo. En la lógica del software libre, nosotros le ofrecemos las herramientas para hacer más fácil su trabajo y le recomendamos profesionales (los proveedores oficiales de Chamilo) que serán capaces de ayudarle.";
$BigBlueButtonHostTitle = "Servidor BigBlueButton";
Expand All @@ -6175,7 +6175,7 @@

Si se hace visible la carpeta de los usuarios y la carpeta de uno o más alumnos, el resto de los alumnos podrán ver todo su contenido. En este caso, el alumno propietario de la carpeta también podrá desde la herramienta documentos (sólo dentro de su carpeta): crear y editar documentos web, convertir un documento web en una plantilla para uso personal, crear y editar dibujos SVG y PNG, grabar archivos de audio en formato WAV, convertir texto en audio en formato MP3, realizar capturas a través de su webcam, enviar documentos, crear carpetas, mover carpetas y archivos, borrar carpetas y archivos, y descargar copias de seguridad de su carpeta.

Por otra parte, la herramienta documentos se sincroniza con el gestor de archivos del editor web, así que los cambios en la gestión de los documentos realizados en una u otra afectarán a ambas.
Por otra parte, la herramienta documentos se sincroniza con el gestor de archivos del editor web, así que los cambios en la gestión de los documentos realizados en una u otra afectarán a ambas.

Así pues, la carpeta de usuario no sólo es un lugar para depositar los archivos, sino que se convierte en un completo gestor de los documentos que los estudiantes utilizan durante el curso. Además, recuerde que cualquier usuario podrá copiar un archivo, que sea visible, de cualquier carpeta de la herramienta documentos (sea o no la suya) a su portafolios o área personal de documentos de la red social, donde estará disponible para que lo pueda usar en otros cursos.";
$HelpFolderChat = "INFORMACIÓN SOLO VISIBLE POR EL PROFESORADO:\nEsta carpeta contiene todas las sesiones que se han realizado en el chat. Aunque muchas veces las sesiones en el chat pueden ser triviales, en otras pueden ser dignas de ser tratadas como un documento más de trabajo. Para ello, sin cambiar la visibilidad de esta carpeta, haga visible el archivo y enlácelo donde considere oportuno. No se recomienda hacer visible esta carpeta.";
Expand Down Expand Up @@ -8696,4 +8696,5 @@
$UserByEntityReport = "Usuario por entidad";
$LpByAuthor = "Lección por autor";
$SessionImportAssignments = "Importar los tareas del curso base";
?>
$RedirectToPortalHome = "Redirigir a la página de inicio de la plataforma";
?>
3 changes: 3 additions & 0 deletions main/lp/lp_controller.php
Expand Up @@ -1449,6 +1449,9 @@ function(reponse) {
case 'my_courses':
$url = api_get_path(WEB_PATH).'user_portal.php';
break;
case 'portal_home':
$url = api_get_path(WEB_PATH);
break;
}
header('location: '.$url);
exit;
Expand Down
6 changes: 5 additions & 1 deletion main/lp/lp_view.php
Expand Up @@ -449,10 +449,14 @@
$buttonHomeUrl .= '&redirectTo=lp_list';
$buttonHomeText = get_lang('LearningPathList');
break;
case 2: // user portal
case 2: // Course home
$buttonHomeUrl .= '&redirectTo=my_courses';
$buttonHomeText = get_lang('MyCourses');
break;
case 3: // Portal home
$buttonHomeUrl .= '&redirectTo=portal_home';
$buttonHomeText = get_lang('Home');
break;
}

$lpPreviewImagePath = Display::returnIconPath('unknown.png', ICON_SIZE_BIG);
Expand Down

0 comments on commit e458ccd

Please sign in to comment.