<ul class="nav navbar-nav navbar-lang navbar-left">
    <li class="dropdown">
        <a href="{url path="/login"}" class="language-label dropdown-toggle" data-toggle="dropdown">{lang attr="title"}</a>
        <ul class="dropdown-menu">
            {loop type="lang" name="lang_available" exclude="{lang attr="id"}"}
            <li><a href="{url path="{navigate to="current"}" lang={$LOCALE}}">{$TITLE}</a></li>
            {/loop}
        </ul>
    </li>
</ul>