Skip to content

Commit 4c9bcfa

Browse files
committed
refactor: trainers -> teachers
1 parent 8e736de commit 4c9bcfa

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lang/en/qtype_questionpy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
$string['remove_packages_button'] = 'Remove Packages';
5151
$string['render_error_section'] = 'An error occurred';
5252
$string['render_warning_invalid_value'] = 'The last submission set the field {$a->name} to the value {$a->value}, but that option is no longer available. The available options are: {$a->availablevalues}.';
53-
$string['render_warnings_hint_contact_trainers'] = 'If you believe this to be in error, contact your trainers. They will also see this notice and may decide to override whichever score you receive.';
53+
$string['render_warnings_hint_contact_teachers'] = 'If you believe this to be in error, contact your teachers. They will also see this notice and may decide to override whichever score you receive.';
5454
$string['render_warnings_hint_editable'] = 'You may set the mentioned field(s) to a valid value, or leave them untouched to preserve the invalid value.';
5555
$string['request_error'] = 'The {$a->requestmethod} request to "{$a->uri}" failed with the error code "{$a->errorcode}" and'
5656
. ' status code {$a->statuscode} ({$a->reasonphrase}).';

renderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ protected function formulation_controls_feedback_in_iframe(question_attempt $qa,
205205
$warningshtml .= $this->output->render_from_template('qtype_questionpy/render_warnings', [
206206
'warnings' => $renderresult->warnings,
207207
'should_use_list' => count($renderresult->warnings) > 1,
208-
'should_show_hint_contact_trainers' => $isstudent,
208+
'should_show_hint_contact_teachers' => $isstudent,
209209
'should_show_hint_editable' => $isstudent && !$options->readonly,
210210
]);
211211
}

templates/render_warnings.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* warnings - List of invalid_option_warnings. The localize() method will be called.
2424
* should_use_list - To use an HTML list. Otherwise, just outputs paragraphs.
2525
* should_show_hint_editable - To show a hint about the possibility of fixing the invalid values.
26-
* should_show_hint_contact_trainers - To show a hint about contacting trainers.
26+
* should_show_hint_contact_teachers - To show a hint about contacting teachers.
2727
2828
Example context (json):
2929
{
@@ -32,7 +32,7 @@
3232
}],
3333
"should_use_list": false,
3434
"should_show_hint_editable": true,
35-
"should_show_hint_contact_trainers": true
35+
"should_show_hint_contact_teachers": true
3636
}
3737
}}
3838
<div class="alert alert-warning">
@@ -52,7 +52,7 @@
5252
{{#should_show_hint_editable}}
5353
<p>{{#str}} render_warnings_hint_editable, qtype_questionpy {{/str}}</p>
5454
{{/should_show_hint_editable}}
55-
{{#should_show_hint_contact_trainers}}
56-
<p>{{#str}} render_warnings_hint_contact_trainers, qtype_questionpy {{/str}}</p>
57-
{{/should_show_hint_contact_trainers}}
55+
{{#should_show_hint_contact_teachers}}
56+
<p>{{#str}} render_warnings_hint_contact_teachers, qtype_questionpy {{/str}}</p>
57+
{{/should_show_hint_contact_teachers}}
5858
</div>

0 commit comments

Comments
 (0)