diff --git a/lang/en/local_ass_type.php b/lang/en/local_ass_type.php
index 5329c46..dea6133 100644
--- a/lang/en/local_ass_type.php
+++ b/lang/en/local_ass_type.php
@@ -25,5 +25,12 @@
defined('MOODLE_INTERNAL') || die();
+$string['defaultoption'] = 'Select an option';
+$string['editinsits'] = 'Edit activity SITS link';
+$string['fieldlabel'] = 'Formative or summative?';
+$string['formativeoption'] = 'Formative - does not contribute to course mark';
+$string['info'] = 'Summative activities count towards the course mark in SITS and are flagged to learners as mandatory.';
$string['pluginname'] = 'Assessment type';
-$string['privacy:metadata'] = 'Assessment type does not store any personal data.';
\ No newline at end of file
+$string['privacy:metadata'] = 'Assessment type does not store any personal data.';
+$string['summativeoption'] = 'Summative - counts towards course mark and is mapped in SITS';
+
diff --git a/lib.php b/lib.php
index ef0a363..f47e04e 100644
--- a/lib.php
+++ b/lib.php
@@ -87,9 +87,9 @@ function local_ass_type_coursemodule_standard_elements($formwrapper, $mform) {
// Mform element.
$options = [];
- $options[''] = 'Select an option';
- $options['0'] = 'Formative - does not contribute to course mark';
- $options['1'] = 'Summative - counts towards course mark and is mapped in SITS';
+ $options[''] = get_string('defaultoption', 'local_ass_type');
+ $options['0'] = get_string('formativeoption', 'local_ass_type');
+ $options['1'] = get_string('summativeoption', 'local_ass_type');
$attributes = [];
$attributes['required'] = 'required';
@@ -97,7 +97,7 @@ function local_ass_type_coursemodule_standard_elements($formwrapper, $mform) {
if ($sitsmapped) {
$attributes['disabled'] = 'disabled';
}
- $select = $mform->createElement('select', 'type', 'Formative or summative?', $options, $attributes);
+ $select = $mform->createElement('select', 'assessment_type', get_string('fieldlabel','local_ass_type'), $options, $attributes);
// Set to summative when sits mapped.
if ($sitsmapped) {
@@ -115,16 +115,17 @@ function local_ass_type_coursemodule_standard_elements($formwrapper, $mform) {
// Link to edit when cm exists.
// TODO - lang string.
if ($cmid) {
- $link .= '
- Edit activity SITS link
- ';
+ $link = '
+ '
+ . get_string('editinsits', 'local_ass_type') .
+ '';
}
$info = $mform->createElement('html',
- '