HTML block title doesn't follow the language

HTML block title doesn't follow the language

by Daniele Cordella -
Number of replies: 6
Picture of Core developers Picture of Plugin developers
In my local Moodle homepage I added an HTML block.
I gave it a title, of course.
Now, if I change the Moodle site language to a different one, each block title changes according to the new language but my custom html block title doesn't. How can I force it to change matching the choosen language?
Average of ratings: -
In reply to Daniele Cordella

Re: HTML block title doesn't follow the language

by Timothy Takemoto -

Dear Daniele
you must make sure that there is a langage file for it in the language of your choice. If not the language will default to English. Perhaps it has not been translated yet? If this is the problem you can translate
block_html.php
in moodle/lang/en/
and put it into your language folder.
Tim

In reply to Timothy Takemoto

Re: HTML block title doesn't follow the language

by Daniele Cordella -
Picture of Core developers Picture of Plugin developers
Thank you Timothy
maybe I was not so clear because of my basic and rude english.
At the moment the title of an HTML block is the static text that you define when you edit the HTML block content and is NOT language dependent.
My question is: how can I change it to be language dependent?
In reply to Daniele Cordella

Re: HTML block title doesn't follow the language

by John Papaioannou -
Did you try to activate and use the multilang filter? You would enter a title like this:

<span lang="en">English title</span><span lang="de">German title</span>
In reply to John Papaioannou

Re: HTML block title doesn't follow the language

by Daniele Cordella -
Picture of Core developers Picture of Plugin developers
thank you Jon
on the basis of your suggestion I wrote
<span lang="en">English title</span><span lang="de">German title</span>
in the html block title field and nothing more. It still doesn't work.
Maybe "activate and use the multilang filter" means something that I ignore?
In reply to Daniele Cordella

Re: HTML block title doesn't follow the language

by Timothy Takemoto -
The multilanguage filter is in the list of filters in Admin>filters. Have you turned it on?
Tim
In reply to Timothy Takemoto

Re: HTML block title doesn't follow the language

by Daniele Cordella -
Picture of Core developers Picture of Plugin developers
Thank you Tim
you are introducing me to undisclosed horizonts.
I followed your suggestion but it stll doesn't work.