You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
276 lines
9.8 KiB
276 lines
9.8 KiB
<?php
|
|
// This file is part of Moodle - http://moodle.org/
|
|
//
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
/**
|
|
* 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 <rogier@sebsoft.nl>
|
|
* @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'] = '
|
|
<p>
|
|
With this option you are going to enrol a list of known users from a file with one account per line
|
|
</p>
|
|
<p>
|
|
<b> The firstline </b> the empty lines or unknown accounts will be skipped. </p>
|
|
<p>
|
|
The file may contains several columns, separated by a comma, a semi-column or a tabulation.
|
|
<br/>
|
|
<b>The first one must contains a unique account identifier : idnumber (by default) login or email </b> of the target user. <br/>
|
|
|
|
The second <b>if present,</b> contains the group name in wich you want that user be be added. <br/>
|
|
|
|
You may repeat this operation at will without damages, for example if you forgot the group for some users.
|
|
</p>
|
|
';
|
|
|
|
$string['mass_unenroll_info'] = '
|
|
<p>
|
|
With this option you are going to unenrol a list on users from a file with one account per line.
|
|
</p>
|
|
<p>
|
|
<b> The firstline </b> the empty lines or unknown accounts will be skipped. </p>
|
|
</p>
|
|
<p>
|
|
The file may contains several columns, separated by a comma, a semi-column or a tabulation.
|
|
<br/>
|
|
<b>The first one must contains a unique account identifier : idnumber (by default) login or email </b> of the target user. <br/>
|
|
|
|
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.<br/>
|
|
|
|
You may repeat this operation at will without damages, for example if you forgot some users to unenroll.
|
|
</p>
|
|
';
|
|
|
|
$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'] = '
|
|
<h1>Bulk enrolments</h1>
|
|
|
|
<p>
|
|
With this option you are going to enrol a list of known users from a file with one account per line
|
|
</p>
|
|
<p>
|
|
<b> The firstline </b> the empty lines or unknown accounts will be skipped. </p>
|
|
|
|
<p>
|
|
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. (*)</p>
|
|
|
|
<p>
|
|
<b> The first one must contains a unique account identifier </b>: idnumber (by default) login or email of the target user. (**). </p>
|
|
|
|
<p>
|
|
The second <b>if present,</b> contains the group name in wich you want that user to be added. </p>
|
|
|
|
<p>
|
|
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.
|
|
.<br/>
|
|
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).
|
|
|
|
<p>
|
|
You may have in the same file different target groups or no groups for some accounts
|
|
</p>
|
|
|
|
<p>
|
|
You may unselect options to create groups and groupings if you are sure that they already exist in the course.
|
|
</p>
|
|
|
|
<p>
|
|
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)
|
|
</p>
|
|
|
|
<p>
|
|
You may repeat this operation at will without dammages, for example if you forgot or mispelled the target group.
|
|
</p>
|
|
|
|
|
|
<h2> Sample files </h2>
|
|
|
|
Id numbers and a group name to be created in needed in the course (*)
|
|
<pre>
|
|
"idnumber";"group"
|
|
" 2513110";" 4GEN"
|
|
" 2512334";" 4GEN"
|
|
" 2314149";" 4GEN"
|
|
" 2514854";" 4GEN"
|
|
" 2734431";" 4GEN"
|
|
" 2514934";" 4GEN"
|
|
" 2631955";" 4GEN"
|
|
" 2512459";" 4GEN"
|
|
" 2510841";" 4GEN"
|
|
</pre>
|
|
|
|
only idnumbers (**)
|
|
<pre>
|
|
idnumber
|
|
2513110
|
|
2512334
|
|
2314149
|
|
2514854
|
|
2734431
|
|
2514934
|
|
2631955
|
|
</pre>
|
|
|
|
only emails (**)
|
|
<pre>
|
|
email
|
|
toto@insa-lyon.fr
|
|
titi@]insa-lyon.fr
|
|
tutu@insa-lyon.fr
|
|
</pre>
|
|
|
|
usernames and groups, separated by a tab :
|
|
|
|
<pre>
|
|
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
|
|
</pre>
|
|
|
|
<p>
|
|
<span <font color=\'red\'>(*) </font></span>: double quotes and spaces, added by some spreadsheet programs will be removed.
|
|
</p>
|
|
|
|
<p>
|
|
<span <font color=\'red\'>(**) </font></span>: target account must exist in Moodle ; this is normally the case if Moodle is synchronized with
|
|
some external directory (LDAP...)
|
|
</p>
|
|
';
|
|
|
|
|
|
$string['mass_unenroll_help'] = '
|
|
<h1>Bulk unenrolments</h1>
|
|
|
|
<p>
|
|
With this option you are going to unenrol a list of users from a file with one account per line
|
|
</p>
|
|
<p>
|
|
<b> The firstline </b> the empty lines or unknown accounts will be skipped. </p>
|
|
|
|
<p>
|
|
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. (*)</p>
|
|
|
|
<p>
|
|
<b> The first one must contains a unique account identifier </b>: idnumber (by default) login or email of the target user. (**). </p>
|
|
|
|
<p>
|
|
All other columns will be ignored. </p>
|
|
|
|
|
|
<p>
|
|
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)
|
|
</p>
|
|
|
|
<p>
|
|
You may repeat this operation at will without dammages, for example if you forgot some users to unenrol.
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
<span <font color=\'red\'>(*) </font></span>: double quotes and spaces, added by some spreadsheet programs will be removed.
|
|
</p>
|
|
|
|
<p>
|
|
<span <font color=\'red\'>(**) </font></span>: target account must exist in Moodle and be enrolled to this course.
|
|
</p>
|
|
';
|
|
$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';
|