Docs / Course authoring
Multilingual courses
Supported languages: fr, en, es, ru, he. A course can declare a base language (course Settings, “Languages” group): the language it is written in, and the fallback for every other language. A course without a base language is shown as is to everyone and cannot be translated.
Titles
The course title and description, module titles and page titles can each have one version per language (the 🌐 button in the course navigator, or the “Languages” group in Settings). A missing title falls back to the base language.
Language blocks in a page
A translated passage is written as consecutive blocks:
Text shared by every language.
::lang{code="en"}
White takes the centre.
::endlang{}
::lang{code="fr"}
Les blancs prennent le centre.
::endlang{} - Only spaces or blank lines may separate the blocks of one passage; a repeated language code starts a new passage.
- Every passage needs a block in the base language, otherwise publishing is refused (
base_lang_missing_in_group). - A block contains text only (Markdown),
[[page:…]]links and[[fig:…]]figurine notation. Diagrams, resources, actions and videos stay outside the blocks and are shared by every language. - Text outside the blocks is shared by every language.
- Save errors (
lang_block_invalid, with the line): block never closed,::endlangwithout::lang, nested block, unknown language code, forbidden tag inside a block, malformed tag. - The editor writes two attributes:
of="…"(fingerprint of the base block that was translated, used to flag an outdated translation) andmt="true"(machine translation not yet reviewed).
Diagrams
A diagram is never duplicated per language; its texts are translated in place.
- Label:
label="Opening" label.fr="Ouverture" label.he="פתיחה". - Move comment:
1. e4 { King pawn [%lang fr "Le pion du roi"] [%cal Ge2e4] } e5. The free text is the base language. Quotes, backslashes and braces in the translated text must be escaped: see the table “Translated comments” in Course diagrams.
The diagram editor has a language selector for the label and the comment of the displayed move.
Editor
The “Languages” bar of the page editor offers:
- a working language: other languages are folded and restored unchanged on save;
- “Add translation”: copies the base blocks and wraps shared text in base-language blocks if needed;
- ”🌐 Language block…” (in code view): puts the selected lines in a block of the chosen language. The selection is extended to whole lines; it is refused if it contains a diagram, a resource or a video, or touches an existing block. Typical use: mark a passage in the base language, then “Add translation”;
- “Validate translation” (removes
mt) and “Mark up to date” (refreshesof); - the state of each language (not translated, partial, outdated, machine translation, up to date);
- a preview in any language.
Settings show the translation coverage per language.
Reading
Readers choose their language; the choice is remembered per course, and defaults to the interface language when the course offers it. Every passage missing in that language is shown in the base language, with a banner and a link to the original. Hebrew pages are shown right to left; boards and notation stay left to right.
Limits
- Page source up to 1 MB, all language blocks included.
- On publishing, each compiled language version up to 256 KB (
compiled_too_large).
AI Coach
Each available language is indexed separately. The Coach searches in the user’s language, falling back to the base language. A published machine translation is indexed with the note “Machine translation, not checked by the author”. When the Coach rewrites a page, it reads the source with all its blocks and must keep every block.
Import and export
- The single file carries
baseLang,title_<code>anddescription_<code>keys; the ZIPcourse.jsoncarriesbaseLang,titleI18nanddescriptionI18nobjects. Page bodies keep their language blocks. - When updating an existing course, languages present in the file replace those of the course, and languages missing from the file are kept, so an older file never erases translations. A change to a translated title alone is a modification without conflict and does not rewrite the draft.
- The course base language from the file is applied only if the course has none (with “update course info”).