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:
+5
-3
@@ -37,14 +37,14 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
s = s.slice(1);
|
||||
}
|
||||
|
||||
// Find decimal point (last . or ,)
|
||||
// Find decimal separator (last . or ,). Swedish convention: always a decimal comma.
|
||||
let intPart = s;
|
||||
let fracSep = "";
|
||||
let fracDigits = "";
|
||||
const decMatch = s.match(/([.,])(\d+)$/);
|
||||
if (decMatch) {
|
||||
intPart = s.slice(0, decMatch.index);
|
||||
fracSep = decMatch[1];
|
||||
fracSep = ",";
|
||||
fracDigits = decMatch[2];
|
||||
}
|
||||
|
||||
@@ -105,6 +105,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
"\\mega": "\\text{M}",
|
||||
"\\kilo": "\\text{k}",
|
||||
"\\dezi": "\\text{d}",
|
||||
"\\deci": "\\text{d}",
|
||||
"\\centi": "\\text{c}",
|
||||
"\\milli": "\\text{m}",
|
||||
"\\micro": "\\text{μ}",
|
||||
@@ -144,12 +145,13 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
"\\Ohm": "\\Omega",
|
||||
"\\weber": "\\text{Wb}",
|
||||
"\\tesla": "\\text{T}",
|
||||
"\\bit": "\\text{Bit}",
|
||||
"\\bit": "\\text{bit}",
|
||||
"\\baud": "\\text{Bd}",
|
||||
"\\sample": "\\text{S}",
|
||||
"\\degreeCelsius": "\\,\\degree\\text{C}",
|
||||
"\\liter": "\\text{l}",
|
||||
"\\oszidiv": "\\text{div}",
|
||||
"\\scopediv": "\\text{div}",
|
||||
"\\sps": "\\text{sps}",
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user