Skip to content

Commit

Permalink
update name from i18n data if setProperty=name
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Nov 29, 2024
1 parent 2b386d4 commit 5304d51
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Paths/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,14 @@ private function processNationalCalendarData(): void
self::$FestivityCollection[ $key ][ "grade_lcl" ] = self::$LitGrade->i18n($row->festivity->grade, false);
self::$FestivityCollection[ $key ][ "common_lcl" ] = self::$LitCommon->c($row->festivity->common);
self::$FestivityCollection[ $key ][ "name" ] = $NationalCalendarI18nData[ $key ];
} elseif ($row->metadata->action === 'setProperty') {
if ($row->metadata->property === 'name') {
self::$FestivityCollection[ $row->festivity->event_key ][ "name" ] = $NationalCalendarI18nData[ $row->festivity->event_key ];
}
if ($row->metadata->property === 'grade') {
self::$FestivityCollection[ $row->festivity->event_key ][ "grade" ] = $row->festivity->grade;
self::$FestivityCollection[ $row->festivity->event_key ][ "grade_lcl" ] = self::$LitGrade->i18n($row->festivity->grade, false);
}
}
}
if (property_exists(self::$NationalData, "metadata") && property_exists(self::$NationalData->metadata, "missals")) {
Expand Down

0 comments on commit 5304d51

Please sign in to comment.