Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

This feature is disabled by default and needs to be enabled and configured by Dual Code. For more information, please contact us.

The learning environment allows you to create custom web pages, much like a CMS (Content Management System). While you can create two sets of pages (one in English and the other in French), it is recommended that you create one (1) page that includes both the English and French content in it. By doing so, the page will automatically appear in the user's preferred language when they switch languages.

When writing a page that contains both English and French content, you want to wrap your page content in a specific tag called mlang as per the following example.

{mlang en}Hello World{mlang}{mlang fr_ca}Bonjour monde{mlang}

Using the example above, a person viewing the page in English will see "Hello World" while a person viewing the page in Canadian French will see "Bonjour monde". 

...

On the other hand, this example is incorrect:

{mlang en}<p>An interactive module designed to improve the ability of health researchers and peer reviewers to account for sex and gender in biomedical research involving animals, cells or tissues.</p>{mlang}
{mlang fr}<p>Un module interactif conçu pour améliorer la capacité des chercheurs en santé et des pairs évaluateurs à tenir compte du sexe biologique dans la recherche biomédicale impliquant des animaux, des cellules ou des tissus.</p>{mlang}
{mlang en}<p><strong>Length:</strong> 45 minutes{mlang}</p>{mlang}
{mlang fr}<p><strong>Durée :</strong> 45 minutes</p>{mlang}