diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-20 15:49:00 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-20 15:49:00 +0200 |
| commit | c02e77b73aad34fb5a672a5234a66d64f23b45ce (patch) | |
| tree | bff3ae0751e8005bc4f5448cc2992c3bcad2d86b /test/test_lang_coverage.ml | |
| parent | 987175105ead0ea78b960c0e638a81c6fd2384cf (diff) | |
| download | colitur-c02e77b73aad34fb5a672a5234a66d64f23b45ce.tar.gz colitur-c02e77b73aad34fb5a672a5234a66d64f23b45ce.zip | |
feat(lang): read [bible] and [sigla] sections
Lang reads a hardcoded list of section names and ignores anything else
silently, so without this a [bible] section would appear to work and do
nothing -- confirmed directly with a scratch executable: before this
change, of_string on text containing a [bible] section parsed without
error and Lang.keys came back empty, no trace of the section anywhere.
Lang.bible keeps the total-lookup contract every other lookup in this
module has: a miss returns the key itself, never the empty string.
Lang.sigla_fields returns the [sigla] section's raw fields, values
trimmed but still quoted, for Render.style_of_fields to unquote.
[bible] joins the keys reference set so lang --check reports missing
book names; [sigla] deliberately does not, being settings with working
defaults rather than translatable names -- adding it would make --check
demand five settings from every language file.
Diffstat (limited to 'test/test_lang_coverage.ml')
0 files changed, 0 insertions, 0 deletions
