Skip to content

Default readings page to LXX2012+WEB; add translation-aware RSS feed - #162

Merged
brianglass merged 1 commit into
mainfrom
default-lxx2012web-and-translation-feed
Aug 4, 2026
Merged

Default readings page to LXX2012+WEB; add translation-aware RSS feed#162
brianglass merged 1 commit into
mainfrom
default-lxx2012web-and-translation-feed

Conversation

@brianglass

Copy link
Copy Markdown
Owner

Summary

  • The readings/landing page now defaults to the modern LXX2012+WEB pairing instead of KJV. The API and RSS feeds are unaffected -- neither calls remember_translation, so translation=None still resolves to kjv via bible.models.DEFAULT_TRANSLATIONS exactly as before.
  • Adds a new RSS feed URL, /api/feed/<tradition>/<cal>/<translation>/ (e.g. /api/feed/slavic/gregorian/lxx2012-web/), for subscribing to the modern translation specifically. Linked from the feeds documentation page.
  • Found and fixed a real pre-existing bug while verifying the new feed: ReadingsFeed.items() never passed fetch_content=True to get_readings(), and feed_description.html called reading.pericope.get_passage (a method that re-queries fresh with its own kjv-defaulting arguments) instead of .passage (the cached, correctly-translated attribute) -- so any explicit translation was silently discarded and every feed rendered KJV regardless of what was requested. This had zero test coverage before.
  • Adds Day.translation_label as a reusable property, replacing a similarly-hardcoded "(KJV)" heading in the feed description template and simplifying readings_view's own translation label lookup.

Test plan

  • docker compose run --rm tests -- 136/136 passing
  • New regression test confirms the two feed URLs actually differ in passage content (not just title/description text) for a known reading
  • Manually verified: readings page default now shows modern text with no explicit translation choice; default (KJV) RSS feed unchanged; new translation-parameterized feed shows correct modern text

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hf6j2xXQXywHVh3HAVRxB3

The readings/landing page now defaults to the modern LXX2012+WEB
pairing instead of KJV (remember_translation in calendarium/views.py).
The API and RSS feeds are unaffected -- neither calls that function,
so translation=None still resolves to kjv via
bible.models.DEFAULT_TRANSLATIONS as before.

Adds a new RSS feed URL, /api/feed/<tradition>/<cal>/<translation>/,
for subscribing to the modern translation specifically.

While verifying the new feed, found and fixed a real pre-existing bug:
ReadingsFeed.items() never passed fetch_content=True to
day.get_readings(), and feed_description.html called
reading.pericope.get_passage (a method that re-queries fresh with its
own kjv-defaulting arguments) instead of .passage (the cached,
correctly-translated attribute) -- so any explicit translation was
silently discarded and every feed rendered KJV regardless of what was
requested. Had zero test coverage before; added a regression test
confirming the two feed URLs actually differ in passage content, not
just title/description text.

Also adds Day.translation_label as a reusable property, replacing a
similarly-hardcoded "(KJV)" heading in the feed description template
and simplifying readings_view's own translation label lookup.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hf6j2xXQXywHVh3HAVRxB3
@brianglass
brianglass merged commit 735ae4b into main Aug 4, 2026
4 checks passed
brianglass added a commit that referenced this pull request Aug 4, 2026
…ar (#163)

about.html's Scriptures section now describes LXX2012+WEB as the
readings-page default (with KJV as the alternative, and noting it
remains the API/RSS default), matching the change in #162.

Also fixes calendar.html's Greek tradition selector, which still used
class="beta-note" (removed in an earlier session when that treatment
was renamed to .status-badge) -- it's been rendering as unstyled plain
text "(beta)" since then. Replaced with the same badge treatment
already used on the readings page: tradition-label-with-badge wrapper
on both labels, "New" status-badge on Greek.


Claude-Session: https://claude.ai/code/session_01Hf6j2xXQXywHVh3HAVRxB3

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant