Gitlab CSE Unil

Commit 1f059165 authored by M. Chardon's avatar M. Chardon
Browse files

correction github, strings en dur

parent e80d57a6
......@@ -254,7 +254,3 @@ if ($action === 'pollconversions') {
echo json_encode($response);
die();
}
/*function getHtmlLink($url, $text) {
return '<a href="' . $url . '">' . $text . '</a>';
}*/
......@@ -36,7 +36,7 @@ class axis_form extends moodleform {
protected function definition() {
$mform = $this->_form;
$mform->_formName = "tutu";
$mform->addElement('text', 'label', 'Nom'); // Add elements to your form
$mform->addElement('text', 'label', get_string('axis_label', "assignfeedback_editpdfplus")); // Add elements to your form
$mform->setType('label', PARAM_TEXT); //Set type of element
$mform->addElement('hidden', 'axeid', ''); // Add elements to your form
$mform->setType('hidden', PARAM_INT); //Set type of element
......
......@@ -141,7 +141,7 @@ $string['adminaxisexport_ok'] = 'Export as model';
$string['adminaxisexport_ko'] = 'Cancel';
$string['admintools'] = 'Tools';
$string['adminaddtool'] = 'Add a new tool';
$string['admintoolboxaction'] = 'Action';
$string['admintoolboxaction'] = 'Actions';
$string['admintoolboxtypetool'] = 'Tool type';
$string['admintoolboxtypetool_type'] = 'Type';
$string['admintoolboxtoolbardisplay'] = 'Toolbar display';
......@@ -202,4 +202,6 @@ The assignment correction has been updated.
You can access the document following this link: {$a->url}';
$string['delete_model_question'] = 'Do you want to delete this model?';
$string['feedback_configuration'] = 'Feedback: configuration';
$string['axis_label'] = 'Name';
$string['axis_add'] = 'Add a new axis';
......@@ -140,7 +140,7 @@ $string['adminaxisexport_ok'] = 'Exporter comme modèle';
$string['adminaxisexport_ko'] = 'Annuler';
$string['admintools'] = 'Outils';
$string['adminaddtool'] = 'Ajout d\'un nouvel outil';
$string['admintoolboxaction'] = 'Action';
$string['admintoolboxaction'] = 'Actions';
$string['admintoolboxtypetool'] = 'Type d\'outil';
$string['admintoolboxtypetool_type'] = 'Type';
$string['admintoolboxtoolbardisplay'] = 'Affichage barre d\'outil';
......@@ -201,3 +201,6 @@ The assignment correction has been updated.
You can access the document following this link: {$a->url}';
$string['delete_model_question'] = 'Êtes-vous sûr de vouloir supprimer ce model ?';
$string['feedback_configuration'] = 'Feedback : configuration';
$string['axis_label'] = 'Nom';
$string['axis_add'] = 'Add a new axis';
......@@ -82,7 +82,7 @@ function assignfeedback_editpdfplus_pluginfile($course, $cm, context $context, $
function assignfeedback_editpdfplus_extend_navigation_course(navigation_node $navigation, stdClass $course, context_course $context) {
if (has_capability('assignfeedback/editpdfplus:managetools', $context)) {
$url = new moodle_url('/mod/assign/feedback/editpdfplus/view_admin.php', array('id' => $context->id));
$feedbackadminnode = navigation_node::create('Feedback : configuration', $url, navigation_node::TYPE_CUSTOM, 'Bars d\'outils', 'editpdfplusadmin', new pix_icon('i/grades', ""));
$feedbackadminnode = navigation_node::create(get_string('feedback_configuration', "assignfeedback_editpdfplus"), $url, navigation_node::TYPE_CUSTOM, 'Bars d\'outils', 'editpdfplusadmin', new pix_icon('i/grades', ""));
$navigation->add_node($feedbackadminnode);
}
}
......
......@@ -121,7 +121,7 @@ class assign_feedback_editpdfplus_admin {
$formAxis = new axis_form(null, array('id' => $this->context->id), null, null, array('id' => "assignfeedback_editpdfplus_add_axis")); //Form processing and displaying is done here
$formAxis->set_data($toform);
$formAxis->id = "assignfeedback_editpdfplus_add_axis";
$formAxis->title = "Ajouter un nouvel axe";
$formAxis->title = get_string('axis_add', 'assignfeedback_editpdfplus');
$formAxis->action = "add";
}
$renderer = $PAGE->get_renderer(self::PLUGIN_NAME);
......
......@@ -38,7 +38,7 @@
{{#tool.id}}<div id="editpdlplus_tool_label" class="btn alert-info">{{tool.label}}</div>{{/tool.id}}
</td>
<td style="text-align: right;padding-left: 20px;">
{{# str }} admintoolboxaction, assignfeedback_editpdfplus {{/ str }}{{#tool.id}}s{{/tool.id}} :
{{# str }} admintoolboxaction, assignfeedback_editpdfplus {{/ str }}
<div class="btn-group">
<button type="button" class="btn" id="toolFormSubmit"><i class="fa fa-{{#tool.id}}save{{/tool.id}}{{^tool.id}}save{{/tool.id}}" aria-hidden="true"></i></button>
{{#tool.id}}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment