mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-72488 lang: Fix hard-coded English string at grades import form
Also adding a help tooltip as this seems to be the most important field in the form and yet it was the only one without a help.
This commit is contained in:
parent
80c48e12ce
commit
ef8cda836f
2 changed files with 12 additions and 1 deletions
|
@ -49,7 +49,9 @@ class gradeimport_direct_import_form extends moodleform {
|
|||
|
||||
$mform->addElement('header', 'general', get_string('pluginname', 'gradeimport_direct'));
|
||||
// Data upload from copy/paste.
|
||||
$mform->addElement('textarea', 'userdata', 'Data', array('rows' => 10, 'class' => 'gradeimport_data_area'));
|
||||
$mform->addElement('textarea', 'userdata', get_string('importdata', 'core_grades'),
|
||||
array('rows' => 10, 'class' => 'gradeimport_data_area'));
|
||||
$mform->addHelpButton('userdata', 'importdata', 'core_grades');
|
||||
$mform->addRule('userdata', null, 'required');
|
||||
$mform->setType('userdata', PARAM_RAW);
|
||||
|
||||
|
|
|
@ -411,6 +411,15 @@ $string['importcsv_help'] = 'Grades can be imported via a CSV file with format a
|
|||
A file of the correct format can be obtained by first exporting some grades. The file can then be edited and saved as a CSV file.';
|
||||
$string['importcsv_link'] = 'grade/import/csv/index';
|
||||
$string['importcustom'] = 'Import as custom outcomes (only this course)';
|
||||
$string['importdata'] = 'Data';
|
||||
$string['importdata_help'] = 'Grades may be pasted directly from an OpenDocument or Excel spreadsheet with format as follows:
|
||||
|
||||
* At least one column should contain user identity data - username, email address or ID number.
|
||||
* Other columns should have headings as for existing activities or grade items.
|
||||
|
||||
A correctly formatted spreadsheet can be obtained by first exporting some grades. The spreadsheet can then be edited to add more grades and saved.
|
||||
|
||||
Select and copy the columns you want to import from the spreadsheet and then paste them into this field.';
|
||||
$string['importerror'] = 'An error occurred, this script wasn\'t called with the right parameters.';
|
||||
$string['importfailed'] = 'Import failed. No data was imported.';
|
||||
$string['importfeedback'] = 'Import feedback';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue