Module: module_lang

module_lang

This file implements the lang module. It stores all the texts that are visible to the end user in all the available languages (by default French, English and Castilian).
This requires developer adaptation for each new dashboard.

Since:
  • 1.0

Requires

  • module:index.html

Members

staticmodule:module_lang.currentString

module-lang

Stores the current language selected for the dashboard, fra by default.
module:g.module-lang~module_lang_display enables the dashboard user to switch between availanle languages stored in module:module-lang.list.

staticmodule:module_lang.keylistObject

module-lang

Stores the list of keys related to the available languages taken from module:module-lang.list.

staticmodule:module_lang.listObject

module-lang

Stores the list of available languages in the dashboard: both key and complete name.

staticmodule:module_lang.textObject.<Object>

module-lang

Stores all the texts that are visible to the end user in all the available languages. Texts corresponding to a each specific language are stored in specific objects which access key is the same as in module:module-lang.list.

Methods

staticmodule:module_lang.display()

module-lang

Generates the language switch buttons in all available languages using:


Triggered by module:main_loadfiles~generate_display and triggers module:main_loadfiles~generate_display if current language is changed by the user.