Skip to content

Commit

Permalink
no need to show DisplayLang in en for en
Browse files Browse the repository at this point in the history
When the locale is English, we don't need to explicitly show the English version of the DisplayLanguage for the locale in the options in the dropdown
  • Loading branch information
JohnRDOrazio authored Feb 4, 2024
1 parent ffff755 commit 5dc7d5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easter.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@
<select id="langSelect">
<?php
foreach($AvailableLocales as $Lcl => $DisplayLang) {
echo '<option value="'.$Lcl.'"'. (strtolower($LOCALE) === strtolower($Lcl) ? " selected" : "") . ' title="'.Locale::getDisplayLanguage($Lcl, 'en').'">'.$DisplayLang.' (' . Locale::getDisplayLanguage($Lcl, 'en') . ')</option>';
$optionContent = $baseLocale === 'en' : $DisplayLang ? $DisplayLang . ' (' . Locale::getDisplayLanguage($Lcl, 'en') . ')';
echo '<option value="'.$Lcl.'"'. (strtolower($LOCALE) === strtolower($Lcl) ? " selected" : "") . ' title="'.Locale::getDisplayLanguage($Lcl, 'en').'">'. $optionContent . '</option>';
}
?>
</select>
Expand Down

0 comments on commit 5dc7d5a

Please sign in to comment.