Permalink
Browse files

MDL-31201 wiki: fix a hardcoded string

  • Loading branch information...
1 parent 6be7840 commit a572f17d41bda8d7b885537445a1d2a60e1723f1 @sunner sunner committed with danpoltawski May 22, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 mod/wiki/lang/en/wiki.php
  2. +1 −1 mod/wiki/parser/markups/wikimarkup.php
@@ -195,6 +195,7 @@
$string['searchresult'] = 'Search results:';
$string['searchwikis'] = 'Search wikis';
$string['special'] = 'Special';
+$string['tableofcontents'] = 'Table of contents';
$string['tagsdeleted'] = 'Wiki tags have been deleted';
$string['tagtitle'] = 'See the "{$a}" tag';
$string['teacherrating'] = 'Teacher rating';
@@ -239,7 +239,7 @@ protected function process_toc() {
$i++;
}
- $this->returnvalues['toc'] = "<div class=\"wiki-toc\"><p class=\"wiki-toc-title\">Table of contents</p>$toc</div>";
+ $this->returnvalues['toc'] = "<div class=\"wiki-toc\"><p class=\"wiki-toc-title\">" . get_string('tableofcontents', 'wiki') . "</p>$toc</div>";
}
/**

0 comments on commit a572f17

Please sign in to comment.