ualberta-eclass / moodle-block_demostudent

University of Alberta DemoStudent block plugin for Moodle
GNU General Public License v3.0
0 stars 1 forks source link

Switching role #3

Open dinism opened 3 years ago

dinism commented 3 years ago

Do i have two browser open to use the plugin? I'm in Moodle 3.9.4 and using 2019101800 version.

In the block, when switch to DemoStudent everythings is OK. But when i click in 'Return to my Instructor role' it logout. Is it ok?

royko commented 3 years ago

You can use the plugin with a single browser, but I often find it easier to use either with two browsers, or with a normal browser window and a private/incognito window.

The exact behaviour will depend on how authentication works on your system. The plugin uses the same mechanism as Moodle's "login as" functionality. If you go to a student's profile and "login as" them, when you log out, you may need to log in again. This is the way it works on our system, and is expected behaviour.

dinism commented 3 years ago

Are these strings hardcoded to english? I can't find them in AMOS to translate.

imagem

imagem

royko commented 3 years ago

I'm not familiar with AMOS, but could it be because of the <b> tags in those strings? They are definitely not hard coded. blocks/demostudent/lang/en/block_demostudent.php:

$string['buttonfordemostudent'] = 'Return to my <b>Instructor</b> role';
$string['viewisdemostudent'] = 'You are currently seeing the <b>DemoStudent</b> view.';
$string['viewisfirstuse'] = 'You are currently seeing the <b>Instructor</b> view.';

Thank you for translating!