Gabriel Ozouf
df6383d2d8
[apps/i18n] Added default country for languages
...
After choosing a language at onboarding, the country menu now has a
specific country selected by default (Spain for Spanish, Italy for
Italian...)
Default countries are specified in apps/language_preferences.csv
Change-Id: Ia6392aceb9bebf7e62a692c5a79eb8c4d7b71a9d
2020-11-04 15:11:45 +01:00
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
8121400cf2
[apps/i18n.py] Method for printing lists
...
New methods print_block_from_list factors code used to generate enum
classes and arrays.
Change-Id: I4ce7d22c3ffca4f12b9439f88ce288fcf9b85090
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
d156c8c99e
[apps/i18n] Added country support
...
Added a list of supported countries to I18n, and created messages for
each country's names in each language.
Change-Id: I1b887d75da980d99e21f89cc151249e42c78de88
2020-11-04 15:11:44 +01:00
Léa Saviot
e6ce3ca249
[apps] GET_OPT uses generated i18n language codes to find language
2020-04-10 04:46:22 -07:00
Joachim LF
77af9ab92b
I18NWarn
2020-04-06 18:29:48 +02:00
Léa Saviot
efff509e2a
[apps/global_preferences] DefaultLanguage is the first of the locales
...
Not EN, because we might build without the EN locale
2020-04-06 13:35:18 +02:00
Léa Saviot
19b5653851
[apps/i18n] Remove Language::Default
...
We never translate a i18n message to something else than the currrent
language selected
2020-04-06 13:35:18 +02:00
Émilie Feral
f079660d69
[apps] i18n routine: enable to add comment in *.i18n files
2020-02-12 15:13:26 +01:00
Léa Saviot
d1d93fc3d6
[unicode] Prevent upper case letters with accents
2019-04-12 15:16:52 +02:00
Léa Saviot
3156f92baf
[kandinsky/font] Fix rebase on master
2019-04-12 15:16:50 +02:00
Romain Goyet
6fac2120fe
[i18n] Encode strings as NFKD-normalized UTF-8 strings
2019-04-12 15:16:50 +02:00
Romain Goyet
4f2c7a3763
[build] Update the i18n processing to fit the out-of-tree build
2019-03-06 15:00:59 +01:00
Léa Saviot
2f77fb88bb
[apps/i18n] Default message ("") has index 0
2018-11-23 12:04:04 +01:00
Léa Saviot
17c3d52597
[apps/reg] Add multiplication symbols in regression formulas
2018-07-18 10:32:45 +02:00
Léa Saviot
2d7450b1dd
[apps/escher/poincare] Empty expression char is now ø
2018-07-18 10:32:45 +02:00
Émilie Feral
f992253cec
[ion] Add a special char: CapitalDelta
2018-06-07 13:46:18 +02:00
Léa Saviot
fd3a2c3cbc
[apps/code] Use a special char to position the cursor in Python commands
...
Change-Id: I7ae3d6098160212d8683a671c78d3bdb937fb701
2018-04-23 17:18:56 +02:00
Romain Goyet
cf32add0ca
[i18n] The build script works on Python version 2 and 3
2018-02-18 15:21:15 +01:00
Romain Goyet
04645347bf
[build] Don't use the Set module
...
It's been deprecated since Python 2.6
2018-02-18 15:21:15 +01:00
Romain Goyet
1c17817ed0
Don't use a shebang in Python build scripts
2018-02-18 15:21:15 +01:00
Émilie Feral
15610064fa
Coverity: fix unitialized pointer fields, out of bounds reads ...
...
Change-Id: Iae0656ffe667692dfb3bebf9bb7913b5872175c6
2017-12-06 14:50:26 +01:00
Romain Goyet
52bdf4a41f
Merge branch 'cas_with_app_copy' into python_console
2017-11-21 18:44:38 +01:00
Léa Saviot
13bf8c2d62
[code] Python toolbox.
...
Change-Id: I4028b05c662cae04a5ac3af5021f3438bb22dcd0
2017-11-17 11:59:50 +01:00
Romain Goyet
9bf4846b06
[apps] Leaner i18n script
2017-09-29 17:08:46 +02:00
Romain Goyet
e6ed6c74a4
[apps] Split the i18n in multiple files
...
A Python script aggregates all i18n files and merges them.
We now can pick a list of locales to build in EPSILON_I18N_LANGUAGES
2017-09-29 17:08:46 +02:00