mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-05 15:10:16 +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,10 +1,4 @@
|
||||
<h6>{{ 'Getting started'|trans({}, 'instructions') }}</h6>
|
||||
<p>{{ 'Each season groups one play round with all its quizzes and candidates. The season code is the link candidates use to start a quiz — this link only works when there is an active quiz.'|trans({}, 'instructions') }}</p>
|
||||
<h6>{{ 'How it works'|trans({}, 'instructions') }}</h6>
|
||||
<ol>
|
||||
<li><strong>{{ 'Create a season and add candidates'|trans({}, 'instructions') }}</strong></li>
|
||||
<li><strong>{{ 'Add a quiz via XLSX or the question bank'|trans({}, 'instructions') }}</strong></li>
|
||||
<li>{{ 'Finalize and activate the quiz'|trans({}, 'instructions') }}</li>
|
||||
<li>{{ 'Let candidates take the quiz (own device or shared laptop)'|trans({}, 'instructions') }}</li>
|
||||
<li>{{ 'View results and start the elimination'|trans({}, 'instructions') }}</li>
|
||||
</ol>
|
||||
{{ include([
|
||||
'backoffice/help/' ~ app.request.locale ~ '/index.html.twig',
|
||||
'backoffice/help/nl/index.html.twig',
|
||||
]) }}
|
||||
|
||||
Reference in New Issue
Block a user