This multilingual feature is supported in Question Title, Question Description, Answer text, Answer Comments & in case of Rating type question, Rating labels are also supported with the language constants.Follow the steps to setup:
- Create a new language constant file as en-GB.com_tmt.quiz.ini inside frontend's language/en-GB/ folder
- The above file is mandatory because Shika will read all the language constants from the en-GB.com_tmt.quiz.ini file only, so any new language constant must be included first in en-GB.com_tmt.quiz.ini and then in other language's files
- Add some language constants to the file and use them while creating questions
- Create/Edit Quiz lesson, use the language constants from en-GB.com_tmt.quiz.ini file
- Launch the Quiz from the front-end & you are good to go
Now suppose you wish to make this Quiz also available in the French language, just follow the below steps.
- Create another language constant file as fr-FR.com_tmt.quiz.ini inside frontend's language/fr-FR/ folder
- Copy all the language constants from the en-GB.com_tmt.quiz.ini file and paste them into the fr-FR.com_tmt.quiz.ini file
- Similarly, you can follow the same steps for other languages