From c3e461a29b096952db7498f876be14c71bec1f44 Mon Sep 17 00:00:00 2001 From: Benjamin SECLIER Date: Thu, 20 May 2021 11:38:16 +0200 Subject: [PATCH 1/2] Update README.md typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 17ef9c5..a281ad5 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ curl -H "X-Auth-Token: XXXAuthTokenXXX" -H "X-User-Id: XXXUserIDXXX" -H "Content ``` * If you want to verify, you can list personal tokens ```bash -curl -H "X-Auth-Token: XXXAuthTokenXXX" -H "X-User-Id: XXXUserIDXXX" -H t-type:application/json" https://chat.univ.fr/api/v1/users.getPersonalAccessTokens +curl -H "X-Auth-Token: XXXAuthTokenXXX" -H "X-User-Id: XXXUserIDXXX" -H "Content-type:application/json" https://chat.univ.fr/api/v1/users.getPersonalAccessTokens # {"tokens":[{"name":"moodletoken","createdAt":"2021-02-09T10:35:38.564Z","lastTokenPart":"XXX"}],"success":true} ``` * Generate a new token in case of lost From b6525c0dc09bc381e851f6d2c58e74e4e51a2ad5 Mon Sep 17 00:00:00 2001 From: Ali Alhaidary <75235623+ali-alhaidary@users.noreply.github.com> Date: Wed, 26 May 2021 00:50:43 +0300 Subject: [PATCH 2/2] Update rocketchat.php --- lang/en/rocketchat.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lang/en/rocketchat.php b/lang/en/rocketchat.php index 9a07025..d0f7c2e 100644 --- a/lang/en/rocketchat.php +++ b/lang/en/rocketchat.php @@ -70,27 +70,27 @@ $string['rocketchat:change_embedded_display_mode'] = 'Can change the display mode (embedded) of each module instance'; $string['rocketchat_nickname'] = '{$a->firstname} {$a->lastname}'; $string['create_user_account_if_not_exists'] = 'Create Rocket.Chat user account'; -$string['create_user_account_if_not_exists_desc'] = 'While enrolling user, create Rocket.Chat corresponding user account(username) if not exists'; +$string['create_user_account_if_not_exists_desc'] = 'While enrolling user, create Rocket.Chat corresponding user account(username), if it does not exist'; $string['recyclebin_patch'] = 'Is recyclebin moodle core patch installed?'; -$string['recyclebin_patch_desc'] = 'the mod rocketchat recyclebin patch is a patch locate in admin/tool/recyclebin/classes/course_bin.php file enabling to pass cmid and module instanceid to recyclebin item created event. It enables to delete remote Rocket.Chat groups'; +$string['recyclebin_patch_desc'] = 'the mod rocketchat recyclebin patch is a patch located in admin/tool/recyclebin/classes/course_bin.php file enabling to pass cmid and module instanceid to recyclebin item created event. It enables the deletion of remote Rocket.Chat groups'; $string['validationgroupnameregex'] = 'Rocket.Chat group validation name regular expression to remove invalid characters'; $string['validationgroupnameregex_desc'] = 'Moodle will replace every unauthorized caracters by _. This regexp is the exact negation of the Rocket.Chat server one concerning group name validation'; $string['embedded_display_mode'] = 'Rocket.Chat embedded display mode'; -$string['embedded_display_mode_desc'] = 'If checked, will remove left panel on Rocket.Chat web interface (hidding other channels)'; +$string['embedded_display_mode_desc'] = 'If checked, it will remove left panel on Rocket.Chat web interface (hidding other channels)'; $string['embedded_display_mode_setting'] = 'Rocket.Chat embedded display mode'; -$string['embedded_display_mode_setting_desc'] = 'If checked, will remove left panel on Rocket.Chat web interface (hidding other channels)'; +$string['embedded_display_mode_setting_desc'] = 'If checked, it will remove left panel on Rocket.Chat web interface (hidding other channels)'; $string['rocketchat:addinstance'] = 'Add a Rocket.Chat instance'; $string['rocketchat:candefineroles'] = 'Override role mapping through module instance definition'; $string['modulenameplural'] = 'Rocket.Chat instances'; $string['removemessages'] = 'Remove all messages'; $string['removeditem'] = 'removed messages on {$a->rocketchatid}'; -$string['datastransmittedtorc'] = 'datas transmitted to Rocketchat'; +$string['datastransmittedtorc'] = 'data transmitted to Rocketchat'; $string['privacy:metadata:mod_rocketchat:rocket_chat_server:username'] = 'User username'; $string['privacy:metadata:mod_rocketchat:rocket_chat_server:firstname'] = 'User firstname'; $string['privacy:metadata:mod_rocketchat:rocket_chat_server:lastname'] = 'User lastname'; $string['privacy:metadata:mod_rocketchat:rocket_chat_server:email'] = 'User email'; $string['privacy:metadata:mod_rocketchat:rocket_chat_server:rocketchatids'] = 'Rocket.Chat remote private groups ids where user is enrolled in'; -$string['privacy:metadata:mod_rocketchat:rocket_chat_server'] = 'Datas transmitted to remote Rocket.Chat servers'; +$string['privacy:metadata:mod_rocketchat:rocket_chat_server'] = 'Data transmitted to remote Rocket.Chat servers'; $string['connection-success'] = 'Connection succesfully establish'; $string['testconnection'] = 'Test connection to Rocket.Chat'; $string['testtitle'] = 'Rocket.Chat connection test.'; @@ -104,12 +104,12 @@ $string['rcgrouperror'] = 'Remote Rocket.Chat group can\'t be retrieved. Please contact your system administrator. Error code {$a}.'; $string['usernamehook'] = 'Activate username hook.'; $string['usernamehook_desc'] = 'By activating this option it will be possible to chang moodle username to fit Rocket.Chat username.
Create a hooklib.php file in the module rocketchat installation directory.
code a moodle_username_to_rocketchat function that will return the transformed moodle username to fit Rocket.Chat one.
hooklib-example.php is given as example.'; -$string['background_enrolment_task'] = 'Pass user enrolment/unenrolments in remote Rocket.Chat as background tasks.'; -$string['background_enrolment_task_desc'] = 'These to solve performance issue while enrolling large amounts of users.
This will prevent the enroller to wait on course enrolment page while enrolling/unenrolling large amount of users.
Choice of enrol cohort and flatfile, if enabled, are strongly advised'; +$string['background_enrolment_task'] = 'Pass user enrolment/unenrolments to remote Rocket.Chat as background tasks.'; +$string['background_enrolment_task_desc'] = 'This is to solve performance issue while enrolling large amounts of users.
This will prevent the enroller to wait on course enrolment page while enrolling/unenrolling large amount of users.
Choice of enrol cohort and flatfile, if enabled, are strongly advised'; $string['background_add_instance'] = 'Pass Rocket.Chat enrolments to background task while creating a new module instance'; -$string['background_add_instance_desc'] = 'This will prevent to wait on the module creation page'; +$string['background_add_instance_desc'] = 'This will prevent waiting of the module creation page'; $string['background_restore'] = 'Pass Rocket.Chat enrolments to background task while dupplicating a rocket.chat modules'; -$string['background_restore_desc'] = 'This will prevent to wait while dupplicating a Rocket.Chat module'; +$string['background_restore_desc'] = 'This will prevent waiting while dupplicating a Rocket.Chat module'; $string['background_synchronize'] = 'Pass Rocket.Chat enrolments to background task while synchronizing enrollees.'; $string['background_synchronize_desc'] = 'This occurs after a course or a Rocket.Chat module is restored from recyclebin, '; $string['background_user_update'] = 'Pass Rocket.Chat enrolments to background task while updating user informations such as activation/deactivation.'; @@ -135,4 +135,4 @@ $string['displaysection'] = 'Display settings'; $string['retentionsection'] = 'Message retention settings'; $string['rolessection'] = 'Roles definition settings'; -$string['warningapiauthchanges'] = 'Warning, Rocket.Chat moodle plugin changes in auth methods, Only token auth is now taken into acount.\nPlease change the Rocket.Chat plugin settings.'; \ No newline at end of file +$string['warningapiauthchanges'] = 'Warning, Rocket.Chat moodle plugin changes in auth methods, Only token auth is now taken into acount.\nPlease change the Rocket.Chat plugin settings.';