Details
Description
Hello,
I am working currently on a multilanguage moodlesite with 4 languages. The content and title of content is translated as expected.
If inserting an HTML-block, I can insert multilang content, but no multilang title of this block. The language settings in the title are ignored by Moodle and it shows all titles at once.
Is there any way to also translate the title of HTML-blocks? (I am running Moodle 1.9)
Regards, Daniel
A fix was posted by Gordon Bateson in Moodle-language forum, see:http://moodle.org/mod/forum/discuss.php?d=93491
1. open "blocks/moodleblock.class.php" with a text editor
2. locate the following line (around line 356 in the "_title_html" function):
$title .= '<h2>'.$this->title.'</h2>';
3. change the above line to:
$title .= '<h2>'.filter_text($this->title).'</h2>';
4. saved the modified file
I tried this solution and it works perfectly on my 1.9 installation