diff --git a/mod/wiki/lang/en/wiki.php b/mod/wiki/lang/en/wiki.php index 1c929d911dd..80fbdf45612 100644 --- a/mod/wiki/lang/en/wiki.php +++ b/mod/wiki/lang/en/wiki.php @@ -59,6 +59,7 @@ $string['editfiles'] = 'Edit wiki files'; $string['editing'] = 'Editing wiki page'; $string['editingcomment'] = 'Editing comment'; $string['editingpage'] = 'Editing this page \'{$a}\''; +$string['editsection'] = 'edit'; $string['files'] = 'Files'; $string['filenotuploadederror'] = 'File \'{$a}\' could not be uploaded correctly.'; $string['filtername'] = 'Wiki auto-linking'; diff --git a/mod/wiki/parser/markups/wikimarkup.php b/mod/wiki/parser/markups/wikimarkup.php index cf7a2b327e7..78a37900147 100644 --- a/mod/wiki/parser/markups/wikimarkup.php +++ b/mod/wiki/parser/markups/wikimarkup.php @@ -18,7 +18,6 @@ abstract class wiki_markup_parser extends generic_parser { protected $wiki_page_id; //sections - protected $section_edit_text = "[edit]"; protected $repeated_sections; protected $section_editing = true; @@ -181,7 +180,7 @@ abstract class wiki_markup_parser extends generic_parser { $text = trim($text); if (!$this->pretty_print && $level == 1) { - $text .= parser_utils::h('a', $this->section_edit_text, array('href' => "edit.php?pageid={$this->wiki_page_id}§ion=" . urlencode($text), 'class' => 'wiki_edit_section')); + $text .= parser_utils::h('a', '['.get_string('editsection', 'wiki').']', array('href' => "edit.php?pageid={$this->wiki_page_id}§ion=" . urlencode($text), 'class' => 'wiki_edit_section')); } if ($level < 4) {