. /** * Language file for local_mass_enroll, EN * * File local_mass_enroll.php * Encoding UTF-8 * * @package local_mass_enroll * * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} * @copyright 2012 onwards Patrick Pollet * @copyright 2015 onwards R.J. van Dongen * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $string['pluginname'] = 'Mass enrolments'; // Capabilities name required Moodle 2.3. $string['mass_enroll:enrol'] = 'Enrol users to a course by CSV file'; $string['mass_enroll:unenrol'] = 'Unenrol users from a course by CSV file'; $string['mass_enroll'] = 'Bulk enrolments'; $string['mass_unenroll'] = 'Bulk unenrolments'; $string['mass_enroll_info'] = '

With this option you are going to enrol a list of known users from a file with one account per line

The firstline the empty lines or unknown accounts will be skipped.

The file may contains several columns, separated by a comma, a semi-column or a tabulation.
The first one must contains a unique account identifier : idnumber (by default) login or email of the target user.
The second if present, contains the group name in wich you want that user be be added.
You may repeat this operation at will without damages, for example if you forgot the group for some users.

'; $string['mass_unenroll_info'] = '

With this option you are going to unenrol a list on users from a file with one account per line.

The firstline the empty lines or unknown accounts will be skipped.

The file may contains several columns, separated by a comma, a semi-column or a tabulation.
The first one must contains a unique account identifier : idnumber (by default) login or email of the target user.
Other columns, if present, will be ignored. Thus the file can be the same as the one user to mass enrol users into this course.
You may repeat this operation at will without damages, for example if you forgot some users to unenroll.

'; $string['enroll'] = 'Enrol them to my course'; $string['unenroll'] = 'Unenrol them from my course'; $string['mailreport'] = 'Send me a mail report'; $string['creategroups'] = 'Create group(s) if needed'; $string['creategroupings'] = 'Create grouping(s) if needed'; $string['firstcolumn'] = 'First column contains'; $string['roleassign'] = 'Role to assign'; $string['idnumber'] = 'Id number'; $string['username'] = 'Login'; $string['mail_enrolment_subject'] = 'Bulk enrolments on {$a}'; $string['mail_unenrolment_subject'] = 'Bulk unenrolments on {$a}'; $string['mail_enrolment'] = ' Hello, You just enroled the following list of users to your course \'{$a->course}\'. Here is a report of operations : {$a->report} Sincerly. '; $string['mail_unenrolment'] = ' Hello, You just unenroled the following list of users to your course \'{$a->course}\'. Here is a report of operations : {$a->report} Sincerly. '; $string['email_sent'] = 'email sent to {$a}'; $string['im:using_role'] = 'Enroling users as : {$a} '; $string['im:opening_file'] = 'Opening file : {$a} '; $string['im:user_unknown'] = '{$a} unknown - skipping line'; $string['im:already_in'] = '{$a} already enroled '; $string['im:enrolled_ok'] = '{$a} enroled '; $string['im:error_in'] = 'error enroling {$a}'; $string['im:not_in'] = '{$a} NOT enroled '; $string['im:unenrolled_ok'] = '{$a} unenroled '; $string['im:error_out'] = 'error unenroling {$a}'; $string['im:error_addg'] = 'error adding group {$a->groupe} to course {$a->courseid} '; $string['im:error_g_unknown'] = 'error unkown group {$a} '; $string['im:error_add_grp'] = 'error adding grouping {$a->groupe} to course {$a->courseid}'; $string['im:error_add_g_grp'] = 'error adding group {$a->groupe} to grouping {$a->groupe}'; $string['im:and_added_g'] = ' and added to Moodle\'s group {$a}'; $string['im:error_adding_u_g'] = 'error adding to group {$a}'; $string['im:already_in_g'] = ' already in group {$a}'; $string['im:stats_i'] = '{$a} enroled'; $string['im:stats_ui'] = '{$a} unenroled'; $string['im:stats_g'] = '{$a->nb} group(s) created : {$a->what}'; $string['im:stats_grp'] = '{$a->nb} grouping(s) created : {$a->what}'; $string['im:err_opening_file'] = 'error opening file {$a}'; $string['mass_enroll_help'] = '

Bulk enrolments

With this option you are going to enrol a list of known users from a file with one account per line

The firstline the empty lines or unknown accounts will be skipped.

The file may contains one or two columns, separated by a comma, a semi-column or a tabulation. You should prepare it from your usual spreadsheet program from official lists of students, for example, and add if needed a column with groups to which you want these users to be added. Finally export it as CSV. (*)

The first one must contains a unique account identifier : idnumber (by default) login or email of the target user. (**).

The second if present, contains the group name in wich you want that user to be added.

If the group name does not exist, it will be created in your course, together with a grouping of the same name to which the group will be added. .
This is due to the fact that in Moodle, activities can be restricted to groupings (group of groups), not groups, so it will make your life easier. (this requires that groupings are enabled by your site administrator).

You may have in the same file different target groups or no groups for some accounts

You may unselect options to create groups and groupings if you are sure that they already exist in the course.

By default the users will be enroled as students but you may select other roles that you are allowed to manage (teacher, non editing teacher or any custom roles)

You may repeat this operation at will without dammages, for example if you forgot or mispelled the target group.

Sample files

Id numbers and a group name to be created in needed in the course (*)
"idnumber";"group"
" 2513110";" 4GEN"
" 2512334";" 4GEN"
" 2314149";" 4GEN"
" 2514854";" 4GEN"
" 2734431";" 4GEN"
" 2514934";" 4GEN"
" 2631955";" 4GEN"
" 2512459";" 4GEN"
" 2510841";" 4GEN"
only idnumbers (**)
idnumber
2513110
2512334
2314149
2514854
2734431
2514934
2631955
only emails (**)
email
toto@insa-lyon.fr
titi@]insa-lyon.fr
tutu@insa-lyon.fr
usernames and groups, separated by a tab :
username	 group
ppollet      groupe_de_test              will be in that group
codet        groupe_de_test              also him
astorck      autre_groupe                will be in another group
yjayet                                   no group for this one
                                         empty line skipped
unknown                                  unknown account skipped

(*) : double quotes and spaces, added by some spreadsheet programs will be removed.

(**) : target account must exist in Moodle ; this is normally the case if Moodle is synchronized with some external directory (LDAP...)

'; $string['mass_unenroll_help'] = '

Bulk unenrolments

With this option you are going to unenrol a list of users from a file with one account per line

The firstline the empty lines or unknown accounts will be skipped.

The file may contains several columns, separated by a comma, a semi-column or a tabulation. You should prepare it from your usual spreadsheet program from an official lists of students, for example, by exporting the course gradebook to CSV, or use the very same file as the one used to mass enrol users. (*)

The first one must contains a unique account identifier : idnumber (by default) login or email of the target user. (**).

All other columns will be ignored.

By default the users will be enroled as students but you may select other roles that you are allowed to manage (teacher, non editing teacher or any custom roles)

You may repeat this operation at will without dammages, for example if you forgot some users to unenrol.

(*) : double quotes and spaces, added by some spreadsheet programs will be removed.

(**) : target account must exist in Moodle and be enrolled to this course.

'; $string['massenrollsettings'] = 'Mass enrol settings'; $string['localmassenrolldefaults'] = 'Mass enrol default settings'; $string['enablemassenrol'] = 'Allow mass enrolment from course administration'; $string['enablemassenrol_help'] = 'Check this option to allow extension for mass enrolment in the course administration tree'; $string['enablemassunenrol'] = 'Allow mass unenrolment from course administration'; $string['enablemassunenrol_help'] = 'Check this option to allow extension for mass unenrolment in the course administration tree'; $string['localmassenrollextensions'] = 'Menu extension settings'; $string['mailreportdefault'] = 'Send reports default'; $string['mailreportdefault_help'] = 'Configure the default setting for sending reports for the bulk (un)enrolment forms';