Swedish adaptation: Instegscertifikat and HAREC

- Editions replaced by INSTEG, HAREC and UPPGRADERING (Instegscertifikat -> HAREC)
- Question pool optional; simulator, homework tool and solutions switch off without one
- All UI strings, templates, renderers and project JS localised to sv-SE
  (decimal comma, Swedish non-breaking-space rules, Å/Ä/Ö in Morse table)
- DARC branding, membership CTA and German links removed; attribution footer added
- Page names centralised in src/pages.py
- README and docs rewritten in Swedish

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-10-10 15:03:02 +02:00
co-authored by Claude Sonnet 5.5
parent 28cf11437e
commit 874838f525
81 changed files with 918 additions and 1329 deletions
+6 -6
View File
@@ -11,13 +11,13 @@ from renderer.fifty_ohm_html_slide_renderer import FiftyOhmHtmlSlideRenderer
conf = config.Config()
def parse_katalog():
with open(conf.p_data_fragenkatalog) as fragenkatalog_file:
fragenkatalog = json.load(fragenkatalog_file)
def parse_question_pool():
with open(conf.p_data_question_pool) as question_pool_file:
question_pool = json.load(question_pool_file)
questions = {}
for exampart in fragenkatalog["sections"]:
for exampart in question_pool["sections"]:
for chapter in exampart["sections"]:
if "questions" in chapter:
for question in chapter["questions"]:
@@ -47,8 +47,8 @@ def filter_shuffle_answers(seq):
def question_stub(number):
questions = parse_katalog()
"""Combines the original question dataset from BNetzA with our internal metadata"""
questions = parse_question_pool()
"""Combines the question pool with our internal metadata"""
with open(conf.p_data_metadata) as metadata_file:
metadata = json.load(metadata_file)
question = questions[number]