You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we have a need to provide programming exercises in multiple languages in multilingual courses. Instead of working with translated copies of certain exercises, we would like to offer multilingual exercise descriptions, whose presentation is controlled by the language selection of the user interface.
As an approach, I see a method used in Moodle (i.e. the Multi-Language Content Filter): Attributes (lang="XX" and class="multilang") are used to indicate the language of content elements. CSS and possibly Javascript are then used to control the visibility on the page.
Sebastian, could you please give me a hint where to start in the code to implement something prototypically? I was thinking of starting at views/exercises and views/layouts. At what point in the codebase would I need to insert a CSS fragment or a JS fragment?
Thanks in advance. I would then post the results of my attempts here for discussion.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear all, hello Sebastian,
Currently, we have a need to provide programming exercises in multiple languages in multilingual courses. Instead of working with translated copies of certain exercises, we would like to offer multilingual exercise descriptions, whose presentation is controlled by the language selection of the user interface.
As an approach, I see a method used in Moodle (i.e. the Multi-Language Content Filter): Attributes (
lang="XX"
andclass="multilang"
) are used to indicate the language of content elements. CSS and possibly Javascript are then used to control the visibility on the page.Sebastian, could you please give me a hint where to start in the code to implement something prototypically? I was thinking of starting at views/exercises and views/layouts. At what point in the codebase would I need to insert a CSS fragment or a JS fragment?
Thanks in advance. I would then post the results of my attempts here for discussion.
Greetings from Ilmenau,
Gunther.
Beta Was this translation helpful? Give feedback.
All reactions