mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-06 07:30:17 +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,8 +1,4 @@
|
||||
<h6>{{ 'Upload quiz via XLSX'|trans({}, 'instructions') }}</h6>
|
||||
<p>{{ 'Upload an XLSX file with the questions for this quiz. After uploading you can review, check and finalize the quiz.'|trans({}, 'instructions') }}</p>
|
||||
<h6>{{ 'Expected format'|trans({}, 'instructions') }}</h6>
|
||||
<ul>
|
||||
<li>{{ 'First column: question text'|trans({}, 'instructions') }}</li>
|
||||
<li>{{ 'Next columns: answer options'|trans({}, 'instructions') }}</li>
|
||||
<li>{{ 'Mark the correct answer in the spreadsheet'|trans({}, 'instructions') }}</li>
|
||||
</ul>
|
||||
{{ include([
|
||||
'backoffice/help/' ~ app.request.locale ~ '/quiz_add.html.twig',
|
||||
'backoffice/help/nl/quiz_add.html.twig',
|
||||
]) }}
|
||||
|
||||
Reference in New Issue
Block a user