Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added language for French #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions block_course_contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 4 additions & 0 deletions lang/en/block_course_contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
37 changes: 37 additions & 0 deletions lang/fr/block_course_contacts.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* 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';