Interface languages
The player's own words (buttons, hints, messages and the results page) can be in any language. Your questions are in whatever language you write them in.
What gets translated
An interface language covers the words Squizzy writes, not the words you write:
| Translated by the language file | Written by you |
|---|---|
| Buttons such as Start quiz, Check, Next and Submit | Quiz title and introduction |
| Hints such as "Select all that apply" | Section titles and introductions |
| Messages such as "Time is up" and "2 tries left" | Questions, choices and answers |
| The results page: score, pass or fail, review | Feedback, and the pass and fail messages |
| Screen reader descriptions, and the maths answer editor | Image descriptions (alt text) |
Choosing a quiz's language
Open a quiz, choose Settings, and pick the language under Interface language > Buttons, hints and messages in. English is built in; other languages appear once they are in your library (see Adding a language).
- Each quiz has one interface language.
- The words are built into the exported quiz: the
.squiz.zip, SCORM package and Rise Code block all carry them, so nothing else needs uploading. - The player also marks the quiz with that language code, so screen readers pronounce it in the right language.
- After changing a language file, export the quiz again to pick up the new words. Quizzes exported earlier keep the words they were exported with.
The learner's browser language
The player does not switch to the language of the learner's browser or device. Every learner sees the interface language the quiz was exported with, whatever their browser is set to.
To offer the same quiz in several languages, Clone it once for each language, translate the questions in the copy, choose the matching interface language, and publish each copy where those learners will find it.
Quizzes built in the Mighty block's own form use English. To use another language there, build the quiz in Squizzy and upload its
.squiz.zipto the block.
Adding a language
Use Languages in the top bar, or Manage languages beside the language setting.
- Choose Download English template. It is a small text file listing every phrase.
- At the top, set the language code and name, for example
frandFrancais. - Translate the text on the right of each line. Keep anything in
{braces}, such as{n}, exactly as it is: the player fills in a number or name there. - Choose Import language file and pick your file.
The list then shows the language and how many phrases are still in English. Untranslated phrases fall back to English, so a partly translated file still works.
- Export downloads a language from your library, with any missing phrases filled in from English, ready to finish or share.
- Delete removes it from your library. Quizzes already exported keep their words, but a quiz still set to that language exports in English until the language is added again.
- Importing a file with the same code again replaces the old version.
- Languages are part of your library, so Export library backs them up too.
The Spanish example
Squizzy comes with a complete Spanish translation (es). In the Languages dialog, under Examples:
- Add to library makes Spanish available to choose for any quiz straight away.
- Download saves the file, to see how a finished translation looks or to adapt it, for example into
es-MX.
Language codes
A code is two or three letters, optionally followed by a region or script: fr, de, es-MX, pt-BR, zh-Hant. Use the standard code for the language, because it is also the code screen readers use. en is reserved for the built-in English.
Updating a translation
New versions of Squizzy sometimes add phrases. They show in English until translated, and the Languages list counts them ("3 strings still in English"). To catch up: Export the language, translate the new lines (they are in English), and import the file again.
Language files outside Squizzy
A language file is also a small script. A page that runs the Squizzy player itself can include it before quiz-player.js, and a quiz whose language code matches will use it. Quizzes exported from Squizzy do not need this, because their words are built in.