Skip to content

Commit

Permalink
prefer latin base locale
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Oct 25, 2024
1 parent e034597 commit eed3bf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@
$apiOptions = new ApiOptions();
$apiOptions->acceptHeaderInput->hide();
Input::setGlobalWrapper('td');
$apiOptions->localeInput->labelAfter('<br>')->selectedValue($litSettings->Locale);
$primaryLanguage = Locale::getPrimaryLanguage($litSettings->Locale);
$apiOptions->localeInput->labelAfter('<br>')->selectedValue($primaryLanguage);
$apiOptions->epiphanyInput->labelAfter('<br>')->selectedValue($litSettings->Epiphany);
$apiOptions->ascensionInput->labelAfter('<br>')->selectedValue($litSettings->Ascension);
$apiOptions->corpusChristiInput->labelAfter('<br>')->selectedValue($litSettings->CorpusChristi);
Expand Down
2 changes: 1 addition & 1 deletion php/src/LitSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private function updateSettingsByNation(string $stagingURL)
$this->Epiphany = Epiphany::JAN6;
$this->Ascension = Ascension::THURSDAY;
$this->CorpusChristi = CorpusChristi::THURSDAY;
$this->Locale = LitLocale::LATIN;
$this->Locale = LitLocale::LATIN_PRIMARY_LANGUAGE;
break;
default:
$this->Epiphany = $NationalCalendarMetadata["settings"]["epiphany"];
Expand Down

0 comments on commit eed3bf3

Please sign in to comment.