Skip to content

Commit

Permalink
Change 'Student View' button label to 'Switch to student view' to mak…
Browse files Browse the repository at this point in the history
…e it more explicit - refs #7780
  • Loading branch information
ywarnier committed Aug 6, 2015
1 parent 79c7d54 commit b043593
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
6 changes: 3 additions & 3 deletions main/inc/lib/api.lib.php
Expand Up @@ -3018,15 +3018,15 @@ function api_display_tool_view_option() {
// We have to remove the isStudentView=true from the $sourceurl
$sourceurl = str_replace('&isStudentView=true', '', $sourceurl);
$sourceurl = str_replace('&isStudentView=false', '', $sourceurl);
$output_string .= '<a class="btn btn-success btn-xs" href="'.$sourceurl.'&isStudentView=false" target="_self">'.get_lang('CourseManagerview').'</a>';
$output_string .= '<a class="btn btn-success btn-xs" href="'.$sourceurl.'&isStudentView=false" target="_self">'.get_lang('SwitchToTeacherView').'</a>';
} elseif ($_SESSION['studentview'] == 'teacherview') {
// Switching to teacherview
$sourceurl = str_replace('&isStudentView=true', '', $sourceurl);
$sourceurl = str_replace('&isStudentView=false', '', $sourceurl);
$output_string .= '<a class="btn btn-primary btn-xs" href="'.$sourceurl.'&isStudentView=true" target="_self">'.get_lang('StudentView').'</a>';
$output_string .= '<a class="btn btn-primary btn-xs" href="'.$sourceurl.'&isStudentView=true" target="_self">'.get_lang('SwitchToStudentView').'</a>';
}
} else {
$output_string .= '<a class="btn btn-primary btn-xs" href="'.$sourceurl.'&isStudentView=true" target="_self">'.get_lang('StudentView').'</a>';
$output_string .= '<a class="btn btn-primary btn-xs" href="'.$sourceurl.'&isStudentView=true" target="_self">'.get_lang('SwitchToStudentView').'</a>';
}
return $output_string;
}
Expand Down
4 changes: 2 additions & 2 deletions main/lang/english/trad4all.inc.php
Expand Up @@ -3105,8 +3105,8 @@
$Logout = "Logout";
$MyAgenda = "Personal agenda";
$CourseHomepage = "Course home";
$CourseManagerview = "Teacher View";
$StudentView = "Learner View";
$SwitchToTeacherView = "Switch to teacher view";
$SwitchToStudentView = "Switch to student view";
$AddResource = "Add it";
$AddedResources = "Attachments";
$TimeReportForTeacherX = "Time report for teacher %s";
Expand Down
4 changes: 2 additions & 2 deletions main/lang/french/trad4all.inc.php
Expand Up @@ -3096,8 +3096,8 @@
$Logout = "Quitter";
$MyAgenda = "Agenda perso";
$CourseHomepage = "Sommaire du cours";
$CourseManagerview = "Vue prof";
$StudentView = "Vue apprenant";
$SwitchToTeacherView = "Passer en vue prof";
$SwitchToStudentView = "Passer en vue apprenant";
$AddResource = "Ajouter une ressource";
$AddedResources = "Ressources ajoutées";
$TimeReportForTeacherX = "Rapport de temps pour l'enseignant %s";
Expand Down
11 changes: 9 additions & 2 deletions main/lang/spanish/trad4all.inc.php
Expand Up @@ -3105,8 +3105,8 @@
$Logout = "Salir";
$MyAgenda = "Mi agenda";
$CourseHomepage = "Página principal del curso";
$CourseManagerview = "Cambiar a \"Vista de profesor\"";
$StudentView = "Cambiar a \"Vista de estudiante\"";
$SwitchToTeacherView = "Cambiar a vista profesor";
$SwitchToStudentView = "Cambiar a \"Vista de estudiante\"";
$AddResource = "Añadir recurso";
$AddedResources = "Recursos añadidos";
$TimeReportForTeacherX = "Reporte de tiempo profesor %s";
Expand Down Expand Up @@ -7467,6 +7467,11 @@
$DistinctUsersLogins = "Logins de usuarios distintos";
$AreYouSureToSubscribe = "¿Está seguro de suscribirse?";
$CheckYourEmailAndFollowInstructions = "Revise su correo electrónico y siga las instrucciones.";
$LinkExpired = "Enlace expirado, por favor vuelva a iniciar el proceso.";
$ResetPasswordInstructions = "Instrucciones para el procedimiento de cambio de contraseña";
$ResetPasswordCommentWithUrl = "Ha recibido este mensaje porque Usted (o alguien que intenta hacerse pasar por Ud) ha pedido que su contraseña sea generada nuevamente. Para configurar una nueva contraseña, necesita activarla. Para ello, por favor de clic en el siguiente enlace: %s.

Si no ha pedido un cambio de contraseña, puede ignorar este mensaje. No obstante, si vuelve a recibirlo repetidamente, por favor comuníquese con el administrador de su portal.";
$CronRemindCourseExpirationActivateText = "Cron de Recordatorio de Expiración de Curso";
$CronRemindCourseExpirationActivateComment = "Habilitar el cron de envío de recordatorio de expiración de cursos";
$CronRemindCourseExpirationFrecuencyText = "Frecuencia del recordatorio de expiración de curso";
Expand All @@ -7487,4 +7492,6 @@
$ThanksForYourSubscription = "¡Gracias por su suscripción!";
$XTeam = "El equipo de %s";
$YouCanStartSubscribingToCoursesEnteringToXUrl = "Puede empezar a suscribirse a los cursos ingresando a %s";
$VideoUrl = "URL de vídeo";
$AddAttachment = "Añadir archivo adjunto";
?>

0 comments on commit b043593

Please sign in to comment.