dsv-su / play

Dev repository for Play
0 stars 1 forks source link

Translate course names #83

Closed pavelsokolov closed 2 years ago

pavelsokolov commented 2 years ago

For each course, there're two names in Daisy, English and Swedish ones. It would be nice to fetch both values, possibly store English name as 'name_en' in the DB, and display it according to the chosen language.

orkit commented 2 years ago

There is now another attribute, the name_en, with the English name of the course taken from daisy.

The user's language choice can be checked with Lang::locale() and the course names can then be displayed either with name or name_en