Multilingual texts

This is the documentation for 4.2.0 version, which is not the latest version. Consider upgrading to 4.3.1.

Sometimes you want to generate texts in multiple languages (let’s say English and French). You will actually have to define the texts in each output language, there’s no black nor white magic here. But you can put both texts in the same templates.

You can read util.language to see the current language thus you can write these kind of multilingual mixins:

It is a good practice for maintenance to keep both languages in the same mixins.