mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-05 23:20:18 +02:00
refactor: move help content out of translations into locale-specific partials
Replace the instructions translation domain with plain HTML files under templates/backoffice/help/nl/. Each help/*.html.twig is now a locale dispatch shim that tries the current locale first and falls back to nl, so adding English (or any other language) is simply a matter of creating a help/en/ directory with the translated files — no code changes needed. Removes instructions+intl-icu.nl.xliff.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<h6>{{ 'Question bank'|trans({}, 'instructions') }}</h6>
|
||||
<p>{{ "The question bank is a library of questions that can be linked to multiple quizzes. Mark a question as reusable if it may appear in multiple quizzes (e.g. 'Who is de Mol?')."|trans({}, 'instructions') }}</p>
|
||||
<p>{{ 'After editing a bank question, quizzes that already contain it are not updated automatically — use the sync button next to a quiz to push the latest version.'|trans({}, 'instructions') }}</p>
|
||||
{{ include([
|
||||
'backoffice/help/' ~ app.request.locale ~ '/season_question_bank.html.twig',
|
||||
'backoffice/help/nl/season_question_bank.html.twig',
|
||||
]) }}
|
||||
|
||||
Reference in New Issue
Block a user