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:
+4
-4
@@ -14,7 +14,7 @@ def test_basic_units_html():
|
||||
"1 Ah": "1 Ah",
|
||||
"10 A/mm²": "10 A/mm²",
|
||||
"DL9MJ": "DL9MJ", # Ensure other strings, like callsings, aren‘t mistaken for units. ;)
|
||||
"Ein Satz mit 200 V.": "Ein Satz mit 200 V.", # Support units before sentence ends.
|
||||
"En mening med 200 V.": "En mening med 200 V.", # Support units before sentence ends.
|
||||
}
|
||||
|
||||
for input, output in assertions.items():
|
||||
@@ -35,10 +35,10 @@ def test_translated_units_html():
|
||||
|
||||
@pytest.mark.html
|
||||
def test_special_units_html():
|
||||
"""Test special units: Don't put space before ° and %."""
|
||||
"""Test special units: Don't put space before °; % gets a thin space (Swedish convention)."""
|
||||
assertions = {
|
||||
"100%": "100%",
|
||||
"100 %": "100%",
|
||||
"100%": "100 %",
|
||||
"100 %": "100 %",
|
||||
"42,24°": "42,24°",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user