Block translation

Block translation

av Claudie Lemasçon -
Antall svar: 4

Hi guys,

I wonder how can I manage blocks in order to have one in French and an other in English acccording to the user language preferences.

Can do you work with multi languages and blocks ?

Thanks for you help.

Gjennomsnittlig vurdering: -
Som svar til Claudie Lemasçon

Re: Block translation

av Séverin Terrier -
Bilde av Documentation writers Bilde av Particularly helpful Moodlers Bilde av Testers Bilde av Translators
Hi Claudie,

What do you want to achieve exactly?

If French is a good option for you, perhaps you'd better post in Moodle en français clin d’œil

Séverin
Som svar til Séverin Terrier

Re: Block translation

av Claudie Lemasçon -
Thank you for your answer.
There are some block contents (html) on the Home page.
As we use the Moodle site in French and English, I need to translate these block contents according the user preferences.
How can I handle this please ?
Som svar til Claudie Lemasçon

Re: Block translation

av Séverin Terrier -
Bilde av Documentation writers Bilde av Particularly helpful Moodlers Bilde av Testers Bilde av Translators
Certainly that the Multi-language content filter could be a good solution for this, having the two strings in the same block.

I was about to tell you about the restriction by language plugin, but blocks don't support restrictions. It can be an option for ressources/activities.

Séverin
Gjennomsnittlig vurdering:Useful (1)
Som svar til Séverin Terrier

Re: Block translation

av Claudie Lemasçon -

Problem solved !

with the use of the <span class="multilang" lang="en"> and the multi language content filter.

Thank you for your time.


Gjennomsnittlig vurdering:Useful (1)