diff options
Diffstat (limited to 'internal/liturgy/section.go')
| -rw-r--r-- | internal/liturgy/section.go | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/internal/liturgy/section.go b/internal/liturgy/section.go index 1e446a1..dcca7b5 100644 --- a/internal/liturgy/section.go +++ b/internal/liturgy/section.go @@ -17,19 +17,18 @@ type Section struct { Paragraphs [][]string } -// DayInfo is the day's liturgical identity, source-language (Polish for the -// modern niedziela.pl lectionary, English/Latin for the traditional -// missalemeum) -- never translated, like Section's own Heading/Citation. -// A source that carries no such data (or an unrecognised page/response -// shape) yields a zero DayInfo; callers must treat that as "omit the -// header", never as an error. +// DayInfo is the day's liturgical identity from the offline calendar engine. +// Name follows the UI language where the calendar data has a localized name +// (else English); Colour is normalized. A day that carries no celebration name +// yields a zero DayInfo; callers must treat that as "omit the header", never as +// an error. type DayInfo struct { - // Name is the celebration, e.g. "Święto św. Marii Magdaleny" (modern) or - // "St. Mary Magdalene" (traditional). + // Name is the celebration, e.g. "św. Marii Magdaleny" (pl UI, where the + // calendar data has a Polish name) or "Saint Mary Magdalene" (en). Name string - // Season is the temporal context, e.g. "Feria IV after VIII Sunday - // after Pentecost" (traditional); always "" for the modern lectionary, - // whose temporal is folded into Name on temporal days. + // Season is the temporal context; currently left empty by the offline + // loader, since the celebration name already carries the temporal identity + // on temporal days. Season string // Colour is the normalized liturgical colour: "white", "green", // "violet", "red", "rose", or "" when unknown/unmapped. |
