From 5ea0d026b054ddf71268ecbd2691a3181a487925 Mon Sep 17 00:00:00 2001 From: "pau.ferrer-ocana" Date: Wed, 29 Oct 2014 09:45:57 +0100 Subject: [PATCH] MDL-47875 choice: chat module strings not required from Choice anymore AMOS BEGIN CPY [chatintro,mod_chat],[description,mod_choice] AMOS END --- mod/choice/lang/en/choice.php | 1 + mod/choice/mod_form.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/choice/lang/en/choice.php b/mod/choice/lang/en/choice.php index cb92597f494..66524e1b26c 100644 --- a/mod/choice/lang/en/choice.php +++ b/mod/choice/lang/en/choice.php @@ -58,6 +58,7 @@ $string['choice:readresponses'] = 'Read responses'; $string['choicesaved'] = 'Your choice has been saved'; $string['choicetext'] = 'Choice text'; $string['chooseaction'] = 'Choose an action ...'; +$string['description'] = 'Description'; $string['limit'] = 'Limit'; $string['limitno'] = 'Limit {no}'; $string['limitanswers'] = 'Limit the number of responses allowed'; diff --git a/mod/choice/mod_form.php b/mod/choice/mod_form.php index a97c7ebc10f..480daa59114 100644 --- a/mod/choice/mod_form.php +++ b/mod/choice/mod_form.php @@ -24,7 +24,7 @@ class mod_choice_mod_form extends moodleform_mod { $mform->addRule('name', null, 'required', null, 'client'); $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client'); - $this->add_intro_editor(true, get_string('chatintro', 'chat')); + $this->add_intro_editor(true, get_string('description', 'choice')); $mform->addElement('select', 'display', get_string("displaymode","choice"), $CHOICE_DISPLAY);