diff --git a/block_course_contacts.php b/block_course_contacts.php index a17201a..063b1f7 100755 --- a/block_course_contacts.php +++ b/block_course_contacts.php @@ -219,12 +219,12 @@ public function get_content() { $clist = array(); foreach ($roles as $key => $role) { //This sets views the Student - if($roles[$key] === "Student"){ + if($roles[$key] === get_string('Student', 'block_course_contacts')){ $student_role_id_enable = 'role_'.$key; $this->config->$student_role_id_enable = 1; } //This views the Teacher - if($roles[$key] === "Teacher"){ + if($roles[$key] === get_string('Teacher','block_course_contacts')){ $teacher_role_id_enable = 'role_'.$key; $this->config->$teacher_role_id_enable = 1; } diff --git a/lang/en/block_course_contacts.php b/lang/en/block_course_contacts.php index 237ecc0..4584c56 100755 --- a/lang/en/block_course_contacts.php +++ b/lang/en/block_course_contacts.php @@ -70,3 +70,7 @@ $string['to'] = 'To'; $string['touid'] = 'Recipient ID'; $string['privacy:metadata'] = 'The Course Contacts block does not store any individual user data.'; + +//Custom +$string['Student'] = 'Student'; +$string['Teacher'] = 'Teacher'; \ No newline at end of file diff --git a/lang/fr/block_course_contacts.php b/lang/fr/block_course_contacts.php new file mode 100755 index 0000000..628d543 --- /dev/null +++ b/lang/fr/block_course_contacts.php @@ -0,0 +1,37 @@ +. + +/** + * Block Course_Contacts language file. + * + * @package block_course_contacts + * @author Mark Ward + * 2020 Richard Oelmann + * @copyright Mark Ward + * 2020 R. Oelmann + * + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +defined('MOODLE_INTERNAL') || die; + +$string['alphabetical'] = 'Alphabetical'; +$string['course_contacts'] = 'Course Contacts'; + +//Custom +$string['Student'] = 'Étudiant'; +$string['Teacher'] = 'Enseignant'; +