MDL-65987 mod_forum: Add string 'Advanced' for the advanced editor.

AMOS BEGIN
    CPY [advanced,moodle],[showadvancededitor,moodle]
   AMOS END
This commit is contained in:
Luca Bösch
2020-01-06 09:41:23 +08:00
committed by Andrew Nicols
parent 6e8eb9c0b2
commit da1a4189e1
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -1808,6 +1808,7 @@ $string['shortnameuser'] = 'User short name';
$string['shortsitename'] = 'Short name for site (eg single word)';
$string['show'] = 'Show';
$string['showactions'] = 'Show actions';
$string['showadvancededitor'] = 'Advanced';
$string['showadvancedsettings'] = 'Show advanced settings';
$string['showall'] = 'Show all {$a}';
$string['showallcourses'] = 'Show all courses';
+1 -1
View File
@@ -291,7 +291,7 @@ class mod_forum_post_form extends moodleform {
// Additional attribs to handle collapsible div.
['data-toggle' => 'collapse', 'data-target' => "#collapseAddForm"]);
$buttonarray[] = &$mform->createElement('submit', 'advancedadddiscussion',
get_string('advanced'), null, null, ['customclassoverride' => 'btn-link']);
get_string('showadvancededitor'), null, null, ['customclassoverride' => 'btn-link']);
$mform->addGroup($buttonarray, 'buttonar', '', array(' '), false);
$mform->closeHeaderBefore('buttonar');
+1 -1
View File
@@ -156,7 +156,7 @@ class behat_mod_forum extends behat_base {
// Navigate to forum.
$this->execute('behat_general::click_link', $this->escape($forumname));
$this->execute('behat_general::click_link', $buttonstr);
$this->execute('behat_forms::press_button', get_string('advanced'));
$this->execute('behat_forms::press_button', get_string('showadvancededitor'));
$this->fill_new_discussion_form($table);
}