In order to use the multi-language content filter, the filter must initially be activated in the course settings (cogwheel menu in the top right corner > Filters > Multi-language content > On). Where the Atto editor is available, you can place the content anywhere. To do so, you need to enable the HTML mode in the Atto editor:

Screenshot of the Atto text editor toolbar. The button for activating the HTML mode is highlighted with a blue frame.

Once the HTML mode has been enabled, you can enter your multilingual content. You need to embed your text in the following code:

<span lang="language" class="multilang"> [your text]</span>
lang="language": the language used must be specified here.
Example:
<span lang="en" class="multilang">your content in English</span>
<span lang="de" class="multilang">Ihre Inhalte auf Deutsch</span>
<span lang="fr" class="multilang">Vos contenus en français </span>

If a user has set a language in their profile for which you have not stored any text, it will be displayed in the language that you configured first. So, in the example above, it would be the English text. Please note: if the course settings ‘force’ a specific language, multilingual content will not work.

Zuletzt geändert: Montag, 17. April 2023, 16:40