From eed3bf37dd4427d2c1d674c4543e95884d44409f Mon Sep 17 00:00:00 2001 From: "John R. D'Orazio" Date: Sat, 26 Oct 2024 01:33:25 +0200 Subject: [PATCH] prefer latin base locale --- php/index.php | 3 ++- php/src/LitSettings.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/php/index.php b/php/index.php index 2580a70..4433b2d 100644 --- a/php/index.php +++ b/php/index.php @@ -132,7 +132,8 @@ $apiOptions = new ApiOptions(); $apiOptions->acceptHeaderInput->hide(); Input::setGlobalWrapper('td'); -$apiOptions->localeInput->labelAfter('
')->selectedValue($litSettings->Locale); +$primaryLanguage = Locale::getPrimaryLanguage($litSettings->Locale); +$apiOptions->localeInput->labelAfter('
')->selectedValue($primaryLanguage); $apiOptions->epiphanyInput->labelAfter('
')->selectedValue($litSettings->Epiphany); $apiOptions->ascensionInput->labelAfter('
')->selectedValue($litSettings->Ascension); $apiOptions->corpusChristiInput->labelAfter('
')->selectedValue($litSettings->CorpusChristi); diff --git a/php/src/LitSettings.php b/php/src/LitSettings.php index 0fb132a..23d461b 100644 --- a/php/src/LitSettings.php +++ b/php/src/LitSettings.php @@ -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"];