MDL-13114 tool_uploadcourse: ID number errors handling
[moodle.git] / admin / tool / uploadcourse / lang / en / tool_uploadcourse.php
CommitLineData
3a0fda69
PH
1<?php
2// This file is part of Moodle - http://moodle.org/
3//
4// Moodle is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// Moodle is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
17/**
18 * Strings for component 'tool_uploadcourse', language 'en', branch 'MOODLE_22_STABLE'
19 *
20 * @package tool_uploadcourse
21 * @subpackage uploadcourse
22 * @copyright 2011 Petr Skoda {@link http://skodak.org}
23 * @copyright 2011 Piers Harding
24 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25 */
26
1d1898ac
FM
27$string['invalidshortname'] = 'Invalid shortname';
28$string['cannotdeletecoursenotexist'] = 'Cannot delete a course that does not exist';
29$string['cannotgenerateshortnameupdatemode'] = 'Cannot generate a shortname when updates are allowed';
30$string['cannotreadbackupfile'] = 'Cannot read the backup file';
31$string['cannotrenamecoursenotexist'] = 'Cannot rename a course that does not exist';
32$string['cannotrenameidnumberconflict'] = 'Cannot rename the course, the ID number conflicts with an existing course';
33$string['cannotrenameshortnamealreadyinuse'] = 'Cannot rename the course, the shortname is already used';
34$string['canonlyrenameinupdatemode'] = 'Can only rename a course when update is allowed';
35$string['canonlyresetcourseinupdatemode'] = 'Can only reset a course in update mode';
36$string['couldnotresolvecatgorybyid'] = 'Could not resolve category by ID';
37$string['couldnotresolvecatgorybyidnumber'] = 'Could not resolve category by ID number';
38$string['couldnotresolvecatgorybypath'] = 'Could not resolve category by path';
39$string['coursecreated'] = 'Course created';
40$string['coursedeleted'] = 'Course deleted';
41$string['coursedeletionnotallowed'] = 'Course deletion is not allowed';
42$string['coursedoesnotexistandcreatenotallowed'] = 'The course does not exist and creating course is not allowed';
43$string['courseexistsanduploadnotallowed'] = 'The course exists and update are not allowed';
44$string['courseidnumberincremented'] = 'Course ID number incremented {$a->from} -> {$a->to}';
45$string['courserenamed'] = 'Course renamed';
46$string['courserenamingnotallowed'] = 'Course renaming is not allowed';
47$string['coursereset'] = 'Course reset';
48$string['courseresetnotallowed'] = 'Course reset now allowed';
49$string['courserestored'] = 'Course restored';
50$string['courseshortnameincremented'] = 'Course shortname incremented {$a->from} -> {$a->to}';
5b2f7718 51$string['courseshortnamegenerated'] = 'Course shortname generated: {$a}';
1d1898ac
FM
52$string['coursetorestorefromdoesnotexist'] = 'The course to restore from does not exist';
53$string['courseupdated'] = 'Course updated';
5b2f7718 54$string['csvline'] = 'Line';
1d1898ac
FM
55$string['errorwhilerestoringcourse'] = 'Error while restoring the course';
56$string['errorwhiledeletingcourse'] = 'Error while deleting the course';
57$string['generatedshortnameinvalid'] = 'The generated shortname is invalid';
58$string['generatedshortnamealreadyinuse'] = 'The generated shortname is already in use';
5b2f7718 59$string['id'] = 'ID';
1d1898ac
FM
60$string['invalidbackupfile'] = 'Invalid backup file';
61$string['invalidcourseformat'] = 'Invalid course format';
62$string['invalidroles'] = 'Invalid role names: {$a}';
63$string['missingmandatoryfields'] = 'Missing value for mandatory fields: {$a}';
64$string['missingshortnamenotemplate'] = 'Missing shortname and shortname template not set';
5b2f7718 65$string['outcome'] = 'Outcome';
1d1898ac 66$string['updatemodedoessettonothing'] = 'Update mode does not allow anything to be updated';
5b2f7718 67$string['uploadcoursesresult'] = 'Upload courses results';
1d1898ac
FM
68$string['unknownimportmode'] = 'Unknown import mode';
69
3a0fda69
PH
70$string['csvfileerror'] = 'There is something wrong with the format of the CSV file - please check the number of headings and columns match, and that the delimiter and file encoding are correct (don\t use comma-quoted as Moodle does not support it): {$a}';
71$string['allowdeletes'] = 'Allow deletes';
72$string['allowrenames'] = 'Allow renames';
73$string['csvdelimiter'] = 'CSV delimiter';
74$string['defaultvalues'] = 'Default values';
75$string['deleteerrors'] = 'Delete errors';
76$string['encoding'] = 'Encoding';
77$string['errors'] = 'Errors';
78$string['invalidinput'] = 'You must specify a valid combination of --action and --mode';
79$string['nochanges'] = 'No changes';
80$string['pluginname'] = 'Course upload';
81$string['renameerrors'] = 'Rename errors';
82$string['requiredtemplate'] = 'Required. You may use template syntax here (%l = lastname, %f = firstname, %u = coursename). See help for details and examples.';
83$string['rowpreviewnum'] = 'Preview rows';
84$string['uploadpicture_badcoursefield'] = 'The course attribute specified is not valid. Please, try again.';
85$string['uploadpicture_cannotmovezip'] = 'Cannot move zip file to temporary directory.';
86$string['uploadpicture_cannotprocessdir'] = 'Cannot process unzipped files.';
87$string['uploadpicture_cannotsave'] = 'Cannot save picture for course {$a}. Check original picture file.';
88$string['uploadpicture_cannotunzip'] = 'Cannot unzip pictures file.';
89$string['uploadpicture_invalidfilename'] = 'Picture file {$a} has invalid characters in its name. Skipping.';
90$string['uploadpicture_overwrite'] = 'Overwrite existing course pictures?';
91$string['uploadpicture_coursefield'] = 'Course attribute to use to match pictures:';
92$string['uploadpicture_coursenotfound'] = 'Course with a \'{$a->coursefield}\' value of \'{$a->coursevalue}\' does not exist. Skipping.';
93$string['uploadpicture_courseskipped'] = 'Skipping course {$a} (already has a picture).';
94$string['uploadpicture_courseupdated'] = 'Picture updated for course {$a}.';
95$string['uploadpictures'] = 'Upload course pictures';
96$string['uploadpictures_help'] = 'Course pictures can be uploaded as a zip file of image files. The image files should be named chosen-course-attribute.extension, for example course1234.jpg for a course with coursename course1234.';
97$string['uploadcourses'] = 'Upload courses';
98$string['uploadcourses_help'] = 'Courses may be uploaded (and optionally enrolled in courses) via text file. The format of the file should be as follows:
99
100* Each line of the file contains one record
101* Each record is a series of data separated by commas (or other delimiters)
102* The first record contains a list of fieldnames defining the format of the rest of the file
103* Required fieldnames are coursename, password, firstname, lastname, email';
104$string['uploadcoursespreview'] = 'Upload courses preview';
3a0fda69
PH
105$string['courseupdated'] = 'Course updated';
106$string['courseuptodate'] = 'Course up-to-date';
107$string['coursedeleted'] = 'Course deleted';
108$string['courserenamed'] = 'Course renamed';
109$string['coursescreated'] = 'Courses created';
110$string['coursesdeleted'] = 'Courses deleted';
111$string['coursesrenamed'] = 'Courses renamed';
112$string['coursesskipped'] = 'Courses skipped';
113$string['coursesupdated'] = 'Courses updated';
114$string['coursenotadded'] = 'Course not added - already exists';
115$string['coursenotaddederror'] = 'Course not added - error';
116$string['coursenotdeletederror'] = 'Course not deleted - error';
117$string['coursenotdeletedmissing'] = 'Course not deleted - missing';
118$string['coursenotdeletedoff'] = 'Course not deleted - delete off';
119$string['coursenotdeletedadmin'] = 'Course not deleted - no admin access';
120$string['coursenotupdatederror'] = 'Course not updated - error';
121$string['coursenotupdatednotexists'] = 'Course not updated - does not exist';
122$string['coursenotupdatedadmin'] = 'Course not updated - no admin';
123$string['coursenotrenamedexists'] = 'Course not renamed - target exists';
124$string['coursenotrenamedmissing'] = 'Course not renamed - source missing';
125$string['coursenotrenamedoff'] = 'Course not renamed - renaming off';
126$string['coursenotrenamedadmin'] = 'Course not renamed - no admin';
127$string['invalidvalue'] = 'Invalid value for field {$a}';
128$string['shortnamecourse'] = 'Shortname';
129$string['shortnamecourse_help'] = 'The short name of the course is displayed in the navigation. You may use template syntax here (%f = fullname, %i = idnumber), or enter an initial value that is incremented. See help for details and examples.';
130$string['idnumbernotunique'] = 'idnumber is not unique';
131$string['ccbulk'] = 'Select for bulk operations';
132$string['ccbulkall'] = 'All courses';
133$string['ccbulknew'] = 'New courses';
134$string['ccbulkupdated'] = 'Updated courses';
3a0fda69
PH
135$string['cclegacy1role'] = '(Original Student) typeN=1';
136$string['cclegacy2role'] = '(Original Teacher) typeN=2';
137$string['cclegacy3role'] = '(Original Non-editing teacher) typeN=3';
138$string['ccnoemailduplicates'] = 'Prevent email address duplicates';
139$string['ccoptype'] = 'Upload type';
140$string['ccoptype_addinc'] = 'Add all, append number to shortnames if needed';
141$string['ccoptype_addnew'] = 'Add new only, skip existing courses';
142$string['ccoptype_addupdate'] = 'Add new and update existing courses';
143$string['ccoptype_update'] = 'Update existing courses only';
144$string['ccpasswordcron'] = 'Generated in cron';
145$string['ccpasswordnew'] = 'New course password';
146$string['ccpasswordold'] = 'Existing course password';
147$string['reset'] = 'Reset course after upload';
148$string['ccstandardshortnames'] = 'Standardise shortnames';
149$string['ccupdateall'] = 'Override with file and defaults';
150$string['ccupdatefromfile'] = 'Override with file';
151$string['ccupdatemissing'] = 'Fill in missing from file and defaults';
152$string['ccupdatetype'] = 'Existing course details';
153$string['ccshortnametemplate'] = 'Shortname template';
154$string['ccfullnametemplate'] = 'Fullname template';
155$string['ccidnumbertemplate'] = 'Idnumber template';
156$string['missingtemplate'] = 'Template not found';
157$string['missing'] = 'missing';
158$string['incorrectformat'] = 'Invalid format specified';
159$string['incorrecttemplatefile'] = 'Template file not found';
160$string['invalidenrolmethod'] = 'Invalid enrolment method';
161$string['invalidcsvfile'] = 'Invalid input CSV file';
162$string['invalidaction'] = 'Invalid action selected';
163$string['invalidmode'] = 'Invalid mode selected';
164$string['invalidtemplatefile'] = 'Invalid template file';
165$string['invalidencoding'] = 'Invalid encoding';
166$string['invalidcategory'] = 'Invalid category';
167$string['coursetemplatename'] = 'Course template shortname';
168$string['coursetemplatename_help'] = 'Select an existing course shortname to use as a template for the creation of all courses.';
169$string['templatefile'] = 'Template backup file';
170$string['invalidbackupfile'] = 'Invalid backup file';
171