Show english language name when hovering over language dropdown item

This commit is contained in:
Wruczek 2019-03-21 03:27:01 +01:00
parent 119443bbe8
commit cfa71d7521
1 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,9 @@ $navActiveIndex = isset($navActiveIndex) ? (int) $navActiveIndex : 0;
<div class="dropdown-menu language-switcher" aria-labelledby="navbarDropdownLanguageChooser">
<button name="lang" class="dropdown-item{if $lang->getLanguageCode() === $userlangcode} active{/if}"
n:foreach="$languageList as $lang"
n:attr="value => $lang->getLanguageCode()">{$lang->getLanguageNameNative()}</button>
n:attr="value => $lang->getLanguageCode(), title => $lang->getLanguageNameEnglish()">
{$lang->getLanguageNameNative()}
</button>
</div>
</form>
</li>