Commit Graph

8 Commits

Author SHA1 Message Date
Gabriel Ozouf
5749d871b0 [apps/i18n] Moved country preferences
Instead of being hardcoded in the python script, preferences specific to
each country are defined in the country_preferences.h and .csv files.

Change-Id: I71e276341e1586935b4d5814be5b1be80fa170a0
2020-11-04 15:11:44 +01:00
Gabriel Ozouf
2b59509fdd [apps/i18n] Derive preferences from country
Each country comes with an set of preferences, built at compile time by
apps/i18n.py, used to define :
  - the exam mode
  - the method for computing quartiles
  - the unit system in which to output the results with units
Functions to access those preferences are available in
via sharedGlobalPreferences.

Change-Id: I220ebaa9b9e8954dfe33cd51936f47505b98978d
2020-11-04 15:11:44 +01:00
Gabriel Ozouf
b35cdca9bb [apps/exam_mode] Country-locked Dutch exam mode
The Dutch exam mode is now only accessible when the selected country is
Netherlands on an official firmware.

Change-Id: I6d70f79b6e728482d8c7d86ef6a2e5c53ee18a39
2020-11-04 15:11:44 +01:00
Léa Saviot
163a14d9b9 [apps/exam_mode] Dutch exam mode available when language is EN/NL 2020-06-04 14:50:10 +02:00
Léa Saviot
750f655b2f [apps] Move SettingsMessageTree in Shared
It is needed in exam_mode_configuration. This way, we can build one app
only
2020-02-21 16:03:07 +01:00
Émilie Feral
2868a25385 [apps] ExamModeConfiguration: display Dutch exam mode only when the
language is English
2020-02-12 15:13:26 +01:00
Émilie Feral
5432a97bd2 [apps] Change license of exam_mode_configuration_official to
CC-BY-NC-ND-4.0
2020-02-12 15:13:26 +01:00
Émilie Feral
e17ae9024e [apps] Gather all code regarding exam mode in ExamModeCOnfiguration file 2020-02-12 15:13:26 +01:00