</tr>
<tr>
<th colspan="2" scope="col">
- <?php print_string("field_mapping", "enrol_database") ?>
+ <?php print_string("remote_fields_mapping", "enrol_database") ?>
</th>
</tr>
<tr>
<?php print_string("template","enrol_database") ?>
</td>
</tr>
-<tr>
- <td colspan="2">
- <?php print_string("general_options", "enrol_database") ?>
- </td>
-</tr>
+
</table>
$string['course_id'] = 'The name of the field where the course ID is stored. The values of this field are used to match those in the \"enrol_db_l_coursefield\" field in Moodle\'s course table.';
$string['course_shortname'] = 'The name of the field where the course shortname is stored.';
$string['course_table'] = 'Then name of the table where we expect to find the course details in (short name, fullname, ID, etc.)';
+$string['dbtype'] = 'Database type';
+$string['dbhost'] = 'Server IP name or number';
+$string['dbuser'] = 'Server user';
+$string['dbpass'] = 'Server password';
+$string['dbname'] = 'Database name';
+$string['dbtable'] = 'Database table';
+$string['defaultcourseroleid'] = 'The role that will be assigned by default if no other role is specified.';
$string['description'] = 'You can use a external database (of nearly any kind) to control your enrolments. It is assumed your external database contains a field containing a course ID, and a field containing a user ID. These are compared against fields that you choose in the local course and user tables.';
$string['enrolname'] = 'External Database';
+$string['enrol_database_autocreation_settings'] = 'Auto-creation of new courses';
$string['general_options'] = 'General Options';
$string['host'] = 'Database server hostname.';
-$string['local_coursefield'] = 'The name of the field in the course table that we are using to match entries in the remote database (eg idnumber).';
+$string['localcoursefield'] = 'The name of the field in the course table that we are using to match entries in the remote database (eg idnumber).';
+$string['localrolefield'] = 'The name of the field in the roles table that we are using to match entries in the remote database (eg shortname).';
+$string['localuserfield'] = 'The name of the field in the user table that we are using to match entries in the remote database (eg idnumber).';
$string['local_fields_mapping'] = 'Moodle (local) database fields';
$string['name'] = 'The specific database to use.';
$string['pass'] = 'Password to access the server.';
$string['remote_fields_mapping'] = 'Enrolment (remote) database fields.';
+$string['remotecoursefield'] = 'The name of the field in the remote table that we are using to match entries in the course table.';
+$string['remoterolefield'] = 'The name of the field in the remote table that we are using to match entries in the roles table.';
+$string['remoteuserfield'] = 'The name of the field in the remote table that we are using to match entries in the user table.';
$string['server_settings'] = 'External Database Server Settings';
$string['student_coursefield'] = 'The name of the field in the student enrolment table that we expect to find the course ID in.';
$string['student_l_userfield'] = 'The name of the field in the local user table that we use to match the user to a remote record for students (eg idnumber).';