aboutsummaryrefslogtreecommitdiff
path: root/lib/render
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-08-20 15:49:00 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-08-20 15:49:00 +0200
commitc02e77b73aad34fb5a672a5234a66d64f23b45ce (patch)
treebff3ae0751e8005bc4f5448cc2992c3bcad2d86b /lib/render
parent987175105ead0ea78b960c0e638a81c6fd2384cf (diff)
downloadcolitur-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 'lib/render')
0 files changed, 0 insertions, 0 deletions