Open pdawyndt opened 5 years ago
If/when we do this, we probably want to use the globalize gem. Information on how to allow editing multiple translations at once can be found here.
Original comment by @charvp on Thu Nov 22 2018 at 13:20.
Can we also consider to take this issue up in release 4.0 of Dodona?
Applying i18n on course/series titles/descriptions would allow to maintain a single Python programming course (faculty of sciences) per academic year for all Dutch and English sessions of the course. The sessions only differ in natural language.
We might come up with a more generic approach were all database fields that are subject to i18n might two possible values:
For example, the property
name
of an exercise can either be assigned a string (the name used in whatever language) or a JSON object that maps languages to strings (names in that particular language) such asWe might also add a default entry to the JSON object, that is used for all languages that do not have a particular setting.
On the website we would also need a specific component that allows to add objects for particular languages. This way, the entire Dodona site would not be restricted to Dutch and English, but to any possible language.
Original issue by @pdawyndt on Tue Sep 27 2016 at 23:34.