Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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". 

Please note that the two- or four-letter acronym at the end of your theme name and the one at the end of of the mlang tag (ie. en, fr, fr_ca) needs to be identical to your local. If you put "fr_ca" for example but your site is only configured to use "fr" (French, not Canadian French), then the web page may not display correctly.  

  • No labels